mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-20 17:13:32 +08:00
Done
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
from llm.tools.executor import ReActAgent, ToolExecutor, ToolRegistry
|
||||
|
||||
__all__ = [
|
||||
"ToolRegistry",
|
||||
"ToolExecutor",
|
||||
__all__ = (
|
||||
"ReActAgent",
|
||||
]
|
||||
"ToolExecutor",
|
||||
"ToolRegistry",
|
||||
)
|
||||
|
||||
@@ -91,6 +91,14 @@ class ReActAgent:
|
||||
if not output.has_tool_calls:
|
||||
return output
|
||||
|
||||
messages.append(
|
||||
Message(
|
||||
role=Role.ASSISTANT,
|
||||
content=output.content or "",
|
||||
tool_calls=output.tool_calls,
|
||||
)
|
||||
)
|
||||
|
||||
results = self.executor.execute_all(output.tool_calls)
|
||||
|
||||
for result in results:
|
||||
|
||||
Reference in New Issue
Block a user