@letta-ai/letta-client 0.1.60 → 0.1.62
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 +3 -1
- package/api/resources/agents/client/Client.js +22 -12
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -5
- 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/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +4 -2
- package/api/resources/agents/resources/messages/client/Client.js +9 -7
- package/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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.js +3 -3
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- 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 +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +14 -14
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AssistantMessage.d.ts +9 -0
- package/api/types/AssistantMessageContent.d.ts +4 -1
- package/api/types/{UpdateReasoningMessageReasoning.d.ts → ComponentsSchemasTextContent.d.ts} +1 -1
- package/api/types/ReasoningMessage.d.ts +2 -2
- package/api/types/SystemMessage.d.ts +3 -2
- package/api/types/SystemMessageContent.d.ts +4 -1
- package/api/types/ToolCallMessage.d.ts +2 -2
- package/api/types/ToolReturnMessage.d.ts +3 -3
- package/api/types/UpdateAssistantMessage.d.ts +2 -1
- package/api/types/UpdateAssistantMessageContent.d.ts +4 -1
- package/api/types/UpdateReasoningMessage.d.ts +2 -3
- package/api/types/UpdateSystemMessage.d.ts +2 -1
- package/api/types/UpdateSystemMessageContent.d.ts +4 -1
- package/api/types/UpdateUserMessage.d.ts +2 -1
- package/api/types/UpdateUserMessageContent.d.ts +4 -1
- package/api/types/UserMessage.d.ts +3 -2
- package/api/types/UserMessageContent.d.ts +4 -1
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- package/dist/api/resources/agents/client/Client.d.ts +3 -1
- package/dist/api/resources/agents/client/Client.js +22 -12
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +9 -5
- 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/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +4 -2
- package/dist/api/resources/agents/resources/messages/client/Client.js +9 -7
- package/dist/api/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- 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.js +3 -3
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- 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 +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +14 -14
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AssistantMessage.d.ts +9 -0
- package/dist/api/types/AssistantMessageContent.d.ts +4 -1
- package/dist/api/types/{UpdateReasoningMessageReasoning.d.ts → ComponentsSchemasTextContent.d.ts} +1 -1
- package/dist/api/types/ReasoningMessage.d.ts +2 -2
- package/dist/api/types/SystemMessage.d.ts +3 -2
- package/dist/api/types/SystemMessageContent.d.ts +4 -1
- package/dist/api/types/ToolCallMessage.d.ts +2 -2
- package/dist/api/types/ToolReturnMessage.d.ts +3 -3
- package/dist/api/types/UpdateAssistantMessage.d.ts +2 -1
- package/dist/api/types/UpdateAssistantMessageContent.d.ts +4 -1
- package/dist/api/types/UpdateReasoningMessage.d.ts +2 -3
- package/dist/api/types/UpdateSystemMessage.d.ts +2 -1
- package/dist/api/types/UpdateSystemMessageContent.d.ts +4 -1
- package/dist/api/types/UpdateUserMessage.d.ts +2 -1
- package/dist/api/types/UpdateUserMessageContent.d.ts +4 -1
- package/dist/api/types/UserMessage.d.ts +3 -2
- package/dist/api/types/UserMessageContent.d.ts +4 -1
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +7 -5
- package/dist/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +12 -8
- package/dist/serialization/types/AssistantMessageContent.d.ts +2 -2
- package/dist/serialization/types/AssistantMessageContent.js +5 -2
- package/dist/serialization/types/ComponentsSchemasTextContent.d.ts +11 -0
- package/dist/serialization/types/ComponentsSchemasTextContent.js +8 -0
- package/dist/serialization/types/SystemMessageContent.d.ts +2 -2
- package/dist/serialization/types/SystemMessageContent.js +5 -2
- package/dist/serialization/types/UpdateAssistantMessage.d.ts +1 -1
- package/dist/serialization/types/UpdateAssistantMessage.js +1 -1
- package/dist/serialization/types/UpdateAssistantMessageContent.d.ts +2 -2
- package/dist/serialization/types/UpdateAssistantMessageContent.js +5 -2
- package/dist/serialization/types/UpdateReasoningMessage.d.ts +2 -3
- package/dist/serialization/types/UpdateReasoningMessage.js +2 -3
- package/dist/serialization/types/UpdateSystemMessage.d.ts +1 -1
- package/dist/serialization/types/UpdateSystemMessage.js +1 -1
- package/dist/serialization/types/UpdateSystemMessageContent.d.ts +2 -2
- package/dist/serialization/types/UpdateSystemMessageContent.js +5 -2
- package/dist/serialization/types/UpdateUserMessage.d.ts +1 -1
- package/dist/serialization/types/UpdateUserMessage.js +1 -1
- package/dist/serialization/types/UpdateUserMessageContent.d.ts +2 -2
- package/dist/serialization/types/UpdateUserMessageContent.js +5 -2
- package/dist/serialization/types/UserMessageContent.d.ts +2 -2
- package/dist/serialization/types/UserMessageContent.js +5 -2
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +9 -3
- package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.d.ts +7 -5
- package/serialization/resources/agents/resources/messages/types/MessagesModifyResponse.js +12 -8
- package/serialization/types/AssistantMessageContent.d.ts +2 -2
- package/serialization/types/AssistantMessageContent.js +5 -2
- package/serialization/types/ComponentsSchemasTextContent.d.ts +11 -0
- package/serialization/types/ComponentsSchemasTextContent.js +8 -0
- package/serialization/types/SystemMessageContent.d.ts +2 -2
- package/serialization/types/SystemMessageContent.js +5 -2
- package/serialization/types/UpdateAssistantMessage.d.ts +1 -1
- package/serialization/types/UpdateAssistantMessage.js +1 -1
- package/serialization/types/UpdateAssistantMessageContent.d.ts +2 -2
- package/serialization/types/UpdateAssistantMessageContent.js +5 -2
- package/serialization/types/UpdateReasoningMessage.d.ts +2 -3
- package/serialization/types/UpdateReasoningMessage.js +2 -3
- package/serialization/types/UpdateSystemMessage.d.ts +1 -1
- package/serialization/types/UpdateSystemMessage.js +1 -1
- package/serialization/types/UpdateSystemMessageContent.d.ts +2 -2
- package/serialization/types/UpdateSystemMessageContent.js +5 -2
- package/serialization/types/UpdateUserMessage.d.ts +1 -1
- package/serialization/types/UpdateUserMessage.js +1 -1
- package/serialization/types/UpdateUserMessageContent.d.ts +2 -2
- package/serialization/types/UpdateUserMessageContent.js +5 -2
- package/serialization/types/UserMessageContent.d.ts +2 -2
- package/serialization/types/UserMessageContent.js +5 -2
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/types/UpdateReasoningMessageReasoning.d.ts +0 -11
- package/dist/serialization/types/UpdateReasoningMessageReasoning.js +0 -42
- package/serialization/types/UpdateReasoningMessageReasoning.d.ts +0 -11
- package/serialization/types/UpdateReasoningMessageReasoning.js +0 -42
- /package/api/types/{UpdateReasoningMessageReasoning.js → ComponentsSchemasTextContent.js} +0 -0
- /package/dist/api/types/{UpdateReasoningMessageReasoning.js → ComponentsSchemasTextContent.js} +0 -0
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -141,7 +141,7 @@ class Tools {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
143
143
|
method: "DELETE",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
requestType: "json",
|
|
147
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -201,7 +201,7 @@ class Tools {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
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/tools/${encodeURIComponent(toolId)}`),
|
|
203
203
|
method: "PATCH",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
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/tools/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
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/tools/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
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/tools/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -479,7 +479,7 @@ class Tools {
|
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
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/tools/add-base-tools"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
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/tools/run"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -614,7 +614,7 @@ class Tools {
|
|
|
614
614
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
615
615
|
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/tools/composio/apps"),
|
|
616
616
|
method: "GET",
|
|
617
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
617
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
618
618
|
contentType: "application/json",
|
|
619
619
|
requestType: "json",
|
|
620
620
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -679,7 +679,7 @@ class Tools {
|
|
|
679
679
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
680
680
|
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/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
681
681
|
method: "GET",
|
|
682
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
682
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
683
683
|
contentType: "application/json",
|
|
684
684
|
requestType: "json",
|
|
685
685
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -744,7 +744,7 @@ class Tools {
|
|
|
744
744
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
745
745
|
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/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
746
746
|
method: "POST",
|
|
747
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
747
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
748
748
|
contentType: "application/json",
|
|
749
749
|
requestType: "json",
|
|
750
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -808,7 +808,7 @@ class Tools {
|
|
|
808
808
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
809
809
|
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/tools/mcp/servers"),
|
|
810
810
|
method: "GET",
|
|
811
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
811
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
812
812
|
contentType: "application/json",
|
|
813
813
|
requestType: "json",
|
|
814
814
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -873,7 +873,7 @@ class Tools {
|
|
|
873
873
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
874
874
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
875
875
|
method: "GET",
|
|
876
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
876
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
877
877
|
contentType: "application/json",
|
|
878
878
|
requestType: "json",
|
|
879
879
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -939,7 +939,7 @@ class Tools {
|
|
|
939
939
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
940
940
|
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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
941
941
|
method: "POST",
|
|
942
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
942
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
943
943
|
contentType: "application/json",
|
|
944
944
|
requestType: "json",
|
|
945
945
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Voice {
|
|
|
81
81
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
82
|
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/voice/${encodeURIComponent(agentId)}/chat/completions`),
|
|
83
83
|
method: "POST",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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
|
body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* A message sent by the LLM in response to user input. Used in the LLM context.
|
|
7
|
+
*
|
|
8
|
+
* Args:
|
|
9
|
+
* id (str): The ID of the message
|
|
10
|
+
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
|
|
12
|
+
*/
|
|
5
13
|
export interface AssistantMessage {
|
|
6
14
|
id: string;
|
|
7
15
|
date: Date;
|
|
8
16
|
messageType: "assistant_message";
|
|
17
|
+
/** The message content sent by the agent (can be a string or an array of content parts) */
|
|
9
18
|
content: Letta.AssistantMessageContent;
|
|
10
19
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The message content sent by the agent (can be a string or an array of content parts)
|
|
7
|
+
*/
|
|
8
|
+
export type AssistantMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Representation of an agent's internal reasoning.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
* reasoning (str): The internal reasoning of the agent
|
|
7
|
+
* Args:
|
|
9
8
|
* id (str): The ID of the message
|
|
10
9
|
* date (datetime): The date the message was created in ISO format
|
|
10
|
+
* reasoning (str): The internal reasoning of the agent
|
|
11
11
|
*/
|
|
12
12
|
export interface ReasoningMessage {
|
|
13
13
|
id: string;
|
|
@@ -5,14 +5,15 @@ import * as Letta from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A message generated by the system. Never streamed back on a response, only used for cursor pagination.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
8
|
+
* Args:
|
|
10
9
|
* id (str): The ID of the message
|
|
11
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the system (can be a string or an array of content parts)
|
|
12
12
|
*/
|
|
13
13
|
export interface SystemMessage {
|
|
14
14
|
id: string;
|
|
15
15
|
date: Date;
|
|
16
16
|
messageType: "system_message";
|
|
17
|
+
/** The message content sent by the system (can be a string or an array of content parts) */
|
|
17
18
|
content: Letta.SystemMessageContent;
|
|
18
19
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The message content sent by the system (can be a string or an array of content parts)
|
|
7
|
+
*/
|
|
8
|
+
export type SystemMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
|
@@ -5,10 +5,10 @@ import * as Letta from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A message representing a request to call a tool (generated by the LLM to trigger tool execution).
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* tool_call (Union[ToolCall, ToolCallDelta]): The tool call
|
|
8
|
+
* Args:
|
|
10
9
|
* id (str): The ID of the message
|
|
11
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* tool_call (Union[ToolCall, ToolCallDelta]): The tool call
|
|
12
12
|
*/
|
|
13
13
|
export interface ToolCallMessage {
|
|
14
14
|
id: string;
|
|
@@ -5,11 +5,11 @@ import * as Letta from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A message representing the return value of a tool call (generated by Letta executing the requested tool).
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* tool_return (str): The return value of the tool
|
|
10
|
-
* status (Literal["success", "error"]): The status of the tool call
|
|
8
|
+
* Args:
|
|
11
9
|
* id (str): The ID of the message
|
|
12
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* tool_return (str): The return value of the tool
|
|
12
|
+
* status (Literal["success", "error"]): The status of the tool call
|
|
13
13
|
* tool_call_id (str): A unique identifier for the tool call that generated this message
|
|
14
14
|
* stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation
|
|
15
15
|
* stderr (Optional[List(str)]): Captured stderr from the tool invocation
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
5
|
export interface UpdateAssistantMessage {
|
|
6
|
+
messageType?: "assistant_message";
|
|
7
|
+
/** The message content sent by the assistant (can be a string or an array of content parts) */
|
|
6
8
|
content: Letta.UpdateAssistantMessageContent;
|
|
7
|
-
messageType: "assistant_message";
|
|
8
9
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The message content sent by the assistant (can be a string or an array of content parts)
|
|
7
|
+
*/
|
|
8
|
+
export type UpdateAssistantMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
4
|
export interface UpdateReasoningMessage {
|
|
6
|
-
reasoning:
|
|
7
|
-
messageType
|
|
5
|
+
reasoning: string;
|
|
6
|
+
messageType?: "reasoning_message";
|
|
8
7
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
5
|
export interface UpdateSystemMessage {
|
|
6
|
+
messageType?: "system_message";
|
|
7
|
+
/** The message content sent by the system (can be a string or an array of content parts) */
|
|
6
8
|
content: Letta.UpdateSystemMessageContent;
|
|
7
|
-
messageType: "system_message";
|
|
8
9
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The message content sent by the system (can be a string or an array of content parts)
|
|
7
|
+
*/
|
|
8
|
+
export type UpdateSystemMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
5
|
export interface UpdateUserMessage {
|
|
6
|
+
messageType?: "user_message";
|
|
7
|
+
/** The message content sent by the user (can be a string or an array of content parts) */
|
|
6
8
|
content: Letta.UpdateUserMessageContent;
|
|
7
|
-
messageType: "user_message";
|
|
8
9
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The message content sent by the user (can be a string or an array of content parts)
|
|
7
|
+
*/
|
|
8
|
+
export type UpdateUserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
|
@@ -5,14 +5,15 @@ import * as Letta from "../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* A message sent by the user. Never streamed back on a response, only used for cursor pagination.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
* content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
8
|
+
* Args:
|
|
10
9
|
* id (str): The ID of the message
|
|
11
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
12
12
|
*/
|
|
13
13
|
export interface UserMessage {
|
|
14
14
|
id: string;
|
|
15
15
|
date: Date;
|
|
16
16
|
messageType: "user_message";
|
|
17
|
+
/** The message content sent by the user (can be a string or an array of content parts) */
|
|
17
18
|
content: Letta.UserMessageContent;
|
|
18
19
|
}
|
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* The message content sent by the user (can be a string or an array of content parts)
|
|
7
|
+
*/
|
|
8
|
+
export type UserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
package/api/types/index.d.ts
CHANGED
|
@@ -164,7 +164,6 @@ export * from "./ToolReturnMessage";
|
|
|
164
164
|
export * from "./ToolType";
|
|
165
165
|
export * from "./UpdateAssistantMessageContent";
|
|
166
166
|
export * from "./UpdateAssistantMessage";
|
|
167
|
-
export * from "./UpdateReasoningMessageReasoning";
|
|
168
167
|
export * from "./UpdateReasoningMessage";
|
|
169
168
|
export * from "./UpdateSystemMessageContent";
|
|
170
169
|
export * from "./UpdateSystemMessage";
|
|
@@ -186,3 +185,4 @@ export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
|
|
|
186
185
|
export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
|
|
187
186
|
export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
|
|
188
187
|
export * from "./LettaMessageUnion";
|
|
188
|
+
export * from "./ComponentsSchemasTextContent";
|
package/api/types/index.js
CHANGED
|
@@ -180,7 +180,6 @@ __exportStar(require("./ToolReturnMessage"), exports);
|
|
|
180
180
|
__exportStar(require("./ToolType"), exports);
|
|
181
181
|
__exportStar(require("./UpdateAssistantMessageContent"), exports);
|
|
182
182
|
__exportStar(require("./UpdateAssistantMessage"), exports);
|
|
183
|
-
__exportStar(require("./UpdateReasoningMessageReasoning"), exports);
|
|
184
183
|
__exportStar(require("./UpdateReasoningMessage"), exports);
|
|
185
184
|
__exportStar(require("./UpdateSystemMessageContent"), exports);
|
|
186
185
|
__exportStar(require("./UpdateSystemMessage"), exports);
|
|
@@ -202,3 +201,4 @@ __exportStar(require("./OpenaiTypesChatChatCompletionMessageToolCallParamFunctio
|
|
|
202
201
|
__exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction"), exports);
|
|
203
202
|
__exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports);
|
|
204
203
|
__exportStar(require("./LettaMessageUnion"), exports);
|
|
204
|
+
__exportStar(require("./ComponentsSchemasTextContent"), exports);
|
|
@@ -57,7 +57,9 @@ export declare class Agents {
|
|
|
57
57
|
get memoryVariables(): MemoryVariables;
|
|
58
58
|
/**
|
|
59
59
|
* List all agents associated with a given user.
|
|
60
|
-
*
|
|
60
|
+
*
|
|
61
|
+
* This endpoint retrieves a list of all agents and their configurations
|
|
62
|
+
* associated with the specified user ID.
|
|
61
63
|
*
|
|
62
64
|
* @param {Letta.AgentsListRequest} request
|
|
63
65
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -117,7 +117,9 @@ class Agents {
|
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* List all agents associated with a given user.
|
|
120
|
-
*
|
|
120
|
+
*
|
|
121
|
+
* This endpoint retrieves a list of all agents and their configurations
|
|
122
|
+
* associated with the specified user ID.
|
|
121
123
|
*
|
|
122
124
|
* @param {Letta.AgentsListRequest} request
|
|
123
125
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -130,7 +132,7 @@ class Agents {
|
|
|
130
132
|
list() {
|
|
131
133
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
132
134
|
var _a, _b, _c;
|
|
133
|
-
const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identityId, identifierKeys, } = request;
|
|
135
|
+
const { name, tags, matchAllTags, before, after, limit, queryText, projectId, templateId, baseTemplateId, identityId, identifierKeys, includeRelationships, } = request;
|
|
134
136
|
const _queryParams = {};
|
|
135
137
|
if (name != null) {
|
|
136
138
|
_queryParams["name"] = name;
|
|
@@ -178,10 +180,18 @@ class Agents {
|
|
|
178
180
|
_queryParams["identifier_keys"] = identifierKeys;
|
|
179
181
|
}
|
|
180
182
|
}
|
|
183
|
+
if (includeRelationships != null) {
|
|
184
|
+
if (Array.isArray(includeRelationships)) {
|
|
185
|
+
_queryParams["include_relationships"] = includeRelationships.map((item) => item);
|
|
186
|
+
}
|
|
187
|
+
else {
|
|
188
|
+
_queryParams["include_relationships"] = includeRelationships;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
181
191
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
182
192
|
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/"),
|
|
183
193
|
method: "GET",
|
|
184
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
194
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
185
195
|
contentType: "application/json",
|
|
186
196
|
queryParameters: _queryParams,
|
|
187
197
|
requestType: "json",
|
|
@@ -248,7 +258,7 @@ class Agents {
|
|
|
248
258
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
249
259
|
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/"),
|
|
250
260
|
method: "POST",
|
|
251
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
261
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
252
262
|
contentType: "application/json",
|
|
253
263
|
requestType: "json",
|
|
254
264
|
body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -314,7 +324,7 @@ class Agents {
|
|
|
314
324
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
315
325
|
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)}/download`),
|
|
316
326
|
method: "GET",
|
|
317
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
327
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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
328
|
contentType: "application/json",
|
|
319
329
|
requestType: "json",
|
|
320
330
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -387,7 +397,7 @@ class Agents {
|
|
|
387
397
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
388
398
|
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/upload"),
|
|
389
399
|
method: "POST",
|
|
390
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
400
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
391
401
|
queryParameters: _queryParams,
|
|
392
402
|
requestType: "file",
|
|
393
403
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -454,7 +464,7 @@ class Agents {
|
|
|
454
464
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
455
465
|
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)}`),
|
|
456
466
|
method: "GET",
|
|
457
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
467
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
458
468
|
contentType: "application/json",
|
|
459
469
|
requestType: "json",
|
|
460
470
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -519,7 +529,7 @@ class Agents {
|
|
|
519
529
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
520
530
|
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)}`),
|
|
521
531
|
method: "DELETE",
|
|
522
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
532
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
523
533
|
contentType: "application/json",
|
|
524
534
|
requestType: "json",
|
|
525
535
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -579,7 +589,7 @@ class Agents {
|
|
|
579
589
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
580
590
|
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)}`),
|
|
581
591
|
method: "PATCH",
|
|
582
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
592
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
583
593
|
contentType: "application/json",
|
|
584
594
|
requestType: "json",
|
|
585
595
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -649,7 +659,7 @@ class Agents {
|
|
|
649
659
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
650
660
|
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)}/archival-memory/${encodeURIComponent(memoryId)}`),
|
|
651
661
|
method: "PATCH",
|
|
652
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
662
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
653
663
|
contentType: "application/json",
|
|
654
664
|
requestType: "json",
|
|
655
665
|
body: serializers.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -721,7 +731,7 @@ class Agents {
|
|
|
721
731
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
722
732
|
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)}/reset-messages`),
|
|
723
733
|
method: "PATCH",
|
|
724
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
734
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
725
735
|
contentType: "application/json",
|
|
726
736
|
queryParameters: _queryParams,
|
|
727
737
|
requestType: "json",
|
|
@@ -787,7 +797,7 @@ class Agents {
|
|
|
787
797
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
788
798
|
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/search"),
|
|
789
799
|
method: "POST",
|
|
790
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
800
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.62", "User-Agent": "@letta-ai/letta-client/0.1.62", "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),
|
|
791
801
|
contentType: "application/json",
|
|
792
802
|
requestType: "json",
|
|
793
803
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -15,7 +15,7 @@ export interface AgentsListRequest {
|
|
|
15
15
|
*/
|
|
16
16
|
tags?: string | string[];
|
|
17
17
|
/**
|
|
18
|
-
* If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed
|
|
18
|
+
* If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed-in tags.
|
|
19
19
|
*/
|
|
20
20
|
matchAllTags?: boolean;
|
|
21
21
|
/**
|
|
@@ -35,23 +35,27 @@ export interface AgentsListRequest {
|
|
|
35
35
|
*/
|
|
36
36
|
queryText?: string;
|
|
37
37
|
/**
|
|
38
|
-
* Search agents by project
|
|
38
|
+
* Search agents by project ID
|
|
39
39
|
*/
|
|
40
40
|
projectId?: string;
|
|
41
41
|
/**
|
|
42
|
-
* Search agents by template
|
|
42
|
+
* Search agents by template ID
|
|
43
43
|
*/
|
|
44
44
|
templateId?: string;
|
|
45
45
|
/**
|
|
46
|
-
* Search agents by base template
|
|
46
|
+
* Search agents by base template ID
|
|
47
47
|
*/
|
|
48
48
|
baseTemplateId?: string;
|
|
49
49
|
/**
|
|
50
|
-
* Search agents by
|
|
50
|
+
* Search agents by identity ID
|
|
51
51
|
*/
|
|
52
52
|
identityId?: string;
|
|
53
53
|
/**
|
|
54
54
|
* Search agents by identifier keys
|
|
55
55
|
*/
|
|
56
56
|
identifierKeys?: string | string[];
|
|
57
|
+
/**
|
|
58
|
+
* Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
|
|
59
|
+
*/
|
|
60
|
+
includeRelationships?: string | string[];
|
|
57
61
|
}
|