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 3
3
4
4
app = func .FunctionApp (http_auth_level = func .AuthLevel .FUNCTION )
5
5
6
- # An HTTP-Triggered Function with a Durable Functions Client binding
7
6
@app .route (route = "orchestrators/{functionName}" )
8
7
@app .durable_client_input (client_name = "client" )
9
8
async def hello_orchestration_starter (req : func .HttpRequest , client ):
@@ -21,7 +20,10 @@ def basic_hello_world_orchestrator(context):
21
20
# Activity for OpenAI agent execution
22
21
@app .activity_trigger (input_name = "input" )
23
22
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.
25
27
from basic .hello_world import main
26
28
result = await main ()
27
29
return result
You can’t perform that action at this time.
0 commit comments