@letta-ai/letta-client 0.1.197 → 0.1.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.d.ts +0 -17
- package/api/resources/agents/client/Client.js +11 -95
- package/api/resources/agents/client/requests/index.d.ts +0 -1
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/index.d.ts +1 -0
- package/api/resources/agents/resources/index.js +1 -0
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
- package/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
- package/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
- package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/api/resources/agents/resources/messages/types/index.js +1 -0
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
- package/api/resources/agents/resources/tools/client/Client.js +48 -17
- package/api/resources/agents/resources/tools/client/index.d.ts +1 -1
- package/api/resources/agents/resources/tools/client/index.js +15 -0
- package/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
- package/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/tools/client/requests/index.js +2 -0
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +5 -5
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +3 -3
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +15 -9
- package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ApprovalCreate.d.ts +16 -0
- package/api/types/ApprovalCreate.js +5 -0
- package/api/types/ApprovalRequestMessage.d.ts +27 -0
- package/api/types/ApprovalRequestMessage.js +5 -0
- package/api/types/ApprovalResponseMessage.d.ts +32 -0
- package/api/types/ApprovalResponseMessage.js +5 -0
- package/api/types/LettaBatchRequest.d.ts +1 -1
- package/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
- package/api/types/LettaBatchRequestMessagesItem.js +5 -0
- package/api/types/LettaMessageUnion.d.ts +1 -1
- package/api/types/LettaRequest.d.ts +1 -1
- package/api/types/LettaRequestMessagesItem.d.ts +5 -0
- package/api/types/LettaRequestMessagesItem.js +5 -0
- package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
- package/api/types/LettaStreamingRequest.d.ts +2 -2
- package/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
- package/api/types/LettaStreamingRequestMessagesItem.js +5 -0
- package/api/types/MessageCreate.d.ts +2 -0
- package/api/types/MessageRole.d.ts +2 -1
- package/api/types/MessageRole.js +1 -0
- package/api/types/Passage.d.ts +2 -0
- package/api/types/StopReasonType.d.ts +2 -1
- package/api/types/StopReasonType.js +1 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/api/resources/agents/client/Client.d.ts +0 -17
- package/dist/api/resources/agents/client/Client.js +11 -95
- package/dist/api/resources/agents/client/requests/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/index.js +1 -0
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +5 -0
- package/dist/api/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +5 -0
- package/dist/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +10 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +48 -17
- package/dist/api/resources/agents/resources/tools/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/tools/client/index.js +15 -0
- package/dist/api/resources/agents/{client/requests/ModifyApprovalRequest.d.ts → resources/tools/client/requests/ToolsModifyApprovalRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js +5 -0
- package/dist/api/resources/agents/resources/tools/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/tools/client/requests/index.js +2 -0
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +5 -5
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +15 -9
- package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +8 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ApprovalCreate.d.ts +16 -0
- package/dist/api/types/ApprovalCreate.js +5 -0
- package/dist/api/types/ApprovalRequestMessage.d.ts +27 -0
- package/dist/api/types/ApprovalRequestMessage.js +5 -0
- package/dist/api/types/ApprovalResponseMessage.d.ts +32 -0
- package/dist/api/types/ApprovalResponseMessage.js +5 -0
- package/dist/api/types/LettaBatchRequest.d.ts +1 -1
- package/dist/api/types/LettaBatchRequestMessagesItem.d.ts +5 -0
- package/dist/api/types/LettaBatchRequestMessagesItem.js +5 -0
- package/dist/api/types/LettaMessageUnion.d.ts +1 -1
- package/dist/api/types/LettaRequest.d.ts +1 -1
- package/dist/api/types/LettaRequestMessagesItem.d.ts +5 -0
- package/dist/api/types/LettaRequestMessagesItem.js +5 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +2 -0
- package/dist/api/types/LettaStreamingRequest.d.ts +2 -2
- package/dist/api/types/LettaStreamingRequestMessagesItem.d.ts +5 -0
- package/dist/api/types/LettaStreamingRequestMessagesItem.js +5 -0
- package/dist/api/types/MessageCreate.d.ts +2 -0
- package/dist/api/types/MessageRole.d.ts +2 -1
- package/dist/api/types/MessageRole.js +1 -0
- package/dist/api/types/Passage.d.ts +2 -0
- package/dist/api/types/StopReasonType.d.ts +2 -1
- package/dist/api/types/StopReasonType.js +1 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
- package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
- package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
- package/dist/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
- package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
- package/dist/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
- package/dist/serialization/types/ApprovalCreate.d.ts +15 -0
- package/dist/serialization/types/ApprovalCreate.js +46 -0
- package/dist/serialization/types/ApprovalRequestMessage.d.ts +23 -0
- package/dist/serialization/types/ApprovalRequestMessage.js +54 -0
- package/dist/serialization/types/ApprovalResponseMessage.d.ts +24 -0
- package/dist/serialization/types/ApprovalResponseMessage.js +55 -0
- package/dist/serialization/types/LettaBatchRequest.d.ts +2 -2
- package/dist/serialization/types/LettaBatchRequest.js +2 -2
- package/dist/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
- package/dist/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
- package/dist/serialization/types/LettaMessageUnion.d.ts +3 -1
- package/dist/serialization/types/LettaMessageUnion.js +4 -0
- package/dist/serialization/types/LettaRequest.d.ts +2 -2
- package/dist/serialization/types/LettaRequest.js +2 -2
- package/dist/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
- package/dist/serialization/types/LettaRequestMessagesItem.js +43 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
- package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -2
- package/dist/serialization/types/LettaStreamingRequest.js +2 -2
- package/dist/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
- package/dist/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
- package/dist/serialization/types/MessageCreate.d.ts +1 -0
- package/dist/serialization/types/MessageCreate.js +1 -0
- package/dist/serialization/types/MessageRole.d.ts +1 -1
- package/dist/serialization/types/MessageRole.js +1 -1
- package/dist/serialization/types/Passage.d.ts +1 -0
- package/dist/serialization/types/Passage.js +1 -0
- package/dist/serialization/types/StopReasonType.d.ts +1 -1
- package/dist/serialization/types/StopReasonType.js +1 -0
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +28 -84
- package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -2
- package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +2 -2
- package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.d.ts +12 -0
- package/serialization/resources/agents/resources/messages/types/LettaAsyncRequestMessagesItem.js +43 -0
- package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
- package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +4 -0
- package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.d.ts +3 -1
- package/serialization/resources/groups/resources/messages/types/MessagesModifyResponse.js +4 -0
- package/serialization/types/ApprovalCreate.d.ts +15 -0
- package/serialization/types/ApprovalCreate.js +46 -0
- package/serialization/types/ApprovalRequestMessage.d.ts +23 -0
- package/serialization/types/ApprovalRequestMessage.js +54 -0
- package/serialization/types/ApprovalResponseMessage.d.ts +24 -0
- package/serialization/types/ApprovalResponseMessage.js +55 -0
- package/serialization/types/LettaBatchRequest.d.ts +2 -2
- package/serialization/types/LettaBatchRequest.js +2 -2
- package/serialization/types/LettaBatchRequestMessagesItem.d.ts +12 -0
- package/serialization/types/LettaBatchRequestMessagesItem.js +43 -0
- package/serialization/types/LettaMessageUnion.d.ts +3 -1
- package/serialization/types/LettaMessageUnion.js +4 -0
- package/serialization/types/LettaRequest.d.ts +2 -2
- package/serialization/types/LettaRequest.js +2 -2
- package/serialization/types/LettaRequestMessagesItem.d.ts +12 -0
- package/serialization/types/LettaRequestMessagesItem.js +43 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +1 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchema.js +1 -0
- package/serialization/types/LettaStreamingRequest.d.ts +2 -2
- package/serialization/types/LettaStreamingRequest.js +2 -2
- package/serialization/types/LettaStreamingRequestMessagesItem.d.ts +12 -0
- package/serialization/types/LettaStreamingRequestMessagesItem.js +43 -0
- package/serialization/types/MessageCreate.d.ts +1 -0
- package/serialization/types/MessageCreate.js +1 -0
- package/serialization/types/MessageRole.d.ts +1 -1
- package/serialization/types/MessageRole.js +1 -1
- package/serialization/types/Passage.d.ts +1 -0
- package/serialization/types/Passage.js +1 -0
- package/serialization/types/StopReasonType.d.ts +1 -1
- package/serialization/types/StopReasonType.js +1 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/agents/{client/requests/ModifyApprovalRequest.js → resources/messages/types/LettaAsyncRequestMessagesItem.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/ModifyApprovalRequest.js → api/resources/agents/resources/tools/client/requests/ToolsModifyApprovalRequest.js} +0 -0
|
@@ -183,23 +183,6 @@ export declare class Agents {
|
|
|
183
183
|
*/
|
|
184
184
|
modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
185
185
|
private __modify;
|
|
186
|
-
/**
|
|
187
|
-
* Attach a tool to an agent.
|
|
188
|
-
*
|
|
189
|
-
* @param {string} agentId
|
|
190
|
-
* @param {string} toolName
|
|
191
|
-
* @param {Letta.ModifyApprovalRequest} request
|
|
192
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
193
|
-
*
|
|
194
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* await client.agents.modifyApproval("agent_id", "tool_name", {
|
|
198
|
-
* requiresApproval: true
|
|
199
|
-
* })
|
|
200
|
-
*/
|
|
201
|
-
modifyApproval(agentId: string, toolName: string, request: Letta.ModifyApprovalRequest, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Letta.AgentState>;
|
|
202
|
-
private __modifyApproval;
|
|
203
186
|
/**
|
|
204
187
|
* Get the files attached to an agent with their open/closed status (paginated).
|
|
205
188
|
*
|
|
@@ -206,7 +206,7 @@ class Agents {
|
|
|
206
206
|
method: "GET",
|
|
207
207
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
208
208
|
? yield core.Supplier.get(this._options.project)
|
|
209
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
209
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
210
210
|
contentType: "application/json",
|
|
211
211
|
queryParameters: _queryParams,
|
|
212
212
|
requestType: "json",
|
|
@@ -283,7 +283,7 @@ class Agents {
|
|
|
283
283
|
method: "POST",
|
|
284
284
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
285
285
|
? yield core.Supplier.get(this._options.project)
|
|
286
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
286
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
287
287
|
contentType: "application/json",
|
|
288
288
|
requestType: "json",
|
|
289
289
|
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -359,7 +359,7 @@ class Agents {
|
|
|
359
359
|
method: "GET",
|
|
360
360
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
361
361
|
? yield core.Supplier.get(this._options.project)
|
|
362
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
362
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
363
363
|
contentType: "application/json",
|
|
364
364
|
requestType: "json",
|
|
365
365
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -448,7 +448,7 @@ class Agents {
|
|
|
448
448
|
method: "GET",
|
|
449
449
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
450
450
|
? yield core.Supplier.get(this._options.project)
|
|
451
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
451
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
452
452
|
contentType: "application/json",
|
|
453
453
|
queryParameters: _queryParams,
|
|
454
454
|
requestType: "json",
|
|
@@ -548,7 +548,7 @@ class Agents {
|
|
|
548
548
|
method: "POST",
|
|
549
549
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
550
550
|
? yield core.Supplier.get(this._options.project)
|
|
551
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
551
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
552
552
|
requestType: "file",
|
|
553
553
|
duplex: _maybeEncodedRequest.duplex,
|
|
554
554
|
body: _maybeEncodedRequest.body,
|
|
@@ -636,7 +636,7 @@ class Agents {
|
|
|
636
636
|
method: "GET",
|
|
637
637
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
638
638
|
? yield core.Supplier.get(this._options.project)
|
|
639
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
639
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
640
640
|
contentType: "application/json",
|
|
641
641
|
queryParameters: _queryParams,
|
|
642
642
|
requestType: "json",
|
|
@@ -713,7 +713,7 @@ class Agents {
|
|
|
713
713
|
method: "DELETE",
|
|
714
714
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
715
715
|
? yield core.Supplier.get(this._options.project)
|
|
716
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
716
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
717
717
|
contentType: "application/json",
|
|
718
718
|
requestType: "json",
|
|
719
719
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -781,7 +781,7 @@ class Agents {
|
|
|
781
781
|
method: "PATCH",
|
|
782
782
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
783
783
|
? yield core.Supplier.get(this._options.project)
|
|
784
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
784
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
785
785
|
contentType: "application/json",
|
|
786
786
|
requestType: "json",
|
|
787
787
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -836,90 +836,6 @@ class Agents {
|
|
|
836
836
|
}
|
|
837
837
|
});
|
|
838
838
|
}
|
|
839
|
-
/**
|
|
840
|
-
* Attach a tool to an agent.
|
|
841
|
-
*
|
|
842
|
-
* @param {string} agentId
|
|
843
|
-
* @param {string} toolName
|
|
844
|
-
* @param {Letta.ModifyApprovalRequest} request
|
|
845
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
846
|
-
*
|
|
847
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
848
|
-
*
|
|
849
|
-
* @example
|
|
850
|
-
* await client.agents.modifyApproval("agent_id", "tool_name", {
|
|
851
|
-
* requiresApproval: true
|
|
852
|
-
* })
|
|
853
|
-
*/
|
|
854
|
-
modifyApproval(agentId, toolName, request, requestOptions) {
|
|
855
|
-
return core.HttpResponsePromise.fromPromise(this.__modifyApproval(agentId, toolName, request, requestOptions));
|
|
856
|
-
}
|
|
857
|
-
__modifyApproval(agentId, toolName, request, requestOptions) {
|
|
858
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
859
|
-
var _a, _b, _c;
|
|
860
|
-
const { requiresApproval } = request;
|
|
861
|
-
const _queryParams = {};
|
|
862
|
-
_queryParams["requires_approval"] = requiresApproval.toString();
|
|
863
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
864
|
-
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools/approval/${encodeURIComponent(toolName)}`),
|
|
865
|
-
method: "PATCH",
|
|
866
|
-
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
867
|
-
? yield core.Supplier.get(this._options.project)
|
|
868
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.197", "User-Agent": "@letta-ai/letta-client/0.1.197", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
869
|
-
contentType: "application/json",
|
|
870
|
-
queryParameters: _queryParams,
|
|
871
|
-
requestType: "json",
|
|
872
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
873
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
874
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
875
|
-
});
|
|
876
|
-
if (_response.ok) {
|
|
877
|
-
return {
|
|
878
|
-
data: serializers.AgentState.parseOrThrow(_response.body, {
|
|
879
|
-
unrecognizedObjectKeys: "passthrough",
|
|
880
|
-
allowUnrecognizedUnionMembers: true,
|
|
881
|
-
allowUnrecognizedEnumValues: true,
|
|
882
|
-
skipValidation: true,
|
|
883
|
-
breadcrumbsPrefix: ["response"],
|
|
884
|
-
}),
|
|
885
|
-
rawResponse: _response.rawResponse,
|
|
886
|
-
};
|
|
887
|
-
}
|
|
888
|
-
if (_response.error.reason === "status-code") {
|
|
889
|
-
switch (_response.error.statusCode) {
|
|
890
|
-
case 422:
|
|
891
|
-
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
892
|
-
unrecognizedObjectKeys: "passthrough",
|
|
893
|
-
allowUnrecognizedUnionMembers: true,
|
|
894
|
-
allowUnrecognizedEnumValues: true,
|
|
895
|
-
skipValidation: true,
|
|
896
|
-
breadcrumbsPrefix: ["response"],
|
|
897
|
-
}), _response.rawResponse);
|
|
898
|
-
default:
|
|
899
|
-
throw new errors.LettaError({
|
|
900
|
-
statusCode: _response.error.statusCode,
|
|
901
|
-
body: _response.error.body,
|
|
902
|
-
rawResponse: _response.rawResponse,
|
|
903
|
-
});
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
switch (_response.error.reason) {
|
|
907
|
-
case "non-json":
|
|
908
|
-
throw new errors.LettaError({
|
|
909
|
-
statusCode: _response.error.statusCode,
|
|
910
|
-
body: _response.error.rawBody,
|
|
911
|
-
rawResponse: _response.rawResponse,
|
|
912
|
-
});
|
|
913
|
-
case "timeout":
|
|
914
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/agents/{agent_id}/tools/approval/{tool_name}.");
|
|
915
|
-
case "unknown":
|
|
916
|
-
throw new errors.LettaError({
|
|
917
|
-
message: _response.error.errorMessage,
|
|
918
|
-
rawResponse: _response.rawResponse,
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
});
|
|
922
|
-
}
|
|
923
839
|
/**
|
|
924
840
|
* Get the files attached to an agent with their open/closed status (paginated).
|
|
925
841
|
*
|
|
@@ -954,7 +870,7 @@ class Agents {
|
|
|
954
870
|
method: "GET",
|
|
955
871
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
956
872
|
? yield core.Supplier.get(this._options.project)
|
|
957
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
873
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
958
874
|
contentType: "application/json",
|
|
959
875
|
queryParameters: _queryParams,
|
|
960
876
|
requestType: "json",
|
|
@@ -1040,7 +956,7 @@ class Agents {
|
|
|
1040
956
|
method: "POST",
|
|
1041
957
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1042
958
|
? yield core.Supplier.get(this._options.project)
|
|
1043
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
959
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1044
960
|
contentType: "application/json",
|
|
1045
961
|
queryParameters: _queryParams,
|
|
1046
962
|
requestType: "json",
|
|
@@ -1108,7 +1024,7 @@ class Agents {
|
|
|
1108
1024
|
method: "POST",
|
|
1109
1025
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1110
1026
|
? yield core.Supplier.get(this._options.project)
|
|
1111
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1027
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1112
1028
|
contentType: "application/json",
|
|
1113
1029
|
requestType: "json",
|
|
1114
1030
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -4,7 +4,6 @@ export { type AgentsExportFileRequest } from "./AgentsExportFileRequest";
|
|
|
4
4
|
export { type BodyImportAgentSerialized } from "./BodyImportAgentSerialized";
|
|
5
5
|
export { type AgentsRetrieveRequest } from "./AgentsRetrieveRequest";
|
|
6
6
|
export { type UpdateAgent } from "./UpdateAgent";
|
|
7
|
-
export { type ModifyApprovalRequest } from "./ModifyApprovalRequest";
|
|
8
7
|
export { type ListAgentFilesRequest } from "./ListAgentFilesRequest";
|
|
9
8
|
export { type SummarizeAgentConversationRequest } from "./SummarizeAgentConversationRequest";
|
|
10
9
|
export { type AgentsSearchRequest } from "./AgentsSearchRequest";
|
|
@@ -82,7 +82,7 @@ class Blocks {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -160,7 +160,7 @@ class Blocks {
|
|
|
160
160
|
method: "PATCH",
|
|
161
161
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
162
162
|
? yield core.Supplier.get(this._options.project)
|
|
163
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
163
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
164
164
|
contentType: "application/json",
|
|
165
165
|
requestType: "json",
|
|
166
166
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -237,7 +237,7 @@ class Blocks {
|
|
|
237
237
|
method: "GET",
|
|
238
238
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
239
239
|
? yield core.Supplier.get(this._options.project)
|
|
240
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
240
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
requestType: "json",
|
|
243
243
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -314,7 +314,7 @@ class Blocks {
|
|
|
314
314
|
method: "PATCH",
|
|
315
315
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
316
316
|
? yield core.Supplier.get(this._options.project)
|
|
317
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
317
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
318
318
|
contentType: "application/json",
|
|
319
319
|
requestType: "json",
|
|
320
320
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -391,7 +391,7 @@ class Blocks {
|
|
|
391
391
|
method: "PATCH",
|
|
392
392
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
393
393
|
? yield core.Supplier.get(this._options.project)
|
|
394
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
394
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
395
395
|
contentType: "application/json",
|
|
396
396
|
requestType: "json",
|
|
397
397
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Context {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class CoreMemory {
|
|
|
82
82
|
method: "GET",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Files {
|
|
|
84
84
|
method: "PATCH",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -165,7 +165,7 @@ class Files {
|
|
|
165
165
|
method: "PATCH",
|
|
166
166
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
167
167
|
? yield core.Supplier.get(this._options.project)
|
|
168
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
168
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
169
169
|
contentType: "application/json",
|
|
170
170
|
requestType: "json",
|
|
171
171
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -245,7 +245,7 @@ class Files {
|
|
|
245
245
|
method: "PATCH",
|
|
246
246
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
247
247
|
? yield core.Supplier.get(this._options.project)
|
|
248
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
248
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
249
249
|
contentType: "application/json",
|
|
250
250
|
requestType: "json",
|
|
251
251
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -308,7 +308,7 @@ class Files {
|
|
|
308
308
|
method: "PATCH",
|
|
309
309
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
310
310
|
? yield core.Supplier.get(this._options.project)
|
|
311
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
311
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
312
312
|
contentType: "application/json",
|
|
313
313
|
requestType: "json",
|
|
314
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class Folders {
|
|
|
82
82
|
method: "PATCH",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -159,7 +159,7 @@ class Folders {
|
|
|
159
159
|
method: "PATCH",
|
|
160
160
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
161
161
|
? yield core.Supplier.get(this._options.project)
|
|
162
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
162
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
163
163
|
contentType: "application/json",
|
|
164
164
|
requestType: "json",
|
|
165
165
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -235,7 +235,7 @@ class Folders {
|
|
|
235
235
|
method: "GET",
|
|
236
236
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
237
237
|
? yield core.Supplier.get(this._options.project)
|
|
238
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
238
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
239
239
|
contentType: "application/json",
|
|
240
240
|
requestType: "json",
|
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Groups {
|
|
|
87
87
|
method: "GET",
|
|
88
88
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
89
89
|
? yield core.Supplier.get(this._options.project)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -13,6 +13,7 @@ export * as coreMemory from "./coreMemory";
|
|
|
13
13
|
export * as blocks from "./blocks";
|
|
14
14
|
export * as passages from "./passages";
|
|
15
15
|
export * as groups from "./groups";
|
|
16
|
+
export * from "./tools/client/requests";
|
|
16
17
|
export * from "./passages/client/requests";
|
|
17
18
|
export * from "./messages/client/requests";
|
|
18
19
|
export * from "./groups/client/requests";
|
|
@@ -52,6 +52,7 @@ exports.coreMemory = __importStar(require("./coreMemory"));
|
|
|
52
52
|
exports.blocks = __importStar(require("./blocks"));
|
|
53
53
|
exports.passages = __importStar(require("./passages"));
|
|
54
54
|
exports.groups = __importStar(require("./groups"));
|
|
55
|
+
__exportStar(require("./tools/client/requests"), exports);
|
|
55
56
|
__exportStar(require("./passages/client/requests"), exports);
|
|
56
57
|
__exportStar(require("./messages/client/requests"), exports);
|
|
57
58
|
__exportStar(require("./groups/client/requests"), exports);
|
|
@@ -83,7 +83,7 @@ class MemoryVariables {
|
|
|
83
83
|
method: "GET",
|
|
84
84
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
85
|
? yield core.Supplier.get(this._options.project)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -108,7 +108,7 @@ class Messages {
|
|
|
108
108
|
method: "GET",
|
|
109
109
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
110
110
|
? yield core.Supplier.get(this._options.project)
|
|
111
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
111
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
112
112
|
contentType: "application/json",
|
|
113
113
|
queryParameters: _queryParams,
|
|
114
114
|
requestType: "json",
|
|
@@ -195,7 +195,7 @@ class Messages {
|
|
|
195
195
|
method: "POST",
|
|
196
196
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
197
197
|
? yield core.Supplier.get(this._options.project)
|
|
198
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
198
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
199
199
|
contentType: "application/json",
|
|
200
200
|
requestType: "json",
|
|
201
201
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -276,7 +276,7 @@ class Messages {
|
|
|
276
276
|
method: "PATCH",
|
|
277
277
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
278
278
|
? yield core.Supplier.get(this._options.project)
|
|
279
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
279
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
280
280
|
contentType: "application/json",
|
|
281
281
|
requestType: "json",
|
|
282
282
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -347,7 +347,7 @@ class Messages {
|
|
|
347
347
|
method: "POST",
|
|
348
348
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
349
349
|
? yield core.Supplier.get(this._options.project)
|
|
350
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
350
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
351
351
|
contentType: "application/json",
|
|
352
352
|
requestType: "json",
|
|
353
353
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -438,7 +438,7 @@ class Messages {
|
|
|
438
438
|
method: "POST",
|
|
439
439
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
440
440
|
? yield core.Supplier.get(this._options.project)
|
|
441
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
441
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
442
442
|
contentType: "application/json",
|
|
443
443
|
requestType: "json",
|
|
444
444
|
body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -528,7 +528,7 @@ class Messages {
|
|
|
528
528
|
method: "POST",
|
|
529
529
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
530
530
|
? yield core.Supplier.get(this._options.project)
|
|
531
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
531
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
532
532
|
contentType: "application/json",
|
|
533
533
|
requestType: "json",
|
|
534
534
|
body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -611,7 +611,7 @@ class Messages {
|
|
|
611
611
|
method: "PATCH",
|
|
612
612
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
613
613
|
? yield core.Supplier.get(this._options.project)
|
|
614
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
614
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
615
615
|
contentType: "application/json",
|
|
616
616
|
queryParameters: _queryParams,
|
|
617
617
|
requestType: "json",
|
|
@@ -701,7 +701,7 @@ class Messages {
|
|
|
701
701
|
method: "POST",
|
|
702
702
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
703
703
|
? yield core.Supplier.get(this._options.project)
|
|
704
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
704
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
705
705
|
contentType: "application/json",
|
|
706
706
|
requestType: "json",
|
|
707
707
|
body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
|
|
@@ -16,7 +16,7 @@ import * as Letta from "../../../../../../index";
|
|
|
16
16
|
*/
|
|
17
17
|
export interface LettaAsyncRequest {
|
|
18
18
|
/** The messages to be sent to the agent. */
|
|
19
|
-
messages: Letta.
|
|
19
|
+
messages: Letta.agents.LettaAsyncRequestMessagesItem[];
|
|
20
20
|
/** Maximum number of steps the agent should take to process the request. */
|
|
21
21
|
maxSteps?: number;
|
|
22
22
|
/** Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects. */
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../../../index";
|
|
5
|
-
export type MessagesModifyResponse = Letta.SystemMessage | Letta.UserMessage | Letta.ReasoningMessage | Letta.HiddenReasoningMessage | Letta.ToolCallMessage | Letta.ToolReturnMessage | Letta.AssistantMessage;
|
|
5
|
+
export type MessagesModifyResponse = Letta.SystemMessage | Letta.UserMessage | Letta.ReasoningMessage | Letta.HiddenReasoningMessage | Letta.ToolCallMessage | Letta.ToolReturnMessage | Letta.AssistantMessage | Letta.ApprovalRequestMessage | Letta.ApprovalResponseMessage;
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./MessagesModifyRequest"), exports);
|
|
18
18
|
__exportStar(require("./MessagesModifyResponse"), exports);
|
|
19
19
|
__exportStar(require("./LettaStreamingResponse"), exports);
|
|
20
|
+
__exportStar(require("./LettaAsyncRequestMessagesItem"), exports);
|
|
20
21
|
__exportStar(require("./MessagesPreviewRawPayloadRequest"), exports);
|
|
@@ -99,7 +99,7 @@ class Passages {
|
|
|
99
99
|
method: "GET",
|
|
100
100
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
101
101
|
? yield core.Supplier.get(this._options.project)
|
|
102
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
102
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
103
103
|
contentType: "application/json",
|
|
104
104
|
queryParameters: _queryParams,
|
|
105
105
|
requestType: "json",
|
|
@@ -179,7 +179,7 @@ class Passages {
|
|
|
179
179
|
method: "POST",
|
|
180
180
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
181
181
|
? yield core.Supplier.get(this._options.project)
|
|
182
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
182
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
183
183
|
contentType: "application/json",
|
|
184
184
|
requestType: "json",
|
|
185
185
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -257,7 +257,7 @@ class Passages {
|
|
|
257
257
|
method: "DELETE",
|
|
258
258
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
259
259
|
? yield core.Supplier.get(this._options.project)
|
|
260
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
260
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
261
261
|
contentType: "application/json",
|
|
262
262
|
requestType: "json",
|
|
263
263
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -321,7 +321,7 @@ class Passages {
|
|
|
321
321
|
method: "PATCH",
|
|
322
322
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
323
323
|
? yield core.Supplier.get(this._options.project)
|
|
324
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
324
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.199", "User-Agent": "@letta-ai/letta-client/0.1.199", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
325
325
|
contentType: "application/json",
|
|
326
326
|
requestType: "json",
|
|
327
327
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|