Skip to content

Building AI agents, atomically

flake8 linting

KennyVaneetveldef81586b03249
diff --git a/atomic_agents/agents/base_agent.py b/atomic_agents/agents/base_agent.py
index 97ae92b..e95e229 100644
--- a/atomic_agents/agents/base_agent.py
+++ b/atomic_agents/agents/base_agent.py
@@ -1,9 +1,8 @@
-from pydantic import BaseModel, ConfigDict, Field, validator
-from typing import Dict, Any, Optional, Type
+from pydantic import BaseModel, Field
+from typing import Optional, Type
import inspect
import instructor
-from pydantic import BaseModel, ConfigDict, Field
from rich.json import JSON
from atomic_agents.lib.components.agent_memory import AgentMemory
diff --git a/atomic_agents/agents/tool_interface_agent.py b/atomic_agents/agents/tool_interface_agent.py
index c9501cd..c54584d 100644
--- a/atomic_agents/agents/tool_interface_agent.py
+++ b/atomic_agents/agents/tool_interface_agent.py
@@ -41,7 +41,9 @@ class ToolInterfaceAgent(BaseAgent):
str,
Field(
...,
- description=f"{self.tool_instance.__class__.__name__} tool input. Presented as a single question or instruction",
+ description=(
+ f"{self.tool_instance.__class__.__name__} tool input. " "Presented as a single question or instruction"
+ ),
alias=f"tool_input_{self.tool_instance.__class__.__name__}",
),
),
@@ -107,7 +109,6 @@ if __name__ == "__main__":
from rich import box
import instructor
import openai
- from pydantic import BaseModel, Field
from atomic_agents.lib.tools.calculator_tool import CalculatorTool
# Initialize the console
diff --git a/atomic_agents/lib/components/agent_memory.py b/atomic_agents/lib/components/agent_memory.py
index bc4b975..00962bf 100644
--- a/atomic_agents/lib/components/agent_memory.py
+++ b/atomic_agents/lib/components/agent_memory.py
@@ -1,7 +1,7 @@
import uuid
from typing import Dict, List, Optional, Union
-from pydantic import BaseModel, ValidationError, Field
+from pydantic import BaseModel, ValidationError
class Message(BaseModel):
diff --git a/atomic_agents/lib/tools/yelp_restaurant_finder_tool.py b/atomic_agents/lib/tools/yelp_restaurant_finder_tool.py
index b7dd39e..507a3de 100644
--- a/atomic_agents/lib/tools/yelp_restaurant_finder_tool.py
+++ b/atomic_agents/lib/tools/yelp_restaurant_finder_tool.py
@@ -83,7 +83,10 @@ class YelpSearchResultSchema(BaseIOSchema):
class YelpSearchToolOutputSchema(BaseIOSchema):
- """Output schema for the YelpSearchTool, containing a list of search results with details such as name, rating, and address."""
+ """
+ Output schema for the YelpSearchTool,
+ containing a list of search results with details such as name, rating, and address.
+ """
results: List[YelpSearchResultSchema]