Skip to content

Commit 0628e83

Browse files
authored
[HOTFIX] Fix the bug in ReAct agent (agentscope-ai#634)
1 parent 106b92c commit 0628e83

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/agentscope/agents/_react_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def _reasoning(self) -> Union[ToolUseBlock, None]:
181181

182182
return ToolUseBlock(
183183
type="tool_use",
184-
id=uuid,
184+
id=uuid(),
185185
name=function_name,
186186
input=input_,
187187
)

src/agentscope/message/block.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# -*- coding: utf-8 -*-
22
# pylint: disable=too-many-ancestors
33
"""The content blocks of messages"""
4-
from typing import Literal, Union
5-
from typing_extensions import TypedDict, Required, Optional
4+
from typing import Literal, Union, Optional
5+
from typing_extensions import TypedDict, Required
66

77

88
class ToolUseBlock(TypedDict, total=False):

0 commit comments

Comments
 (0)