agents
agents copied to clipboard
Sequential Interruption Handling
Changes
- This adds an optional parameter to the agent session called
interruption_handling interruption_handlingspecifies if interruptions should be handled in parallel or sequentially- The default is
parallel(existing behavior) - If
sequentialis used, interruptions are not sent to the LLM until the agent finishes speaking
Examples
This is useful for situations like booking appointments
Booking Appointments with parallel Interruption Handling
- Customer: Book me an appointment at 6 pm
- Agent: [calling schedule_appointment first time]
- Customer: [while tool call executing] Hello? Book me an appointment at 6 pm
- Agent: [calling schedule_appointment second time]
Booking Appointments with sequential Interruption Handling
- Customer: Book me an appointment at 6 pm
- Agent: [calling schedule_appointment first time]
- Customer: [while tool call executing] Hello? Book me an appointment at 6 pm
- Agent: [does not call schedule_appointment again]
:x: Invalid Changeset Format Detected
One or more changeset files in this PR have an invalid format. Please ensure they adhere to:
- Start with
---and include a closing---on its own line. - Each package line must be in the format:
"package-name": patch|minor|major - No duplicate package entries allowed.
- A non-empty change description must follow the front matter.
Error details: .github/next-release/changeset-12012403.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-1ce8eb28.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-354c197a.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-3ec7cd3d.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-5e7650bc.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-a19302fd.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-a1f0d782.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-a6c0fcd6.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-b1fb1404.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-bcccca2c.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-cb19d9f7.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-d1555002.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-db8d9b3c.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-de15f366.md: Failed to read file from git branch 'pr_head'. .github/next-release/changeset-e0b9bf9f.md: Failed to read file from git branch 'pr_head'.