Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/chapter7/test_react_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_custom_prompt():
# 注册计算器工具
try:
from hello_agents import calculate
tool_registry.register_function("calculate", calculate, "数学计算工具")
tool_registry.register_function("calculate", "数学计算工具", calculate)
except ImportError:
pass

Expand Down