Building AI agents, atomically
refactor: rename agent_memory.py to agent_history.py, rename test_agent_memory.py to test_agent_history #115
jon fox5c3aa73d42d2
diff --git a/atomic-agents/atomic_agents/agents/base_agent.py b/atomic-agents/atomic_agents/agents/base_agent.pyindex 257a99e..096c5c1 100644--- a/atomic-agents/atomic_agents/agents/base_agent.py+++ b/atomic-agents/atomic_agents/agents/base_agent.py@@ -1,7 +1,7 @@import instructorfrom pydantic import BaseModel, Fieldfrom typing import Optional, Type, Generator, AsyncGenerator, get_args-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.lib.components.system_prompt_generator import (SystemPromptContextProviderBase,SystemPromptGenerator,diff --git a/atomic-agents/atomic_agents/lib/components/agent_memory.py b/atomic-agents/atomic_agents/lib/components/agent_history.pysimilarity index 100%rename from atomic-agents/atomic_agents/lib/components/agent_memory.pyrename to atomic-agents/atomic_agents/lib/components/agent_history.pydiff --git a/atomic-agents/tests/lib/components/test_agent_memory.py b/atomic-agents/tests/lib/components/test_agent_history.pysimilarity index 99%rename from atomic-agents/tests/lib/components/test_agent_memory.pyrename to atomic-agents/tests/lib/components/test_agent_history.pyindex 68532ae..d06e8c9 100644--- a/atomic-agents/tests/lib/components/test_agent_memory.py+++ b/atomic-agents/tests/lib/components/test_agent_history.py@@ -2,7 +2,7 @@ import pytestimport jsonfrom typing import List, Dictfrom pydantic import Field-from atomic_agents.lib.components.agent_memory import AgentMemory, Message+from atomic_agents.lib.components.agent_history import AgentMemory, Messagefrom atomic_agents.lib.base.base_io_schema import BaseIOSchemaimport instructordiff --git a/atomic-examples/mcp-agent/example-client/example_client/main_sse.py b/atomic-examples/mcp-agent/example-client/example_client/main_sse.pyindex a7f09c3..0d40a70 100644--- a/atomic-examples/mcp-agent/example-client/example_client/main_sse.py+++ b/atomic-examples/mcp-agent/example-client/example_client/main_sse.py@@ -9,7 +9,7 @@ import instructorfrom pydantic import Fieldfrom atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfigfrom atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom typing import Union, Type, Dictfrom dataclasses import dataclassimport rediff --git a/atomic-examples/mcp-agent/example-client/example_client/main_stdio.py b/atomic-examples/mcp-agent/example-client/example_client/main_stdio.pyindex 1843861..6fe3c7a 100644--- a/atomic-examples/mcp-agent/example-client/example_client/main_stdio.py+++ b/atomic-examples/mcp-agent/example-client/example_client/main_stdio.py@@ -11,7 +11,7 @@ from contextlib import AsyncExitStackfrom pydantic import Fieldfrom atomic_agents.agents.base_agent import BaseIOSchema, BaseAgent, BaseAgentConfigfrom atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom typing import Union, Type, Dict, Optionalfrom dataclasses import dataclassfrom mcp import ClientSession, StdioServerParametersdiff --git a/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py b/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.pyindex 0d3c577..04536ec 100644--- a/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py+++ b/atomic-examples/quickstart/quickstart/1_0_basic_chatbot.py@@ -4,7 +4,7 @@ import openaifrom rich.console import Consolefrom rich.panel import Panelfrom rich.text import Text-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema# API Key setupdiff --git a/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.py b/atomic-examples/quickstart/quickstart/1_1_basic_chatbot_streaming.pyindex 1d379c8..e36648e 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 openaifrom rich.console import Consolefrom rich.panel import Panelfrom rich.text import Text-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema# API Key setupdiff --git a/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_async_streaming.py b/atomic-examples/quickstart/quickstart/1_2_basic_chatbot_async_streaming.pyindex c5479f5..0609652 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 Consolefrom rich.panel import Panelfrom rich.text import Textfrom rich.live import Live-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema# API Key setupdiff --git a/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py b/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.pyindex a4b553e..83002ce 100644--- a/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py+++ b/atomic-examples/quickstart/quickstart/2_basic_custom_chatbot.py@@ -5,7 +5,7 @@ from rich.console import Consolefrom rich.panel import Panelfrom rich.text import Textfrom atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchema# API Key setupdiff --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.pyindex edf3d7d..68d8cf7 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@@ -7,7 +7,7 @@ from rich.text import Textfrom typing import Listfrom pydantic import Fieldfrom atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchemafrom atomic_agents.lib.base.base_io_schema import BaseIOSchemadiff --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.pyindex 67e4ab0..7b6c4b4 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@@ -8,7 +8,7 @@ from rich.live import Livefrom typing import Listfrom pydantic import Fieldfrom atomic_agents.lib.components.system_prompt_generator import SystemPromptGenerator-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchemafrom atomic_agents.lib.base.base_io_schema import BaseIOSchemadiff --git a/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.py b/atomic-examples/quickstart/quickstart/4_basic_chatbot_different_providers.pyindex e6ffd85..3e03308 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 instructorfrom rich.console import Consolefrom rich.panel import Panelfrom rich.text import Text-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.agents.base_agent import BaseAgent, BaseAgentConfig, BaseAgentInputSchema, BaseAgentOutputSchemafrom dotenv import load_dotenvdiff --git a/atomic-examples/web-search-agent/web_search_agent/main.py b/atomic-examples/web-search-agent/web_search_agent/main.pyindex cb8b28a..46652a6 100644--- a/atomic-examples/web-search-agent/web_search_agent/main.py+++ b/atomic-examples/web-search-agent/web_search_agent/main.py@@ -5,7 +5,7 @@ from rich.markdown import Markdownfrom pydantic import Fieldfrom atomic_agents.agents.base_agent import BaseIOSchema-from atomic_agents.lib.components.agent_memory import AgentMemory+from atomic_agents.lib.components.agent_history import AgentMemoryfrom atomic_agents.lib.components.system_prompt_generator import SystemPromptContextProviderBasefrom web_search_agent.tools.searxng_search import (