Building AI agents, atomically
formatting & remove empty files
KennyVaneetvelde1cdb2b01c524
diff --git a/atomic-agents/atomic_agents/agents/base_agent.py b/atomic-agents/atomic_agents/agents/base_agent.pyindex 1d43c1a..257a99e 100644--- a/atomic-agents/atomic_agents/agents/base_agent.py+++ b/atomic-agents/atomic_agents/agents/base_agent.py@@ -70,6 +70,7 @@ class BaseAgentConfig(BaseModel):model_config = {"arbitrary_types_allowed": True}model_api_parameters: Optional[dict] = Field(None, description="Additional parameters passed to the API provider.")+class BaseAgent[InputSchema: BaseIOSchema, OutputSchema: BaseIOSchema]:"""Base class for chat agents.diff --git a/atomic-examples/quickstart/quickstart/6_asynchronous_processing.py b/atomic-examples/quickstart/quickstart/6_asynchronous_processing.pydeleted file mode 100644index e69de29..0000000diff --git a/atomic-examples/quickstart/quickstart/6_asynchronous_processing_streaming.py b/atomic-examples/quickstart/quickstart/6_asynchronous_processing_streaming.pydeleted file mode 100644index e69de29..0000000diff --git a/atomic-examples/quickstart/quickstart/7_asynchronous_processing_batch.py b/atomic-examples/quickstart/quickstart/7_asynchronous_processing_batch.pydeleted file mode 100644index e69de29..0000000diff --git a/atomic-examples/web-search-agent/web_search_agent/agents/query_agent.py b/atomic-examples/web-search-agent/web_search_agent/agents/query_agent.pyindex 57f10e4..6ebcb2e 100644--- a/atomic-examples/web-search-agent/web_search_agent/agents/query_agent.py+++ b/atomic-examples/web-search-agent/web_search_agent/agents/query_agent.py@@ -4,6 +4,8 @@ from pydantic import Fieldfrom typing import Listfrom atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfigfrom atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator++class QueryAgentInputSchema(BaseIOSchema):"""This is the input schema for the QueryAgent."""diff --git a/atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py b/atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.pyindex 6a23ada..1277105 100644--- a/atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py+++ b/atomic-forge/tools/webpage_scraper/tests/test_webpage_scraper.py@@ -7,7 +7,7 @@ from bs4 import BeautifulSoupfrom readability import Document# Add the parent directory to sys.path to find the tool module-sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))+sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))from tool.webpage_scraper import (WebpageScraperTool,@@ -277,7 +277,7 @@ class TestWebpageScraperTool(unittest.TestCase):# Test the methodresult = self.tool.run(params)-+# Check that the error is captured in the resultself.assertIsNotNone(result.error)self.assertIn("404 Client Error", result.error)@@ -296,7 +296,7 @@ class TestWebpageScraperTool(unittest.TestCase):# Test the methodresult = self.tool.run(params)-+# Check that the error is captured in the resultself.assertIsNotNone(result.error)self.assertIn("Connection timed out", result.error)