adding function calling llm support

This commit is contained in:
João Moura
2024-02-13 02:57:12 -08:00
parent b72eb838c2
commit e55cee7372
11 changed files with 4378 additions and 14 deletions

View File

@@ -22,9 +22,9 @@ class ToolsHandler:
def on_tool_end(self, calling: ToolCalling, output: str) -> Any:
"""Run when tool ends running."""
if self.last_used_tool.function_name != CacheTools().name:
if self.last_used_tool.tool_name != CacheTools().name:
self.cache.add(
tool=calling.function_name,
tool=calling.tool_name,
input=calling.arguments,
output=output,
)