Spaces:
Sleeping
Sleeping
Update multiagents.py
Browse files- multiagents.py +1 -1
multiagents.py
CHANGED
|
@@ -26,7 +26,7 @@ class OpenAIAgent:
|
|
| 26 |
self.conversation_history = []
|
| 27 |
|
| 28 |
def _get_tool_schema(self) -> List[Dict[str, Any]]:
|
| 29 |
-
|
| 30 |
for tool in self.tools:
|
| 31 |
# Handle smolagents @tool objects
|
| 32 |
if hasattr(tool, "name") and hasattr(tool, "run"):
|
|
|
|
| 26 |
self.conversation_history = []
|
| 27 |
|
| 28 |
def _get_tool_schema(self) -> List[Dict[str, Any]]:
|
| 29 |
+
functions = []
|
| 30 |
for tool in self.tools:
|
| 31 |
# Handle smolagents @tool objects
|
| 32 |
if hasattr(tool, "name") and hasattr(tool, "run"):
|