Skip to content

Commit b6d05a3

Browse files
committed
Simplify sample invocation code
1 parent 90d390b commit b6d05a3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from durable_decorators import durable_openai_agent_orchestrator
44
from model_activity import create_invoke_model_activity
55

6+
import basic.hello_world
67

78
app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION)
89

@@ -22,6 +23,4 @@ async def orchestration_starter(req: func.HttpRequest, client):
2223
@app.orchestration_trigger(context_name="context")
2324
@durable_openai_agent_orchestrator
2425
def basic_hello_world_orchestrator(context):
25-
from basic.hello_world import main
26-
result = main()
27-
return result
26+
return basic.hello_world.main()

0 commit comments

Comments
 (0)