File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -55,34 +55,11 @@ def haiku_judge(context):
5555 return [haiku .final_output , "\n \n " + evaluation .final_output ]
5656
5757
58- @app .orchestration_trigger (context_name = "context" )
59- @durable_openai_agent_orchestrator
60- def hello_cities (context ):
61- writer = Agent (
62- name = "Writer" ,
63- instructions = "You only respond in haikus." ,
64- )
65-
66- topic = yield context .call_activity ("hello" , "Seattle" )
67-
68- haiku = Runner .run_sync (writer , f"Tell me about '{ topic } '" )
69-
70- judge = Agent (
71- name = "Judge" ,
72- instructions = "You judge haikus." ,
73- )
74-
75- evaluation = Runner .run_sync (judge , f"Is this a good haiku? { haiku .final_output } " )
76-
77- return [haiku .final_output , "\n \n " + evaluation .final_output ]
78-
79-
8058@app .activity_trigger (input_name = "name" )
8159async def hello (name : str ):
8260 return f"Hello { name } !"
8361
8462
85-
8663@app .orchestration_trigger (context_name = "context" )
8764@durable_openai_agent_orchestrator
8865def human_in_the_loop (context ):
You can’t perform that action at this time.
0 commit comments