* wait I forgot to comit locally * cp the entire core directory and then rm the .git subdir
26 lines
1018 B
Plaintext
26 lines
1018 B
Plaintext
---
|
|
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.
|