Skip to content

Conversation

@DavdGao
Copy link
Member

@DavdGao DavdGao commented Nov 1, 2025

AgentScope Version

1.0.6

Description

As the title says.

Checklist

Please check the following items before code is ready to be reviewed.

  • Code has been formatted with pre-commit run --all-files command
  • All tests are passing
  • Docstrings are in Google style
  • Related documentation has been updated (e.g. links, examples, etc.)
  • Code is ready for review

@DavdGao DavdGao requested a review from Copilot November 1, 2025 13:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements interrupt handling for the ReAct agent by propagating interruption signals through the async execution flow. When a tool execution is interrupted, the agent now properly detects and responds to the interruption.

  • Adds check for chunk.is_interrupted in _acting() to raise CancelledError
  • Adds is_interrupted metadata field to the interruption response message
  • Fixes duplicate await self.print() call in handle_interrupt()

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavdGao DavdGao requested a review from Copilot November 1, 2025 14:03
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DavdGao DavdGao merged commit 34a8a30 into agentscope-ai:main Nov 1, 2025
17 checks passed
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.

1 participant