LettaAPI.Model.AgentState (letta_api v1.0.0)
Representation of an agent's state. This is the state of the agent at a given time, and is persisted in the DB backend. The state has all the information needed to recreate a persisted agent. Parameters: id (str): The unique identifier of the agent. name (str): The name of the agent (must be unique to the user). created_at (datetime): The datetime the agent was created. message_ids (List[str]): The ids of the messages in the agent's in-context memory. memory (Memory): The in-context memory of the agent. tools (List[str]): The tools used by the agent. This includes any memory editing functions specified in memory
. system (str): The system prompt used by the agent. llm_config (LLMConfig): The LLM configuration used by the agent. embedding_config (EmbeddingConfig): The embedding configuration used by the agent.
Summary
Types
@type t() :: %LettaAPI.Model.AgentState{ agent_type: LettaAPI.Model.AgentType.t(), base_template_id: String.t() | nil, created_at: DateTime.t() | nil, created_by_id: String.t() | nil, description: String.t() | nil, embedding_config: LettaAPI.Model.EmbeddingConfig.t(), enable_sleeptime: boolean() | nil, id: String.t(), identity_ids: [String.t()] | nil, last_updated_by_id: String.t() | nil, llm_config: LettaAPI.Model.LlmConfig.t(), memory: LettaAPI.Model.Memory.t(), message_buffer_autoclear: boolean() | nil, message_ids: [String.t()] | nil, metadata: %{optional(String.t()) => any()} | nil, multi_agent_group: LettaAPI.Model.Group.t() | nil, name: String.t(), organization_id: String.t() | nil, project_id: String.t() | nil, response_format: LettaAPI.Model.AgentStateResponseFormat.t() | nil, sources: [LettaAPI.Model.Source.t()], system: String.t(), tags: [String.t()], template_id: String.t() | nil, tool_exec_environment_variables: [LettaAPI.Model.AgentEnvironmentVariable.t()] | nil, tool_rules: [LettaAPI.Model.AgentStateToolRulesInner.t()] | nil, tools: [LettaAPI.Model.Tool.t()], updated_at: DateTime.t() | nil }