Skip to content

Commit 3ce1bc2

Browse files
feat: make config for mcp_servers and messages.modify nested
1 parent 95ab434 commit 3ce1bc2

File tree

8 files changed

+57
-389
lines changed

8 files changed

+57
-389
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/letta-ai%2Fletta-sdk-f8895e3edc6298dbbfa0d5780411fb3d3208bcc7f484a547181ed1b828116a1a.yml
3-
openapi_spec_hash: aec7ea8b52506cc1ad1de827eec3c138
4-
config_hash: 37b13cab89d3e3c75d58ef7fe8a418eb
1+
configured_endpoints: 114
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/letta-ai%2Fletta-sdk-31a59b3465aaa88d01e755092e5874ae4046276f160c1ff9513e71f5a4aa9fe4.yml
3+
openapi_spec_hash: 81d752e212bfcc25fd2cb26f8fb28026
4+
config_hash: a9ffe1b7561ba585500168cc73f071de

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,11 @@ Types:
9696
- <code><a href="./src/resources/agents/messages.ts">UpdateSystemMessage</a></code>
9797
- <code><a href="./src/resources/agents/messages.ts">UpdateUserMessage</a></code>
9898
- <code><a href="./src/resources/agents/messages.ts">UserMessage</a></code>
99-
- <code><a href="./src/resources/agents/messages.ts">MessageUpdateResponse</a></code>
10099
- <code><a href="./src/resources/agents/messages.ts">MessageCancelResponse</a></code>
101100

102101
Methods:
103102

104103
- <code title="post /v1/agents/{agent_id}/messages">client.agents.messages.<a href="./src/resources/agents/messages.ts">create</a>(agentID, { ...params }) -> LettaResponse</code>
105-
- <code title="patch /v1/agents/{agent_id}/messages/{message_id}">client.agents.messages.<a href="./src/resources/agents/messages.ts">update</a>(messageID, { ...params }) -> MessageUpdateResponse</code>
106104
- <code title="get /v1/agents/{agent_id}/messages">client.agents.messages.<a href="./src/resources/agents/messages.ts">list</a>(agentID, { ...params }) -> MessagesArrayPage</code>
107105
- <code title="post /v1/agents/{agent_id}/messages/cancel">client.agents.messages.<a href="./src/resources/agents/messages.ts">cancel</a>(agentID, { ...params }) -> MessageCancelResponse</code>
108106
- <code title="post /v1/agents/{agent_id}/summarize">client.agents.messages.<a href="./src/resources/agents/messages.ts">compact</a>(agentID) -> void</code>

src/resources/agents/agents.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ import {
8484
MessageRole,
8585
MessageStreamParams,
8686
MessageType,
87-
MessageUpdateParams,
88-
MessageUpdateResponse,
8987
Messages,
9088
MessagesArrayPage,
9189
OmittedReasoningContent,
@@ -2239,13 +2237,11 @@ export declare namespace Agents {
22392237
type UpdateSystemMessage as UpdateSystemMessage,
22402238
type UpdateUserMessage as UpdateUserMessage,
22412239
type UserMessage as UserMessage,
2242-
type MessageUpdateResponse as MessageUpdateResponse,
22432240
type MessageCancelResponse as MessageCancelResponse,
22442241
type MessagesArrayPage as MessagesArrayPage,
22452242
type MessageCreateParams as MessageCreateParams,
22462243
type MessageCreateParamsNonStreaming as MessageCreateParamsNonStreaming,
22472244
type MessageCreateParamsStreaming as MessageCreateParamsStreaming,
2248-
type MessageUpdateParams as MessageUpdateParams,
22492245
type MessageListParams as MessageListParams,
22502246
type MessageCancelParams as MessageCancelParams,
22512247
type MessageCreateAsyncParams as MessageCreateAsyncParams,

src/resources/agents/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,10 @@ export {
125125
type UpdateSystemMessage,
126126
type UpdateUserMessage,
127127
type UserMessage,
128-
type MessageUpdateResponse,
129128
type MessageCancelResponse,
130129
type MessageCreateParams,
131130
type MessageCreateParamsNonStreaming,
132131
type MessageCreateParamsStreaming,
133-
type MessageUpdateParams,
134132
type MessageListParams,
135133
type MessageCancelParams,
136134
type MessageCreateAsyncParams,

src/resources/agents/messages.ts

Lines changed: 0 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -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-
17331700
export type MessageCancelResponse = { [key: string]: unknown };
17341701

17351702
export 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-
19621850
export 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

Comments
 (0)