Skip to content

Commit ed37b05

Browse files
committed
Enhance status message formatting in human_in_the_loop function
1 parent df33d63 commit ed37b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples-v2/openai_agents/function_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def human_in_the_loop(context):
7171
evaluation = Runner.run_sync(judge, f"Is this a good haiku? {haiku.final_output}")
7272

7373
# You can set custom orchestration status, like you normally would
74-
context.set_custom_status(f"Haiku:\n{haiku.final_output}\n\nEvaluation:\n{evaluation.final_output}\n\nWaiting for approval...")
74+
context.set_custom_status(f"--- Haiku:\n{haiku.final_output}\n\n--- Evaluation:\n{evaluation.final_output}\n\nWaiting for approval...")
7575

7676
# You can wait for external events, like you normally would
7777
event_data = yield context.wait_for_external_event("Approve")

0 commit comments

Comments
 (0)