Skip to content

Add human-in-the-loop SDK example#101

Merged
abrahmasandra merged 1 commit intomainfrom
arnav/human-in-the-loop-example
May 1, 2026
Merged

Add human-in-the-loop SDK example#101
abrahmasandra merged 1 commit intomainfrom
arnav/human-in-the-loop-example

Conversation

@abrahmasandra
Copy link
Copy Markdown
Contributor

@abrahmasandra abrahmasandra commented May 1, 2026

Summary

  • Add a Python SDK example for human-in-the-loop workflows.
  • Demonstrate using window.prompt_for_user_input to collect runtime values from the user.
  • Demonstrate using window.user_approval to confirm before running the agent, including cancellation handling.

Testing

  • python -m py_compile examples/human_in_the_loop.py

Manually tested that it works

@abrahmasandra abrahmasandra requested a review from zizhengtai May 1, 2026 18:44
@abrahmasandra abrahmasandra merged commit 034344b into main May 1, 2026
4 checks passed
@abrahmasandra abrahmasandra deleted the arnav/human-in-the-loop-example branch May 1, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants