File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
from __future__ import annotations as _annotations
2
2
3
- import asyncio
4
3
import random
5
4
import uuid
6
5
@@ -170,7 +169,3 @@ async def main():
170
169
print (f"{ agent_name } : Skipping item: { new_item .__class__ .__name__ } " )
171
170
input_items = result .to_input_list ()
172
171
current_agent = result .last_agent
173
-
174
-
175
- if __name__ == "__main__" :
176
- asyncio .run (main ())
Original file line number Diff line number Diff line change @@ -115,3 +115,9 @@ async def random_number_tool(max: int) -> int:
115
115
def message_filter (context ):
116
116
import handoffs .message_filter
117
117
return handoffs .message_filter .main (context .create_activity_tool (random_number_tool ))
118
+
119
+ @app .orchestration_trigger (context_name = "context" )
120
+ @app .durable_openai_agent_orchestrator
121
+ def customer_service (context ):
122
+ import customer_service .customer_service
123
+ return customer_service .customer_service .main ()
You can’t perform that action at this time.
0 commit comments