Skip to content

Commit eee5e87

Browse files
committed
Update comments
1 parent ed37b05 commit eee5e87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ async def orchestration_starter(req: func.HttpRequest, client):
1717
return response
1818

1919

20-
@app.orchestration_trigger(context_name="context") # Regular orchestrator function
20+
# Regular orchestrator function
21+
@app.orchestration_trigger(context_name="context")
2122
@durable_openai_agent_orchestrator # This is what turns the magic on!
2223
def haiku(context):
2324
# Regular OpenAI Agent code, straight from the most basic sample
@@ -33,6 +34,7 @@ def haiku(context):
3334
@app.orchestration_trigger(context_name="context")
3435
@durable_openai_agent_orchestrator
3536
def haiku_judge(context):
37+
# Still regular OpenAI Agent code
3638
writer = Agent(
3739
name="Writer",
3840
instructions="You only respond in haikus.",

0 commit comments

Comments
 (0)