diff --git a/playground/agents/tool_agent.py b/playground/agents/tool_agent.py index 91b576a4..3cd93fbd 100644 --- a/playground/agents/tool_agent.py +++ b/playground/agents/tool_agent.py @@ -26,7 +26,7 @@ task = ( # Create an instance of the ToolAgent class agent = ToolAgent( - model=model, tokenizer=tokenizer, json_schema=json_schema + name="dolly-function-agent", description="Ana gent to create a child data", model=model, tokenizer=tokenizer, json_schema=json_schema ) # Run the agent to generate the person's information diff --git a/swarms/agents/tool_agent.py b/swarms/agents/tool_agent.py index d9359471..f6d9f6e8 100644 --- a/swarms/agents/tool_agent.py +++ b/swarms/agents/tool_agent.py @@ -61,11 +61,11 @@ class ToolAgent(AbstractLLM): def __init__( self, - name: str, - description: str, - model: Any, - tokenizer: Any, - json_schema: Any, + name: str = None, + description: str = None, + model: Any = None, + tokenizer: Any = None, + json_schema: Any = None, max_number_tokens: int = 500, *args, **kwargs,