We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a54124 commit 198bfbeCopy full SHA for 198bfbe
samples-v2/openai_agents/function_app.py
@@ -25,4 +25,18 @@ def hello_orchestration_orchestrator(context):
25
# Activity
26
@app.activity_trigger(input_name="city")
27
def hello_orchestration_activity(city: str):
28
- return "Hello " + city
+ return "Hello " + city
29
+
30
31
+@app.orchestration_trigger(context_name="context")
32
+def basic_hello_world_orchestrator(context):
33
+ result = yield context.call_activity("openai_agent_activity")
34
+ return result
35
36
+# Activity for OpenAI agent execution
37
+@app.activity_trigger(input_name="input")
38
+async def openai_agent_activity(input: str):
39
+ # Import and call the main function from basic/hello_world.py
40
+ from basic.hello_world import main
41
+ result = await main()
42
0 commit comments