Retrieve Conversation
Retrieve a specific conversation.
ParametersExpand Collapse
ReturnsExpand Collapse
class Conversation: …
Represents a conversation on an agent for concurrent messaging.
context_window_limit: Optional[int]
The context window limit for this conversation (overrides agent’s context window).
description: Optional[str]
A generated description of the conversation used for search and bootstrap context.
in_context_message_ids: Optional[List[str]]
The IDs of in-context messages for the conversation. Null means this field was not retrieved/hydrated for this response.
last_message_at: Optional[datetime]
Timestamp of the most recent message request sent to this conversation.
model: Optional[str]
The model handle for this conversation (overrides agent’s model). Format: provider/model-name.
model_settings: Optional[ModelSettings]
The model settings for this conversation (overrides agent’s model settings).
class OpenAIModelSettings: …
response_format: Optional[ResponseFormat]
class ModelSettingsSgLangModelSettings: …
SGLang model configuration (OpenAI-compatible runtime with SGLang-specific parsing).
response_format: Optional[ModelSettingsSgLangModelSettingsResponseFormat]
class AnthropicModelSettings: …
response_format: Optional[ResponseFormat]
strict: Optional[bool]
Enable strict mode for tool calling. When true, tool outputs are guaranteed to match JSON schemas.
class GoogleAIModelSettings: …
class GoogleVertexModelSettings: …
class AzureModelSettings: …
class XaiModelSettings: …
class ModelSettingsMoonshotModelSettings: …
Moonshot/Kimi model configuration (OpenAI-compatible).
response_format: Optional[ModelSettingsMoonshotModelSettingsResponseFormat]
class ModelSettingsZaiModelSettings: …
class ModelSettingsMoonshotCodingModelSettings: …
Kimi Code model configuration (Anthropic-compatible).
response_format: Optional[ModelSettingsMoonshotCodingModelSettingsResponseFormat]
strict: Optional[bool]
Enable strict mode for tool calling. When true, tool outputs are guaranteed to match JSON schemas.
class GroqModelSettings: …
class DeepseekModelSettings: …
class TogetherModelSettings: …
class BedrockModelSettings: …
class ModelSettingsOpenRouterModelSettings: …
Retrieve Conversation
import os
from letta_client import Letta
client = Letta(
api_key=os.environ.get("LETTA_API_KEY"), # This is the default and can be omitted
)
conversation = client.conversations.retrieve(
"conv-123e4567-e89b-42d3-8456-426614174000",
)
print(conversation.id){
"id": "id",
"agent_id": "agent_id",
"archived": true,
"archived_at": "2019-12-27T18:11:19.117Z",
"context_window_limit": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"description": "description",
"in_context_message_ids": [
"string"
],
"last_message_at": "2019-12-27T18:11:19.117Z",
"last_updated_by_id": "last_updated_by_id",
"model": "model",
"model_settings": {
"max_output_tokens": 0,
"parallel_tool_calls": true,
"provider_type": "openai",
"reasoning": {
"reasoning_effort": "none"
},
"response_format": {
"type": "text"
},
"strict": true,
"temperature": 0
},
"summary": "summary",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"agent_id": "agent_id",
"archived": true,
"archived_at": "2019-12-27T18:11:19.117Z",
"context_window_limit": 0,
"created_at": "2019-12-27T18:11:19.117Z",
"created_by_id": "created_by_id",
"description": "description",
"in_context_message_ids": [
"string"
],
"last_message_at": "2019-12-27T18:11:19.117Z",
"last_updated_by_id": "last_updated_by_id",
"model": "model",
"model_settings": {
"max_output_tokens": 0,
"parallel_tool_calls": true,
"provider_type": "openai",
"reasoning": {
"reasoning_effort": "none"
},
"response_format": {
"type": "text"
},
"strict": true,
"temperature": 0
},
"summary": "summary",
"updated_at": "2019-12-27T18:11:19.117Z"
}
Skip to content