Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: add conversation_id to message search results (#9056)
Charles Packer82c01368fce2
diff --git a/fern/openapi.json b/fern/openapi.jsonindex b9def2e21..4e3fead56 100644--- a/fern/openapi.json+++ b/fern/openapi.json@@ -26630,6 +26630,18 @@"title": "Agent Id","description": "The unique identifier of the agent that owns the message."},+ "conversation_id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Conversation Id",+ "description": "The unique identifier of the conversation that the message belongs to."+ },"created_at": {"type": "string","format": "date-time",@@ -40045,6 +40057,18 @@"title": "Agent Id","description": "The unique identifier of the agent that owns the message."},+ "conversation_id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Conversation Id",+ "description": "The unique identifier of the conversation that the message belongs to."+ },"created_at": {"type": "string","format": "date-time",@@ -42592,6 +42616,18 @@"title": "Agent Id","description": "The unique identifier of the agent that owns the message."},+ "conversation_id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Conversation Id",+ "description": "The unique identifier of the conversation that the message belongs to."+ },"created_at": {"type": "string","format": "date-time",@@ -45295,6 +45331,18 @@"title": "Agent Id","description": "The unique identifier of the agent that owns the message."},+ "conversation_id": {+ "anyOf": [+ {+ "type": "string"+ },+ {+ "type": "null"+ }+ ],+ "title": "Conversation Id",+ "description": "The unique identifier of the conversation that the message belongs to."+ },"created_at": {"type": "string","format": "date-time",diff --git a/letta/schemas/letta_message.py b/letta/schemas/letta_message.pyindex 712071ae0..b90628dde 100644--- a/letta/schemas/letta_message.py+++ b/letta/schemas/letta_message.py@@ -569,6 +569,10 @@ class SystemMessageListResult(UpdateSystemMessage):default=None,description="The unique identifier of the agent that owns the message.",)+ conversation_id: str | None = Field(+ default=None,+ description="The unique identifier of the conversation that the message belongs to.",+ )created_at: datetime = Field(..., description="The time the message was created in ISO format.")@@ -587,6 +591,10 @@ class UserMessageListResult(UpdateUserMessage):default=None,description="The unique identifier of the agent that owns the message.",)+ conversation_id: str | None = Field(+ default=None,+ description="The unique identifier of the conversation that the message belongs to.",+ )created_at: datetime = Field(..., description="The time the message was created in ISO format.")@@ -605,6 +613,10 @@ class ReasoningMessageListResult(UpdateReasoningMessage):default=None,description="The unique identifier of the agent that owns the message.",)+ conversation_id: str | None = Field(+ default=None,+ description="The unique identifier of the conversation that the message belongs to.",+ )created_at: datetime = Field(..., description="The time the message was created in ISO format.")@@ -623,6 +635,10 @@ class AssistantMessageListResult(UpdateAssistantMessage):default=None,description="The unique identifier of the agent that owns the message.",)+ conversation_id: str | None = Field(+ default=None,+ description="The unique identifier of the conversation that the message belongs to.",+ )created_at: datetime = Field(..., description="The time the message was created in ISO format.")diff --git a/letta/schemas/message.py b/letta/schemas/message.pyindex 5520249f6..22ed104a7 100644--- a/letta/schemas/message.py+++ b/letta/schemas/message.py@@ -395,6 +395,7 @@ class Message(BaseMessage):message_type=lm.message_type,content=lm.content,agent_id=message.agent_id,+ conversation_id=message.conversation_id,created_at=message.created_at,))@@ -405,6 +406,7 @@ class Message(BaseMessage):message_type=lm.message_type,content=lm.content,agent_id=message.agent_id,+ conversation_id=message.conversation_id,created_at=message.created_at,))@@ -415,6 +417,7 @@ class Message(BaseMessage):message_type=lm.message_type,reasoning=lm.reasoning,agent_id=message.agent_id,+ conversation_id=message.conversation_id,created_at=message.created_at,))@@ -425,6 +428,7 @@ class Message(BaseMessage):message_type=lm.message_type,content=lm.content,agent_id=message.agent_id,+ conversation_id=message.conversation_id,created_at=message.created_at,))