Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
fix(ReActAgent): fix the parameters of the `handle_interrupt` function (#1049)
qbcdf9680572f4a
diff --git a/src/agentscope/agent/_react_agent.py b/src/agentscope/agent/_react_agent.pyindex c9cf29978..c22ab0329 100644--- a/src/agentscope/agent/_react_agent.py+++ b/src/agentscope/agent/_react_agent.py@@ -649,18 +649,19 @@ class ReActAgent(ReActAgentBase):return res_msg+ # pylint: disable=unused-argumentasync def handle_interrupt(self,- _msg: Msg | list[Msg] | None = None,- _structured_model: Type[BaseModel] | None = None,+ msg: Msg | list[Msg] | None = None,+ structured_model: Type[BaseModel] | None = None,) -> Msg:"""The post-processing logic when the reply is interrupted by theuser or something else.Args:- _msg (`Msg | list[Msg] | None`, optional):+ msg (`Msg | list[Msg] | None`, optional):The input message(s) to the agent.- _structured_model (`Type[BaseModel] | None`, optional):+ structured_model (`Type[BaseModel] | None`, optional):The required structured output model."""