File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 33
44app = 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" )
98async 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" )
2322async 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
You can’t perform that action at this time.
0 commit comments