Files
letta-server/fern/python-reference/LettaResponse.mdx
Kian Jones b8e9a80d93 merge this (#4759)
* wait I forgot to comit locally

* cp the entire core directory and then rm the .git subdir
2025-09-17 15:47:40 -07:00

20 lines
573 B
Plaintext

---
slug: python-reference/LettaResponse
---
<a id="letta.schemas.letta_response.LettaResponse"></a>
## LettaResponse
```python
class LettaResponse(BaseModel)
```
Response object from an agent interaction, consisting of the new messages generated by the agent and usage statistics.
The type of the returned messages can be either `Message` or `LettaMessage`, depending on what was specified in the request.
**Attributes**:
- `messages` _List[Union[Message, LettaMessage]]_ - The messages returned by the agent.
- `usage` _LettaUsageStatistics_ - The usage statistics