@@ -56,18 +56,6 @@ export class Messages extends APIResource {
5656 } ) as APIPromise < LettaResponse > | APIPromise < Stream < LettaStreamingResponse > > ;
5757 }
5858
59- /**
60- * Update the details of a message associated with an agent.
61- */
62- update (
63- messageID : string ,
64- params : MessageUpdateParams ,
65- options ?: RequestOptions ,
66- ) : APIPromise < MessageUpdateResponse > {
67- const { agent_id, ...body } = params ;
68- return this . _client . patch ( path `/v1/agents/${ agent_id } /messages/${ messageID } ` , { body, ...options } ) ;
69- }
70-
7159 /**
7260 * Retrieve message history for an agent.
7361 */
@@ -1709,27 +1697,6 @@ export interface UserMessage {
17091697 step_id ?: string | null ;
17101698}
17111699
1712- /**
1713- * A message generated by the system. Never streamed back on a response, only used
1714- * for cursor pagination.
1715- *
1716- * Args: id (str): The ID of the message date (datetime): The date the message was
1717- * created in ISO format name (Optional[str]): The name of the sender of the
1718- * message content (str): The message content sent by the system
1719- */
1720- export type MessageUpdateResponse =
1721- | SystemMessage
1722- | UserMessage
1723- | ReasoningMessage
1724- | HiddenReasoningMessage
1725- | ToolCallMessage
1726- | ToolsAPI . ToolReturnMessage
1727- | AssistantMessage
1728- | ApprovalRequestMessage
1729- | ApprovalResponseMessage
1730- | SummaryMessage
1731- | EventMessage ;
1732-
17331700export type MessageCancelResponse = { [ key : string ] : unknown } ;
17341701
17351702export type MessageCreateParams = MessageCreateParamsNonStreaming | MessageCreateParamsStreaming ;
@@ -1880,85 +1847,6 @@ export interface MessageCreateParamsStreaming extends MessageCreateParamsBase {
18801847 streaming : true ;
18811848}
18821849
1883- export type MessageUpdateParams =
1884- | MessageUpdateParams . UpdateSystemMessage
1885- | MessageUpdateParams . UpdateUserMessage
1886- | MessageUpdateParams . UpdateReasoningMessage
1887- | MessageUpdateParams . UpdateAssistantMessage ;
1888-
1889- export declare namespace MessageUpdateParams {
1890- export interface UpdateSystemMessage {
1891- /**
1892- * Path param: The ID of the agent in the format 'agent-<uuid4>'
1893- */
1894- agent_id : string ;
1895-
1896- /**
1897- * Body param: The message content sent by the system (can be a string or an array
1898- * of multi-modal content parts)
1899- */
1900- content : string ;
1901-
1902- /**
1903- * Body param:
1904- */
1905- message_type ?: 'system_message' ;
1906- }
1907-
1908- export interface UpdateUserMessage {
1909- /**
1910- * Path param: The ID of the agent in the format 'agent-<uuid4>'
1911- */
1912- agent_id : string ;
1913-
1914- /**
1915- * Body param: The message content sent by the user (can be a string or an array of
1916- * multi-modal content parts)
1917- */
1918- content : Array < LettaUserMessageContentUnion > | string ;
1919-
1920- /**
1921- * Body param:
1922- */
1923- message_type ?: 'user_message' ;
1924- }
1925-
1926- export interface UpdateReasoningMessage {
1927- /**
1928- * Path param: The ID of the agent in the format 'agent-<uuid4>'
1929- */
1930- agent_id : string ;
1931-
1932- /**
1933- * Body param:
1934- */
1935- reasoning : string ;
1936-
1937- /**
1938- * Body param:
1939- */
1940- message_type ?: 'reasoning_message' ;
1941- }
1942-
1943- export interface UpdateAssistantMessage {
1944- /**
1945- * Path param: The ID of the agent in the format 'agent-<uuid4>'
1946- */
1947- agent_id : string ;
1948-
1949- /**
1950- * Body param: The message content sent by the assistant (can be a string or an
1951- * array of content parts)
1952- */
1953- content : Array < LettaAssistantMessageContentUnion > | string ;
1954-
1955- /**
1956- * Body param:
1957- */
1958- message_type ?: 'assistant_message' ;
1959- }
1960- }
1961-
19621850export interface MessageListParams extends ArrayPageParams {
19631851 /**
19641852 * @deprecated The name of the message argument.
@@ -2277,13 +2165,11 @@ export declare namespace Messages {
22772165 type UpdateSystemMessage as UpdateSystemMessage ,
22782166 type UpdateUserMessage as UpdateUserMessage ,
22792167 type UserMessage as UserMessage ,
2280- type MessageUpdateResponse as MessageUpdateResponse ,
22812168 type MessageCancelResponse as MessageCancelResponse ,
22822169 type MessagesArrayPage as MessagesArrayPage ,
22832170 type MessageCreateParams as MessageCreateParams ,
22842171 type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming ,
22852172 type MessageCreateParamsStreaming as MessageCreateParamsStreaming ,
2286- type MessageUpdateParams as MessageUpdateParams ,
22872173 type MessageListParams as MessageListParams ,
22882174 type MessageCancelParams as MessageCancelParams ,
22892175 type MessageCreateAsyncParams as MessageCreateAsyncParams ,
0 commit comments