New strip_messages field in Import Agent API

The Import Agent API now supports a new strip_messages field to remove messages from the agent’s conversation history when importing a serialized agent file.

1from letta_client import Letta
2client = Letta(
3 token="YOUR_API_KEY",
4)
5client.agents.import_agent_serialized(
6 file=open("/path/to/agent/file.af", "rb"),
7 strip_messages=True,
8)