Skip to content

Building AI agents, atomically

updating imports for quickstart, removing empty files

jon fox55dc21fb0c57
diff --git a/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py b/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py
index 327cb99..78f90e8 100644
--- a/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py
+++ b/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py
@@ -4,8 +4,12 @@ import openai
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
-from atomic_agents.components import ChatHistory
-from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
+from atomic_agents.context import ChatHistory
+from atomic_agents import (BaseAgent,
+ BaseAgentConfig,
+ BaseAgentInputSchema,
+ BaseAgentOutputSchema
+ )
# API Key setup
API_KEY = ""
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 8969cbb..132df9a 100644
--- a/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py
+++ b/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py
@@ -4,7 +4,7 @@ import openai
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
-from atomic_agents.components import ChatHistory
+from atomic_agents.context import ChatHistory
from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
# API Key setup
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 564727f..ae556ed 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,7 +5,7 @@ from rich.console import Console
from rich.panel import Panel
from rich.text import Text
from rich.live import Live
-from atomic_agents.components import ChatHistory
+from atomic_agents.context import ChatHistory
from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
# API Key setup
diff --git a/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_sync_streaming.py b/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_sync_streaming.py
deleted file mode 100644
index e69de29..0000000
diff --git a/atomic-examples/quickstart/quickstart/1_basic_chatbot.py b/atomic-examples/quickstart/quickstart/1_basic_chatbot.py
deleted file mode 100644
index e69de29..0000000
diff --git a/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py b/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py
index 1aae2a3..7354c1c 100644
--- a/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py
+++ b/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py
@@ -4,7 +4,7 @@ import openai
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
-from atomic_agents.components import SystemPromptGenerator, ChatHistory
+from atomic_agents.context import SystemPromptGenerator, ChatHistory
from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
# API Key setup
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 1ef00a3..ada8fb8 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,7 +6,7 @@ from rich.panel import Panel
from rich.text import Text
from typing import List
from pydantic import Field
-from atomic_agents.components import SystemPromptGenerator, ChatHistory
+from atomic_agents.context import SystemPromptGenerator, ChatHistory
from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseIOSchema
# API Key setup
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 2e61772..a86f002 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,7 +7,7 @@ from rich.text import Text
from rich.live import Live
from typing import List
from pydantic import Field
-from atomic_agents.components import SystemPromptGenerator, ChatHistory
+from atomic_agents.context import SystemPromptGenerator, ChatHistory
from atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseIOSchema
# API Key setup
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 599b828..d143e6a 100644
--- a/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py
+++ b/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py
@@ -3,7 +3,7 @@ import instructor
from rich.console import Console
from rich.panel import Panel
from rich.text import Text
-from atomic_agents.components import ChatHistory
+from atomic_agents.context import ChatHistory
from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
from dotenv import load_dotenv
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 e9b4baf..8ad5ba9 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
@@ -4,7 +4,7 @@ import openai
from rich.console import Console
from rich.text import Text
from atomic_agents import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema
-from atomic_agents.components import SystemPromptGenerator
+from atomic_agents.context 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 8fcab14..1ca5583 100644
--- a/atomic-examples/quickstart/quickstart/6_0_asynchronous_processing.py
+++ b/atomic-examples/quickstart/quickstart/6_0_asynchronous_processing.py
@@ -4,7 +4,7 @@ import instructor
import openai
from rich.console import Console
from atomic_agents import BaseIOSchema, BaseAgent, BaseAgentConfig, BaseAgentInputSchema
-from atomic_agents.components import SystemPromptGenerator
+from atomic_agents.context 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 88cf521..2564d2d 100644
--- a/atomic-examples/quickstart/quickstart/6_1_asynchronous_processing_streaming.py
+++ b/atomic-examples/quickstart/quickstart/6_1_asynchronous_processing_streaming.py
@@ -7,7 +7,7 @@ from rich.live import Live
from rich.table import Table
from rich.text import Text
from atomic_agents import BaseIOSchema, BaseAgent, BaseAgentConfig, BaseAgentInputSchema
-from atomic_agents.components import SystemPromptGenerator
+from atomic_agents.context import SystemPromptGenerator
# API Key setup
API_KEY = ""