Building AI agents, atomically
update documentation
KennyVaneetvelde582f5ba15fe8
diff --git a/docs/agents/base_agent.html b/docs/agents/base_agent.htmlindex 79fe442..a3d618a 100644--- a/docs/agents/base_agent.html+++ b/docs/agents/base_agent.html@@ -74,6 +74,8 @@ generating system prompts, and obtaining responses from a language model.</p><dd>Component for generating system prompts.</dd><dt><strong><code>initial_memory</code></strong> : <code>AgentMemory</code></dt><dd>Initial state of the memory.</dd>+<dt><strong><code>max_tokens</code></strong> : <code>int</code></dt>+<dd>Maximum number of tokens allowed in the response</dd></dl><p>Initializes the BaseAgent.</p><h2 id="args">Args</h2>@@ -100,6 +102,7 @@ generating system prompts, and obtaining responses from a language model.</p>memory (AgentMemory): Memory component for storing chat history.system_prompt_generator (SystemPromptGenerator): Component for generating system prompts.initial_memory (AgentMemory): Initial state of the memory.+ max_tokens (int): Maximum number of tokens allowed in the response"""input_schema = BaseAgentInputSchema@@ -121,6 +124,7 @@ generating system prompts, and obtaining responses from a language model.</p>self.initial_memory = self.memory.copy()self.current_user_input = Noneself.temperature = config.temperature+ self.max_tokens = config.max_tokensdef reset_memory(self):"""@@ -148,12 +152,15 @@ generating system prompts, and obtaining responses from a language model.</p>"content": self.system_prompt_generator.generate_prompt(),}] + self.memory.get_history()+response = self.client.chat.completions.create(- model=self.model,messages=messages,+ model=self.model,response_model=response_model,temperature=self.temperature,+ max_tokens=self.max_tokens,)+return responsedef run(self, user_input: Optional[Type[BaseIOSchema]] = None) -> Type[BaseIOSchema]:@@ -176,55 +183,7 @@ generating system prompts, and obtaining responses from a language model.</p>return response- async def get_response_async(self, response_model=None) -> Type[BaseModel]:- """- Obtains a response from the language model asynchronously.-- Args:- response_model (Type[BaseModel], optional):- The schema for the response data. If not set, self.output_schema is used.-- Returns:- Type[BaseModel]: The response from the language model.- """- if response_model is None:- response_model = self.output_schema-- messages = [- {- "role": "system",- "content": self.system_prompt_generator.generate_prompt(),- }- ] + self.memory.get_history()- response = await self.client.chat.completions.create(- model=self.model,- messages=messages,- response_model=response_model,- temperature=self.temperature,- )- return response-- async def run_async(self, user_input: Optional[Type[BaseIOSchema]] = None) -> Type[BaseIOSchema]:- """- Runs the chat agent with the given user input asynchronously.-- Args:- user_input (Optional[Type[BaseIOSchema]]): The input from the user. If not provided, skips adding to memory.-- Returns:- Type[BaseIOSchema]: The response from the chat agent.- """- if user_input:- self.memory.initialize_turn()- self.current_user_input = user_input- self.memory.add_message("user", user_input)-- response = await self.get_response_async(response_model=self.output_schema)- self.memory.add_message("assistant", response)-- return response-- async def stream_response_async(self, user_input: Optional[Type[BaseIOSchema]] = None):+ async def run_async(self, user_input: Optional[Type[BaseIOSchema]] = None):"""Runs the chat agent with the given user input, supporting streaming output asynchronously.@@ -251,6 +210,7 @@ generating system prompts, and obtaining responses from a language model.</p>messages=messages,response_model=self.output_schema,temperature=self.temperature,+ max_tokens=self.max_tokens,stream=True,)@@ -260,6 +220,24 @@ generating system prompts, and obtaining responses from a language model.</p>full_response_content = self.output_schema(**partial_response.model_dump())self.memory.add_message("assistant", full_response_content)+ async def stream_response_async(self, user_input: Optional[Type[BaseIOSchema]] = None):+ """+ Deprecated method for streaming responses asynchronously. Use run_async instead.++ Args:+ user_input (Optional[Type[BaseIOSchema]]): The input from the user. If not provided, skips adding to memory.++ Yields:+ BaseModel: Partial responses from the chat agent.+ """+ warnings.warn(+ "stream_response_async is deprecated and will be removed in version 1.1. Use run_async instead which can be used in the exact same way.",+ DeprecationWarning,+ stacklevel=2,+ )+ async for response in self.run_async(user_input):+ yield response+def get_context_provider(self, provider_name: str) -> Type[SystemPromptContextProviderBase]:"""Retrieves a context provider by name.@@ -347,20 +325,6 @@ The schema for the response data. If not set, self.output_schema is used.</p><dd>The response from the language model.</dd></dl></div></dd>-<dt id="atomic_agents.agents.base_agent.BaseAgent.get_response_async"><code class="name flex">-<span>async def <span class="ident">get_response_async</span></span>(<span>self, response_model=None) ‑> Type[pydantic.main.BaseModel]</span>-</code></dt>-<dd>-<div class="desc"><p>Obtains a response from the language model asynchronously.</p>-<h2 id="args">Args</h2>-<p>response_model (Type[BaseModel], optional):-The schema for the response data. If not set, self.output_schema is used.</p>-<h2 id="returns">Returns</h2>-<dl>-<dt><code>Type[BaseModel]</code></dt>-<dd>The response from the language model.</dd>-</dl></div>-</dd><dt id="atomic_agents.agents.base_agent.BaseAgent.register_context_provider"><code class="name flex"><span>def <span class="ident">register_context_provider</span></span>(<span>self, provider_name: str, provider: <a title="atomic_agents.lib.components.system_prompt_generator.SystemPromptContextProviderBase" href="../lib/components/system_prompt_generator.html#atomic_agents.lib.components.system_prompt_generator.SystemPromptContextProviderBase">SystemPromptContextProviderBase</a>)</span></code></dt>@@ -397,26 +361,26 @@ The schema for the response data. If not set, self.output_schema is used.</p></dl></div></dd><dt id="atomic_agents.agents.base_agent.BaseAgent.run_async"><code class="name flex">-<span>async def <span class="ident">run_async</span></span>(<span>self, user_input: Optional[Type[<a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema">BaseIOSchema</a>]] = None) ‑> Type[<a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema">BaseIOSchema</a>]</span>+<span>async def <span class="ident">run_async</span></span>(<span>self, user_input: Optional[Type[<a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema">BaseIOSchema</a>]] = None)</span></code></dt><dd>-<div class="desc"><p>Runs the chat agent with the given user input asynchronously.</p>+<div class="desc"><p>Runs the chat agent with the given user input, supporting streaming output asynchronously.</p><h2 id="args">Args</h2><dl><dt><strong><code>user_input</code></strong> : <code>Optional[Type[BaseIOSchema]]</code></dt><dd>The input from the user. If not provided, skips adding to memory.</dd></dl>-<h2 id="returns">Returns</h2>+<h2 id="yields">Yields</h2><dl>-<dt><code>Type[BaseIOSchema]</code></dt>-<dd>The response from the chat agent.</dd>+<dt><code>BaseModel</code></dt>+<dd>Partial responses from the chat agent.</dd></dl></div></dd><dt id="atomic_agents.agents.base_agent.BaseAgent.stream_response_async"><code class="name flex"><span>async def <span class="ident">stream_response_async</span></span>(<span>self, user_input: Optional[Type[<a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema">BaseIOSchema</a>]] = None)</span></code></dt><dd>-<div class="desc"><p>Runs the chat agent with the given user input, supporting streaming output asynchronously.</p>+<div class="desc"><p>Deprecated method for streaming responses asynchronously. Use run_async instead.</p><h2 id="args">Args</h2><dl><dt><strong><code>user_input</code></strong> : <code>Optional[Type[BaseIOSchema]]</code></dt>@@ -446,7 +410,7 @@ The schema for the response data. If not set, self.output_schema is used.</p><span>(</span><span>**data: Any)</span></code></dt><dd>-<div class="desc"><p>Usage docs: <a href="https://docs.pydantic.dev/2.9/concepts/models/">https://docs.pydantic.dev/2.9/concepts/models/</a></p>+<div class="desc"><p>Usage docs: <a href="https://docs.pydantic.dev/2.10/concepts/models/">https://docs.pydantic.dev/2.10/concepts/models/</a></p><p>A base class for creating Pydantic models.</p><h2 id="attributes">Attributes</h2><dl>@@ -478,6 +442,10 @@ This replaces <code>Model.__validators__</code> and <code>Model.__root_validator<dd>The <code>pydantic-core</code> <code>SchemaSerializer</code> used to dump instances of the model.</dd><dt><strong><code>__pydantic_validator__</code></strong></dt><dd>The <code>pydantic-core</code> <code>SchemaValidator</code> used to validate instances of the model.</dd>+<dt><strong><code>__pydantic_fields__</code></strong></dt>+<dd>A dictionary of field names and their corresponding [<code>FieldInfo</code>][pydantic.fields.FieldInfo] objects.</dd>+<dt><strong><code>__pydantic_computed_fields__</code></strong></dt>+<dd>A dictionary of computed field names and their corresponding [<code>ComputedFieldInfo</code>][pydantic.fields.ComputedFieldInfo] objects.</dd><dt><strong><code>__pydantic_extra__</code></strong></dt><dd>A dictionary containing extra values, if [<code>extra</code>][pydantic.config.ConfigDict.extra]is set to <code>'allow'</code>.</dd>@@ -507,6 +475,10 @@ validated to form a valid model.</p>temperature: Optional[float] = Field(0,description="Temperature for response generation, typically ranging from 0 to 1.",+ )+ max_tokens: Optional[int] = Field(+ None,+ description="Maximum number of token allowed in the response generation.",)</code></pre></details><h3>Ancestors</h3>@@ -523,15 +495,15 @@ validated to form a valid model.</p><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.agents.base_agent.BaseAgentConfig.memory"><code class="name">var <span class="ident">memory</span> : Optional[<a title="atomic_agents.lib.components.agent_memory.AgentMemory" href="../lib/components/agent_memory.html#atomic_agents.lib.components.agent_memory.AgentMemory">AgentMemory</a>]</code></dt>+<dt id="atomic_agents.agents.base_agent.BaseAgentConfig.max_tokens"><code class="name">var <span class="ident">max_tokens</span> : Optional[int]</code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.agents.base_agent.BaseAgentConfig.model"><code class="name">var <span class="ident">model</span> : str</code></dt>+<dt id="atomic_agents.agents.base_agent.BaseAgentConfig.memory"><code class="name">var <span class="ident">memory</span> : Optional[<a title="atomic_agents.lib.components.agent_memory.AgentMemory" href="../lib/components/agent_memory.html#atomic_agents.lib.components.agent_memory.AgentMemory">AgentMemory</a>]</code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.agents.base_agent.BaseAgentConfig.model_computed_fields"><code class="name">var <span class="ident">model_computed_fields</span></code></dt>+<dt id="atomic_agents.agents.base_agent.BaseAgentConfig.model"><code class="name">var <span class="ident">model</span> : str</code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>@@ -539,10 +511,6 @@ validated to form a valid model.</p><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.agents.base_agent.BaseAgentConfig.model_fields"><code class="name">var <span class="ident">model_fields</span></code></dt>-<dd>-<div class="desc"><p>The type of the None singleton.</p></div>-</dd><dt id="atomic_agents.agents.base_agent.BaseAgentConfig.output_schema"><code class="name">var <span class="ident">output_schema</span> : Optional[Type[pydantic.main.BaseModel]]</code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div>@@ -595,9 +563,7 @@ validated to form a valid model.</p><ul class="hlist"><li><code><b><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema">BaseIOSchema</a></b></code>:<ul class="hlist">-<li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_computed_fields" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_computed_fields">model_computed_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_config" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_config">model_config</a></code></li>-<li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_fields" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_fields">model_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_json_schema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_json_schema">model_json_schema</a></code></li></ul></li>@@ -644,9 +610,7 @@ validated to form a valid model.</p><ul class="hlist"><li><code><b><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema">BaseIOSchema</a></b></code>:<ul class="hlist">-<li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_computed_fields" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_computed_fields">model_computed_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_config" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_config">model_config</a></code></li>-<li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_fields" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_fields">model_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_json_schema" href="../lib/base/base_io_schema.html#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_json_schema">model_json_schema</a></code></li></ul></li>@@ -678,7 +642,6 @@ validated to form a valid model.</p><ul class=""><li><code><a title="atomic_agents.agents.base_agent.BaseAgent.get_context_provider" href="#atomic_agents.agents.base_agent.BaseAgent.get_context_provider">get_context_provider</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgent.get_response" href="#atomic_agents.agents.base_agent.BaseAgent.get_response">get_response</a></code></li>-<li><code><a title="atomic_agents.agents.base_agent.BaseAgent.get_response_async" href="#atomic_agents.agents.base_agent.BaseAgent.get_response_async">get_response_async</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgent.input_schema" href="#atomic_agents.agents.base_agent.BaseAgent.input_schema">input_schema</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgent.output_schema" href="#atomic_agents.agents.base_agent.BaseAgent.output_schema">output_schema</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgent.register_context_provider" href="#atomic_agents.agents.base_agent.BaseAgent.register_context_provider">register_context_provider</a></code></li>@@ -694,11 +657,10 @@ validated to form a valid model.</p><ul class=""><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.client" href="#atomic_agents.agents.base_agent.BaseAgentConfig.client">client</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.input_schema" href="#atomic_agents.agents.base_agent.BaseAgentConfig.input_schema">input_schema</a></code></li>+<li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.max_tokens" href="#atomic_agents.agents.base_agent.BaseAgentConfig.max_tokens">max_tokens</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.memory" href="#atomic_agents.agents.base_agent.BaseAgentConfig.memory">memory</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.model" href="#atomic_agents.agents.base_agent.BaseAgentConfig.model">model</a></code></li>-<li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.model_computed_fields" href="#atomic_agents.agents.base_agent.BaseAgentConfig.model_computed_fields">model_computed_fields</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.model_config" href="#atomic_agents.agents.base_agent.BaseAgentConfig.model_config">model_config</a></code></li>-<li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.model_fields" href="#atomic_agents.agents.base_agent.BaseAgentConfig.model_fields">model_fields</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.output_schema" href="#atomic_agents.agents.base_agent.BaseAgentConfig.output_schema">output_schema</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.system_prompt_generator" href="#atomic_agents.agents.base_agent.BaseAgentConfig.system_prompt_generator">system_prompt_generator</a></code></li><li><code><a title="atomic_agents.agents.base_agent.BaseAgentConfig.temperature" href="#atomic_agents.agents.base_agent.BaseAgentConfig.temperature">temperature</a></code></li>diff --git a/docs/lib/base/base_io_schema.html b/docs/lib/base/base_io_schema.htmlindex e99920c..99a4fe9 100644--- a/docs/lib/base/base_io_schema.html+++ b/docs/lib/base/base_io_schema.html@@ -92,18 +92,10 @@ validated to form a valid model.</p></ul><h3>Class variables</h3><dl>-<dt id="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_computed_fields"><code class="name">var <span class="ident">model_computed_fields</span></code></dt>-<dd>-<div class="desc"><p>The type of the None singleton.</p></div>-</dd><dt id="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_config"><code class="name">var <span class="ident">model_config</span></code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_fields"><code class="name">var <span class="ident">model_fields</span></code></dt>-<dd>-<div class="desc"><p>The type of the None singleton.</p></div>-</dd></dl><h3>Static methods</h3><dl>@@ -147,9 +139,7 @@ validated to form a valid model.</p><li><h4><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema" href="#atomic_agents.lib.base.base_io_schema.BaseIOSchema">BaseIOSchema</a></code></h4><ul class="">-<li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_computed_fields" href="#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_computed_fields">model_computed_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_config" href="#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_config">model_config</a></code></li>-<li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_fields" href="#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_fields">model_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_json_schema" href="#atomic_agents.lib.base.base_io_schema.BaseIOSchema.model_json_schema">model_json_schema</a></code></li></ul></li>diff --git a/docs/lib/base/base_tool.html b/docs/lib/base/base_tool.htmlindex f5acb47..dda2aed 100644--- a/docs/lib/base/base_tool.html+++ b/docs/lib/base/base_tool.html@@ -180,18 +180,10 @@ validated to form a valid model.</p><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.lib.base.base_tool.BaseToolConfig.model_computed_fields"><code class="name">var <span class="ident">model_computed_fields</span></code></dt>-<dd>-<div class="desc"><p>The type of the None singleton.</p></div>-</dd><dt id="atomic_agents.lib.base.base_tool.BaseToolConfig.model_config"><code class="name">var <span class="ident">model_config</span></code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.lib.base.base_tool.BaseToolConfig.model_fields"><code class="name">var <span class="ident">model_fields</span></code></dt>-<dd>-<div class="desc"><p>The type of the None singleton.</p></div>-</dd><dt id="atomic_agents.lib.base.base_tool.BaseToolConfig.title"><code class="name">var <span class="ident">title</span> : Optional[str]</code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div>@@ -225,9 +217,7 @@ validated to form a valid model.</p><h4><code><a title="atomic_agents.lib.base.base_tool.BaseToolConfig" href="#atomic_agents.lib.base.base_tool.BaseToolConfig">BaseToolConfig</a></code></h4><ul class=""><li><code><a title="atomic_agents.lib.base.base_tool.BaseToolConfig.description" href="#atomic_agents.lib.base.base_tool.BaseToolConfig.description">description</a></code></li>-<li><code><a title="atomic_agents.lib.base.base_tool.BaseToolConfig.model_computed_fields" href="#atomic_agents.lib.base.base_tool.BaseToolConfig.model_computed_fields">model_computed_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_tool.BaseToolConfig.model_config" href="#atomic_agents.lib.base.base_tool.BaseToolConfig.model_config">model_config</a></code></li>-<li><code><a title="atomic_agents.lib.base.base_tool.BaseToolConfig.model_fields" href="#atomic_agents.lib.base.base_tool.BaseToolConfig.model_fields">model_fields</a></code></li><li><code><a title="atomic_agents.lib.base.base_tool.BaseToolConfig.title" href="#atomic_agents.lib.base.base_tool.BaseToolConfig.title">title</a></code></li></ul></li>diff --git a/docs/lib/components/agent_memory.html b/docs/lib/components/agent_memory.htmlindex c46e1de..1199cc3 100644--- a/docs/lib/components/agent_memory.html+++ b/docs/lib/components/agent_memory.html@@ -420,18 +420,10 @@ validated to form a valid model.</p><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.lib.components.agent_memory.Message.model_computed_fields"><code class="name">var <span class="ident">model_computed_fields</span></code></dt>-<dd>-<div class="desc"><p>The type of the None singleton.</p></div>-</dd><dt id="atomic_agents.lib.components.agent_memory.Message.model_config"><code class="name">var <span class="ident">model_config</span></code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div></dd>-<dt id="atomic_agents.lib.components.agent_memory.Message.model_fields"><code class="name">var <span class="ident">model_fields</span></code></dt>-<dd>-<div class="desc"><p>The type of the None singleton.</p></div>-</dd><dt id="atomic_agents.lib.components.agent_memory.Message.role"><code class="name">var <span class="ident">role</span> : str</code></dt><dd><div class="desc"><p>The type of the None singleton.</p></div>@@ -475,9 +467,7 @@ validated to form a valid model.</p><h4><code><a title="atomic_agents.lib.components.agent_memory.Message" href="#atomic_agents.lib.components.agent_memory.Message">Message</a></code></h4><ul class=""><li><code><a title="atomic_agents.lib.components.agent_memory.Message.content" href="#atomic_agents.lib.components.agent_memory.Message.content">content</a></code></li>-<li><code><a title="atomic_agents.lib.components.agent_memory.Message.model_computed_fields" href="#atomic_agents.lib.components.agent_memory.Message.model_computed_fields">model_computed_fields</a></code></li><li><code><a title="atomic_agents.lib.components.agent_memory.Message.model_config" href="#atomic_agents.lib.components.agent_memory.Message.model_config">model_config</a></code></li>-<li><code><a title="atomic_agents.lib.components.agent_memory.Message.model_fields" href="#atomic_agents.lib.components.agent_memory.Message.model_fields">model_fields</a></code></li><li><code><a title="atomic_agents.lib.components.agent_memory.Message.role" href="#atomic_agents.lib.components.agent_memory.Message.role">role</a></code></li><li><code><a title="atomic_agents.lib.components.agent_memory.Message.turn_id" href="#atomic_agents.lib.components.agent_memory.Message.turn_id">turn_id</a></code></li></ul>