agents icon indicating copy to clipboard operation
agents copied to clipboard

Sequential Interruption Handling

Open simonnarang opened this issue 7 months ago • 2 comments
trafficstars

Changes

  • This adds an optional parameter to the agent session called interruption_handling
  • interruption_handling specifies if interruptions should be handled in parallel or sequentially
  • The default is parallel (existing behavior)
  • If sequential is 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]

simonnarang avatar Apr 18 '25 03:04 simonnarang

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Apr 18 '25 03:04 CLAassistant

: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'.

github-actions[bot] avatar Apr 18 '25 03:04 github-actions[bot]