Skip to content

Building AI agents, atomically

updating imports for quickstart, removing unused copy of reasoning example

jon foxe18e7b40f91c
diff --git a/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py b/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py
index 40d76f9..8969cbb 100644
--- a/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py
+++ b/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py
@@ -4,8 +4,8 @@ import openai
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
-from atomic_agents.lib.components.chat_history import ChatHistory
-from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
+from atomic_agents.components import ChatHistory
+from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
# API Key setup
API_KEY = ""
diff --git a/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_async_streaming.py b/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_async_streaming.py
index 99cc1ce..564727f 100644
--- a/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_async_streaming.py
+++ b/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_async_streaming.py
@@ -5,8 +5,8 @@ from rich.console import Console
from rich.panel import Panel
from rich.text import Text
from rich.live import Live
-from atomic_agents.lib.components.chat_history import ChatHistory
-from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
+from atomic_agents.components import ChatHistory
+from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
# API Key setup
API_KEY = ""
diff --git a/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py b/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py
index 0ae5e62..1aae2a3 100644
--- a/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py
+++ b/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py
@@ -4,9 +4,8 @@ import openai
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
-from atomic_agents.lib.components.chat_history import ChatHistory
-from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
+from atomic_agents.components import SystemPromptGenerator, ChatHistory
+from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
# API Key setup
API_KEY = ""
diff --git a/atomic-examples/quickstart/quickstart/3_0_basic_custom_chatbot_with_custom_schema.py b/atomic-examples/quickstart/quickstart/3_0_basic_custom_chatbot_with_custom_schema.py
index 5d7aa83..1ef00a3 100644
--- a/atomic-examples/quickstart/quickstart/3_0_basic_custom_chatbot_with_custom_schema.py
+++ b/atomic-examples/quickstart/quickstart/3_0_basic_custom_chatbot_with_custom_schema.py
@@ -6,10 +6,8 @@ from rich.panel import Panel
from rich.text import Text
from typing import List
from pydantic import Field
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
-from atomic_agents.lib.components.chat_history import ChatHistory
-from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema
-from atomic_agents.lib.base.base_io_schema import BaseIOSchema
+from atomic_agents.components import SystemPromptGenerator, ChatHistory
+from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseIOSchema
# API Key setup
API_KEY = ""
diff --git a/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py b/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py
index 3a69b11..2e61772 100644
--- a/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py
+++ b/atomic-examples/quickstart/quickstart/3_1_basic_custom_chatbot_with_custom_schema_streaming.py
@@ -7,10 +7,8 @@ from rich.text import Text
from rich.live import Live
from typing import List
from pydantic import Field
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
-from atomic_agents.lib.components.chat_history import ChatHistory
-from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema
-from atomic_agents.lib.base.base_io_schema import BaseIOSchema
+from atomic_agents.components import SystemPromptGenerator, ChatHistory
+from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseIOSchema
# API Key setup
API_KEY = ""
diff --git a/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py b/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py
index 0ff4274..599b828 100644
--- a/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py
+++ b/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py
@@ -3,8 +3,8 @@ import instructor
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
-from atomic_agents.lib.components.chat_history import ChatHistory
-from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
+from atomic_agents.components import ChatHistory
+from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
from dotenv import load_dotenv
load_dotenv()
diff --git a/atomic-examples/quickstart/quickstart/5_custom_system_role_for_reasoning_models copy.py b/atomic-examples/quickstart/quickstart/5_custom_system_role_for_reasoning_models copy.py
deleted file mode 100644
index e69de29..0000000
diff --git a/atomic-examples/quickstart/quickstart/5_custom_system_role_for_reasoning_models.py b/atomic-examples/quickstart/quickstart/5_custom_system_role_for_reasoning_models.py
index 055ec39..e9b4baf 100644
--- a/atomic-examples/quickstart/quickstart/5_custom_system_role_for_reasoning_models.py
+++ b/atomic-examples/quickstart/quickstart/5_custom_system_role_for_reasoning_models.py
@@ -3,8 +3,8 @@ import instructor
import openai
from rich.console import Console
from rich.text import Text
-from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
+from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
+from atomic_agents.components import SystemPromptGenerator
# API Key setup
API_KEY = ""
diff --git a/atomic-examples/quickstart/quickstart/6_0_asynchronous_processing.py b/atomic-examples/quickstart/quickstart/6_0_asynchronous_processing.py
index 09f2ffc..8fcab14 100644
--- a/atomic-examples/quickstart/quickstart/6_0_asynchronous_processing.py
+++ b/atomic-examples/quickstart/quickstart/6_0_asynchronous_processing.py
@@ -3,8 +3,8 @@ import asyncio
import instructor
import openai
from rich.console import Console
-from atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfig, BaseAgentInputSchema
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
+from atomic_agents import BaseIOSchema, BaseAgent, BaseAgentConfig, BaseAgentInputSchema
+from atomic_agents.components import SystemPromptGenerator
# API Key setup
API_KEY = ""
diff --git a/atomic-examples/quickstart/quickstart/6_1_asynchronous_processing_streaming.py b/atomic-examples/quickstart/quickstart/6_1_asynchronous_processing_streaming.py
index c8b71f5..88cf521 100644
--- a/atomic-examples/quickstart/quickstart/6_1_asynchronous_processing_streaming.py
+++ b/atomic-examples/quickstart/quickstart/6_1_asynchronous_processing_streaming.py
@@ -6,8 +6,8 @@ from rich.console import Console
from rich.live import Live
from rich.table import Table
from rich.text import Text
-from atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfig, BaseAgentInputSchema
-from atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator
+from atomic_agents import BaseIOSchema, BaseAgent, BaseAgentConfig, BaseAgentInputSchema
+from atomic_agents.components import SystemPromptGenerator
# API Key setup
API_KEY = ""