Skip to content

Commit 7f1e856

Browse files
committed
Remove unused orchestrator and activity functions from function_app.py
1 parent 198bfbe commit 7f1e856

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,6 @@ async def hello_orchestration_starter(req: func.HttpRequest, client):
1313
return response
1414

1515

16-
# Orchestrator
17-
@app.orchestration_trigger(context_name="context")
18-
def hello_orchestration_orchestrator(context):
19-
result1 = yield context.call_activity("hello_orchestration_activity", "Seattle")
20-
result2 = yield context.call_activity("hello_orchestration_activity", "Tokyo")
21-
result3 = yield context.call_activity("hello_orchestration_activity", "London")
22-
23-
return [result1, result2, result3]
24-
25-
# Activity
26-
@app.activity_trigger(input_name="city")
27-
def hello_orchestration_activity(city: str):
28-
return "Hello " + city
29-
30-
3116
@app.orchestration_trigger(context_name="context")
3217
def basic_hello_world_orchestrator(context):
3318
result = yield context.call_activity("openai_agent_activity")

0 commit comments

Comments
 (0)