Skip to content

Building AI agents, atomically

updating deep research imports to modularized

jon fox7176fa73ea91
diff --git a/atomic-examples/deep-research/deep_research/agents/choice_agent.py b/atomic-examples/deep-research/deep_research/agents/choice_agent.py
index 49f080a..09e370a 100644
--- a/atomic-examples/deep-research/deep_research/agents/choice_agent.py
+++ b/atomic-examples/deep-research/deep_research/agents/choice_agent.py
@@ -1,8 +1,7 @@
import instructor
import openai
from pydantic import Field
-from atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfig
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
+from atomic_agents import BaseIOSchema, BaseAgent, BaseAgentConfig, SystemPromptGenerator
from deep_research.config import ChatConfig
diff --git a/atomic-examples/deep-research/deep_research/agents/qa_agent.py b/atomic-examples/deep-research/deep_research/agents/qa_agent.py
index eefc9e0..e64c09d 100644
--- a/atomic-examples/deep-research/deep_research/agents/qa_agent.py
+++ b/atomic-examples/deep-research/deep_research/agents/qa_agent.py
@@ -1,8 +1,7 @@
import instructor
import openai
from pydantic import Field
-from atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfig
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
+from atomic_agents import BaseIOSchema, BaseAgent, BaseAgentConfig, SystemPromptGenerator
from deep_research.config import ChatConfig
diff --git a/atomic-examples/deep-research/deep_research/agents/query_agent.py b/atomic-examples/deep-research/deep_research/agents/query_agent.py
index 6978925..36d57c6 100644
--- a/atomic-examples/deep-research/deep_research/agents/query_agent.py
+++ b/atomic-examples/deep-research/deep_research/agents/query_agent.py
@@ -2,8 +2,7 @@ from deep_research.config import ChatConfig
import instructor
import openai
from pydantic import Field
-from atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfig
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
+from atomic_agents import BaseIOSchema, BaseAgent, BaseAgentConfig, SystemPromptGenerator
from deep_research.tools.searxng_search import SearXNGSearchToolInputSchema
diff --git a/atomic-examples/deep-research/deep_research/context_providers.py b/atomic-examples/deep-research/deep_research/context_providers.py
index c748118..6c02ae7 100644
--- a/atomic-examples/deep-research/deep_research/context_providers.py
+++ b/atomic-examples/deep-research/deep_research/context_providers.py
@@ -1,7 +1,7 @@
from dataclasses import dataclass
from datetime import datetime
from typing import List
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptContextProviderBase
+from atomic_agents import SystemPromptContextProviderBase
@dataclass
diff --git a/atomic-examples/deep-research/deep_research/tools/searxng_search.py b/atomic-examples/deep-research/deep_research/tools/searxng_search.py
index d07e23a..92014e6 100644
--- a/atomic-examples/deep-research/deep_research/tools/searxng_search.py
+++ b/atomic-examples/deep-research/deep_research/tools/searxng_search.py
@@ -5,8 +5,7 @@ from concurrent.futures import ThreadPoolExecutor
import aiohttp
from pydantic import Field
-from atomic_agents.agents.base_agent import BaseIOSchema
-from atomic_agents.lib.base.base_tool import BaseTool, BaseToolConfig
+from atomic_agents import BaseIOSchema, BaseTool, BaseToolConfig
################
diff --git a/atomic-examples/deep-research/deep_research/tools/webpage_scraper.py b/atomic-examples/deep-research/deep_research/tools/webpage_scraper.py
index 7107ce6..8fd14c6 100644
--- a/atomic-examples/deep-research/deep_research/tools/webpage_scraper.py
+++ b/atomic-examples/deep-research/deep_research/tools/webpage_scraper.py
@@ -6,8 +6,7 @@ from bs4 import BeautifulSoup
from markdownify import markdownify
from pydantic import Field, HttpUrl
from readability import Document
-from atomic_agents.agents.base_agent import BaseIOSchema
-from atomic_agents.lib.base.base_tool import BaseTool, BaseToolConfig
+from atomic_agents import BaseIOSchema, BaseTool, BaseToolConfig
################