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):
55
55
return [haiku .final_output , "\n \n " + evaluation .final_output ]
56
56
57
57
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
-
80
58
@app .activity_trigger (input_name = "name" )
81
59
async def hello (name : str ):
82
60
return f"Hello { name } !"
83
61
84
62
85
-
86
63
@app .orchestration_trigger (context_name = "context" )
87
64
@durable_openai_agent_orchestrator
88
65
def human_in_the_loop (context ):
You can’t perform that action at this time.
0 commit comments