migrate fern

This commit is contained in:
Kian Jones
2025-09-09 09:31:59 -07:00
parent 0c5f5dadb8
commit 1881fcc89d
339 changed files with 50713 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
---
slug: python-reference/AgentState
---
<a id="letta.schemas.agent.AgentState"></a>
## AgentState
```python
class AgentState(BaseAgent)
```
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.
**Arguments**:
- `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.