Skip to content

Commit 955cdbd

Browse files
committed
Add a TODO, remove unnecessary comments
1 parent 7f1e856 commit 955cdbd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION)
55

6-
# An HTTP-Triggered Function with a Durable Functions Client binding
76
@app.route(route="orchestrators/{functionName}")
87
@app.durable_client_input(client_name="client")
98
async def hello_orchestration_starter(req: func.HttpRequest, client):
@@ -21,7 +20,10 @@ def basic_hello_world_orchestrator(context):
2120
# Activity for OpenAI agent execution
2221
@app.activity_trigger(input_name="input")
2322
async def openai_agent_activity(input: str):
24-
# Import and call the main function from basic/hello_world.py
23+
# TODO: Instead of wrapping this code in an activity function like this,
24+
# we should be able to invoke it from the orchestrator directly.
25+
# In order to enable this, Runner.run invocations should be implicitly
26+
# wrapped in activity invocations.
2527
from basic.hello_world import main
2628
result = await main()
2729
return result

0 commit comments

Comments
 (0)