This commit is contained in:
Anish
2026-04-12 12:56:20 +05:30
parent 74b91cb3f3
commit 813755b879
6 changed files with 27 additions and 13 deletions

View File

@@ -2,8 +2,8 @@
from llm.tools.executor import ReActAgent, ToolExecutor, ToolRegistry
__all__ = [
"ToolRegistry",
"ToolExecutor",
__all__ = (
"ReActAgent",
]
"ToolExecutor",
"ToolRegistry",
)

View File

@@ -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: