The official Python library for the Letta API, providing a typed interface to agents, conversations, messages, tools, and more. Current version 1.10.3, requires Python >=3.9, actively maintained with frequent releases (multiple per month).
pip install letta-clientVerified import paths — ran on the pinned version, not inferred.
Initialize the Letta client and list all agents.
Use keyword arguments: `Letta(api_key='...')`. For environment variable, omit api_key entirely.
Always use the exact model string as returned by `client.models.list()`.
Add `stream=True` to create calls: `client.messages.create(..., stream=True)`.