New reasoning_effort field added to LLMConfig

The reasoning_effort field has been added to the LLMConfig object to control the amount of reasoning the model should perform, to support OpenAI’s o1 and o3 reasoning models.

New sender_id parameter added to Message model

The Message object now includes a sender_id field, which is the ID of the sender of the message, which can be either an identity ID or an agent ID. The sender_id is expected to be passed in at message creation time.

1from letta_client import Letta
2client = Letta(
3 token="YOUR_API_KEY",
4)
5messages = client.agents.messages.create(
6 agent_id="AGENT_ID",
7 messages=[
8 MessageCreate(
9 role="user",
10 content="Hello, how are you?",
11 sender_id="IDENTITY_ID",
12 )
13 ]
14)