Skip to content

Commit 9743392

Browse files
committed
Remove duplicate sample
1 parent af1864d commit 9743392

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff 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")
8159
async def hello(name: str):
8260
return f"Hello {name}!"
8361

8462

85-
8663
@app.orchestration_trigger(context_name="context")
8764
@durable_openai_agent_orchestrator
8865
def human_in_the_loop(context):

0 commit comments

Comments
 (0)