Skip to content

Commit af1864d

Browse files
committed
Move create_invoke_model_activity call to the end
1 parent c7333ae commit af1864d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
app = func.FunctionApp(http_auth_level=func.AuthLevel.FUNCTION)
99

10-
create_invoke_model_activity(app) # TODO: Can we hide this line?
11-
1210

1311
@app.route(route="orchestrators/{functionName}")
1412
@app.durable_client_input(client_name="client")
@@ -108,5 +106,11 @@ def human_in_the_loop(context):
108106

109107
reaction = Runner.run_sync(writer, f"Your haiku is considered {event_data}. React emotionally.")
110108

111-
return reaction.final_output
112-
109+
return reaction.final_output
110+
111+
112+
#region Implementation details
113+
114+
create_invoke_model_activity(app) # TODO: Can we hide this line?
115+
116+
#endregion

0 commit comments

Comments
 (0)