@letta-ai/letta-client 0.1.14 → 0.1.15
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 +6 -125
- package/api/resources/agents/client/Client.js +22 -626
- package/api/resources/agents/client/requests/index.d.ts +0 -2
- package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +21 -4
- package/api/resources/agents/resources/archivalMemory/client/Client.js +104 -28
- package/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
- package/api/resources/agents/resources/archivalMemory/client/index.js +15 -0
- package/api/resources/agents/{client/requests/ListArchivalMemoryRequest.d.ts → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts} +1 -1
- package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +2 -0
- package/api/resources/agents/resources/archivalMemory/client/requests/index.js +2 -0
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +42 -15
- package/api/resources/agents/resources/coreMemory/client/Client.js +195 -64
- 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 +3 -3
- package/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/messages/client/Client.js +7 -7
- package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -1
- package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/api/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +8 -0
- 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/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.d.ts +13 -0
- package/api/resources/blocks/client/Client.js +71 -5
- package/api/resources/health/client/Client.js +1 -1
- 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 +6 -6
- 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/tag/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +11 -11
- package/api/types/AssistantMessage.d.ts +2 -1
- package/api/types/AssistantMessageContent.d.ts +5 -0
- package/api/types/LlmConfig.d.ts +3 -0
- package/api/types/Message.d.ts +2 -2
- package/api/types/MessageCreate.d.ts +2 -2
- package/api/types/MessageCreateContent.d.ts +8 -0
- package/api/types/MessageCreateContent.js +5 -0
- package/api/types/SystemMessage.d.ts +3 -2
- package/api/types/SystemMessageContent.d.ts +5 -0
- package/api/types/SystemMessageContent.js +5 -0
- package/api/types/TextContent.d.ts +8 -0
- package/api/types/TextContent.js +5 -0
- package/api/types/UserMessage.d.ts +3 -2
- package/api/types/UserMessageContent.d.ts +5 -0
- package/api/types/UserMessageContent.js +5 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/api/resources/agents/client/Client.d.ts +6 -125
- package/dist/api/resources/agents/client/Client.js +22 -626
- package/dist/api/resources/agents/client/requests/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +21 -4
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +104 -28
- package/dist/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/archivalMemory/client/index.js +15 -0
- package/dist/api/resources/agents/{client/requests/ListArchivalMemoryRequest.d.ts → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js +5 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +5 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +42 -15
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +195 -64
- 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 +3 -3
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/messages/client/Client.js +7 -7
- package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/dist/api/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +8 -0
- package/dist/api/resources/agents/resources/messages/types/MessageUpdateContent.js +5 -0
- 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/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.d.ts +13 -0
- package/dist/api/resources/blocks/client/Client.js +71 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- 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 +6 -6
- 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/tag/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/types/AssistantMessage.d.ts +2 -1
- package/dist/api/types/AssistantMessageContent.d.ts +5 -0
- package/dist/api/types/AssistantMessageContent.js +5 -0
- package/dist/api/types/LlmConfig.d.ts +3 -0
- package/dist/api/types/Message.d.ts +2 -2
- package/dist/api/types/MessageCreate.d.ts +2 -2
- package/dist/api/types/MessageCreateContent.d.ts +8 -0
- package/dist/api/types/MessageCreateContent.js +5 -0
- package/dist/api/types/SystemMessage.d.ts +3 -2
- package/dist/api/types/SystemMessageContent.d.ts +5 -0
- package/dist/api/types/SystemMessageContent.js +5 -0
- package/dist/api/types/TextContent.d.ts +8 -0
- package/dist/api/types/TextContent.js +5 -0
- package/dist/api/types/UserMessage.d.ts +3 -2
- package/dist/api/types/UserMessageContent.d.ts +5 -0
- package/dist/api/types/UserMessageContent.js +5 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/resources/agents/client/index.d.ts +0 -3
- package/dist/serialization/resources/agents/client/index.js +1 -4
- package/dist/serialization/resources/agents/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/agents/client/requests/index.js +1 -3
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/dist/serialization/resources/agents/{client/createArchivalMemory.js → resources/archivalMemory/client/create.js} +2 -2
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +42 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/{client/listArchivalMemory.js → resources/archivalMemory/client/list.js} +2 -2
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/{serialization/resources/agents → dist/serialization/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +1 -1
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +37 -0
- package/dist/serialization/resources/agents/resources/coreMemory/client/listBlocks.d.ts +11 -0
- package/{serialization/resources/agents/client/listCoreMemoryBlocks.js → dist/serialization/resources/agents/resources/coreMemory/client/listBlocks.js} +2 -2
- package/dist/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/coreMemory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/index.js +4 -1
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -1
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -1
- package/dist/serialization/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessageUpdateContent.js +42 -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/blocks/client/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/client/index.js +2 -1
- package/dist/serialization/resources/{agents/client/createArchivalMemory.d.ts → blocks/client/listAgentsForBlock.d.ts} +3 -3
- package/dist/serialization/resources/blocks/client/listAgentsForBlock.js +42 -0
- package/dist/serialization/types/AssistantMessage.d.ts +2 -1
- package/dist/serialization/types/AssistantMessage.js +2 -1
- package/dist/serialization/types/AssistantMessageContent.d.ts +11 -0
- package/dist/serialization/types/AssistantMessageContent.js +42 -0
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/serialization/types/Message.d.ts +2 -1
- package/dist/serialization/types/Message.js +2 -1
- package/dist/serialization/types/MessageCreate.d.ts +2 -1
- package/dist/serialization/types/MessageCreate.js +2 -1
- package/dist/serialization/types/MessageCreateContent.d.ts +11 -0
- package/dist/serialization/types/MessageCreateContent.js +42 -0
- package/dist/serialization/types/SystemMessage.d.ts +2 -1
- package/dist/serialization/types/SystemMessage.js +2 -1
- package/dist/serialization/types/SystemMessageContent.d.ts +11 -0
- package/dist/serialization/types/SystemMessageContent.js +42 -0
- package/dist/serialization/types/TextContent.d.ts +13 -0
- package/dist/serialization/types/TextContent.js +44 -0
- package/dist/serialization/types/UserMessage.d.ts +2 -1
- package/dist/serialization/types/UserMessage.js +2 -1
- package/dist/serialization/types/UserMessageContent.d.ts +11 -0
- package/dist/serialization/types/UserMessageContent.js +42 -0
- package/dist/serialization/types/index.d.ts +5 -0
- package/dist/serialization/types/index.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +487 -895
- package/serialization/resources/agents/client/index.d.ts +0 -3
- package/serialization/resources/agents/client/index.js +1 -4
- package/serialization/resources/agents/client/requests/index.d.ts +0 -1
- package/serialization/resources/agents/client/requests/index.js +1 -3
- package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/serialization/resources/agents/{client/listArchivalMemory.js → resources/archivalMemory/client/create.js} +2 -2
- package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/serialization/resources/agents/resources/archivalMemory/client/index.js +42 -0
- package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/serialization/resources/agents/{client/createArchivalMemory.js → resources/archivalMemory/client/list.js} +2 -2
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/{dist/serialization/resources/agents → serialization/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +1 -1
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/coreMemory/client/index.js +37 -0
- package/serialization/resources/agents/resources/coreMemory/client/listBlocks.d.ts +11 -0
- package/{dist/serialization/resources/agents/client/listCoreMemoryBlocks.js → serialization/resources/agents/resources/coreMemory/client/listBlocks.js} +2 -2
- package/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/coreMemory/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +3 -0
- package/serialization/resources/agents/resources/index.js +4 -1
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -1
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -1
- package/serialization/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +11 -0
- package/serialization/resources/agents/resources/messages/types/MessageUpdateContent.js +42 -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/blocks/client/index.d.ts +1 -0
- package/serialization/resources/blocks/client/index.js +2 -1
- package/{dist/serialization/resources/agents/client/listArchivalMemory.d.ts → serialization/resources/blocks/client/listAgentsForBlock.d.ts} +3 -3
- package/serialization/resources/blocks/client/listAgentsForBlock.js +42 -0
- package/serialization/types/AssistantMessage.d.ts +2 -1
- package/serialization/types/AssistantMessage.js +2 -1
- package/serialization/types/AssistantMessageContent.d.ts +11 -0
- package/serialization/types/AssistantMessageContent.js +42 -0
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/Message.d.ts +2 -1
- package/serialization/types/Message.js +2 -1
- package/serialization/types/MessageCreate.d.ts +2 -1
- package/serialization/types/MessageCreate.js +2 -1
- package/serialization/types/MessageCreateContent.d.ts +11 -0
- package/serialization/types/MessageCreateContent.js +42 -0
- package/serialization/types/SystemMessage.d.ts +2 -1
- package/serialization/types/SystemMessage.js +2 -1
- package/serialization/types/SystemMessageContent.d.ts +11 -0
- package/serialization/types/SystemMessageContent.js +42 -0
- package/serialization/types/TextContent.d.ts +13 -0
- package/serialization/types/TextContent.js +44 -0
- package/serialization/types/UserMessage.d.ts +2 -1
- package/serialization/types/UserMessage.js +2 -1
- package/serialization/types/UserMessageContent.d.ts +11 -0
- package/serialization/types/UserMessageContent.js +42 -0
- package/serialization/types/index.d.ts +5 -0
- package/serialization/types/index.js +5 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +0 -11
- package/dist/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +0 -12
- package/serialization/resources/agents/client/createArchivalMemory.d.ts +0 -11
- package/serialization/resources/agents/client/listArchivalMemory.d.ts +0 -11
- package/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +0 -11
- package/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +0 -12
- /package/api/resources/agents/{client/requests/CreateArchivalMemory.js → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js} +0 -0
- /package/api/resources/agents/{client → resources/archivalMemory/client}/requests/CreateArchivalMemory.d.ts +0 -0
- /package/{dist/api/resources/agents → api/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +0 -0
- /package/api/resources/agents/{client/requests/ListArchivalMemoryRequest.js → resources/messages/types/MessageUpdateContent.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/ListArchivalMemoryRequest.js → api/types/AssistantMessageContent.js} +0 -0
- /package/dist/api/resources/agents/{client → resources/archivalMemory/client}/requests/CreateArchivalMemory.d.ts +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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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" }),
|
|
@@ -275,7 +275,7 @@ class Tools {
|
|
|
275
275
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
276
276
|
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/"),
|
|
277
277
|
method: "GET",
|
|
278
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
278
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
|
|
279
279
|
contentType: "application/json",
|
|
280
280
|
queryParameters: _queryParams,
|
|
281
281
|
requestType: "json",
|
|
@@ -343,7 +343,7 @@ class Tools {
|
|
|
343
343
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
344
344
|
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/"),
|
|
345
345
|
method: "POST",
|
|
346
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
346
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
|
|
347
347
|
contentType: "application/json",
|
|
348
348
|
requestType: "json",
|
|
349
349
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -411,7 +411,7 @@ class Tools {
|
|
|
411
411
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
412
412
|
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/"),
|
|
413
413
|
method: "PUT",
|
|
414
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
414
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
|
|
415
415
|
contentType: "application/json",
|
|
416
416
|
requestType: "json",
|
|
417
417
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -476,7 +476,7 @@ class Tools {
|
|
|
476
476
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
477
477
|
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"),
|
|
478
478
|
method: "POST",
|
|
479
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
479
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
|
|
480
480
|
contentType: "application/json",
|
|
481
481
|
requestType: "json",
|
|
482
482
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -546,7 +546,7 @@ class Tools {
|
|
|
546
546
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
547
547
|
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"),
|
|
548
548
|
method: "POST",
|
|
549
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
549
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
|
|
550
550
|
contentType: "application/json",
|
|
551
551
|
requestType: "json",
|
|
552
552
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -611,7 +611,7 @@ class Tools {
|
|
|
611
611
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
612
612
|
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"),
|
|
613
613
|
method: "GET",
|
|
614
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
614
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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
|
requestType: "json",
|
|
617
617
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -676,7 +676,7 @@ class Tools {
|
|
|
676
676
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
677
677
|
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`),
|
|
678
678
|
method: "GET",
|
|
679
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
679
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
|
|
680
680
|
contentType: "application/json",
|
|
681
681
|
requestType: "json",
|
|
682
682
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -741,7 +741,7 @@ class Tools {
|
|
|
741
741
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
742
742
|
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)}`),
|
|
743
743
|
method: "POST",
|
|
744
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
744
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
|
|
745
745
|
contentType: "application/json",
|
|
746
746
|
requestType: "json",
|
|
747
747
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
export interface AssistantMessage {
|
|
5
6
|
id: string;
|
|
6
7
|
date: Date;
|
|
7
8
|
messageType: "assistant_message";
|
|
8
|
-
|
|
9
|
+
content: Letta.AssistantMessageContent;
|
|
9
10
|
}
|
package/api/types/LlmConfig.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import * as Letta from "../index";
|
|
|
12
12
|
* model_wrapper (str): The wrapper for the model. This is used to wrap additional text around the input/output of the model. This is useful for text-to-text completions, such as the Completions API in OpenAI.
|
|
13
13
|
* context_window (int): The context window size for the model.
|
|
14
14
|
* put_inner_thoughts_in_kwargs (bool): Puts `inner_thoughts` as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.
|
|
15
|
+
* temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.
|
|
15
16
|
*/
|
|
16
17
|
export interface LlmConfig {
|
|
17
18
|
/** LLM model name. */
|
|
@@ -28,4 +29,6 @@ export interface LlmConfig {
|
|
|
28
29
|
putInnerThoughtsInKwargs?: boolean;
|
|
29
30
|
/** The handle for this config, in the format provider/model-name. */
|
|
30
31
|
handle?: string;
|
|
32
|
+
/** The temperature to use when generating text with the model. A higher temperature will result in more random text. */
|
|
33
|
+
temperature?: number;
|
|
31
34
|
}
|
package/api/types/Message.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ export interface Message {
|
|
|
30
30
|
id?: string;
|
|
31
31
|
/** The role of the participant. */
|
|
32
32
|
role: Letta.MessageRole;
|
|
33
|
-
/** The
|
|
34
|
-
|
|
33
|
+
/** The content of the message. */
|
|
34
|
+
content?: Letta.TextContent[];
|
|
35
35
|
/** The unique identifier of the agent. */
|
|
36
36
|
agentId?: string;
|
|
37
37
|
/** The model used to make the function call. */
|
|
@@ -8,8 +8,8 @@ import * as Letta from "../index";
|
|
|
8
8
|
export interface MessageCreate {
|
|
9
9
|
/** The role of the participant. */
|
|
10
10
|
role: Letta.MessageCreateRole;
|
|
11
|
-
/** The
|
|
12
|
-
|
|
11
|
+
/** The content of the message. */
|
|
12
|
+
content: Letta.MessageCreateContent;
|
|
13
13
|
/** The name of the participant. */
|
|
14
14
|
name?: string;
|
|
15
15
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
/**
|
|
5
6
|
* A message generated by the system. Never streamed back on a response, only used for cursor pagination.
|
|
6
7
|
*
|
|
7
8
|
* Attributes:
|
|
8
|
-
*
|
|
9
|
+
* content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
9
10
|
* id (str): The ID of the message
|
|
10
11
|
* date (datetime): The date the message was created in ISO format
|
|
11
12
|
*/
|
|
@@ -13,5 +14,5 @@ export interface SystemMessage {
|
|
|
13
14
|
id: string;
|
|
14
15
|
date: Date;
|
|
15
16
|
messageType: "system_message";
|
|
16
|
-
|
|
17
|
+
content: Letta.SystemMessageContent;
|
|
17
18
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
/**
|
|
5
6
|
* A message sent by the user. Never streamed back on a response, only used for cursor pagination.
|
|
6
7
|
*
|
|
7
8
|
* Attributes:
|
|
8
|
-
*
|
|
9
|
+
* content (Union[str, List[MessageContentUnion]]): The message content sent by the user (can be a string or an array of content parts)
|
|
9
10
|
* id (str): The ID of the message
|
|
10
11
|
* date (datetime): The date the message was created in ISO format
|
|
11
12
|
*/
|
|
@@ -13,5 +14,5 @@ export interface UserMessage {
|
|
|
13
14
|
id: string;
|
|
14
15
|
date: Date;
|
|
15
16
|
messageType: "user_message";
|
|
16
|
-
|
|
17
|
+
content: Letta.UserMessageContent;
|
|
17
18
|
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from "./AgentType";
|
|
|
12
12
|
export * from "./AppAuthSchemeAuthMode";
|
|
13
13
|
export * from "./AppAuthScheme";
|
|
14
14
|
export * from "./AppModel";
|
|
15
|
+
export * from "./AssistantMessageContent";
|
|
15
16
|
export * from "./AssistantMessage";
|
|
16
17
|
export * from "./AuthRequest";
|
|
17
18
|
export * from "./AuthResponse";
|
|
@@ -46,6 +47,7 @@ export * from "./LocalSandboxConfig";
|
|
|
46
47
|
export * from "./Memory";
|
|
47
48
|
export * from "./Message";
|
|
48
49
|
export * from "./MessageCreateRole";
|
|
50
|
+
export * from "./MessageCreateContent";
|
|
49
51
|
export * from "./MessageCreate";
|
|
50
52
|
export * from "./MessageRole";
|
|
51
53
|
export * from "./Organization";
|
|
@@ -64,8 +66,10 @@ export * from "./SandboxEnvironmentVariableCreate";
|
|
|
64
66
|
export * from "./SandboxEnvironmentVariableUpdate";
|
|
65
67
|
export * from "./SandboxType";
|
|
66
68
|
export * from "./Source";
|
|
69
|
+
export * from "./SystemMessageContent";
|
|
67
70
|
export * from "./SystemMessage";
|
|
68
71
|
export * from "./TerminalToolRule";
|
|
72
|
+
export * from "./TextContent";
|
|
69
73
|
export * from "./Tool";
|
|
70
74
|
export * from "./ToolCall";
|
|
71
75
|
export * from "./ToolCallDelta";
|
|
@@ -79,6 +83,7 @@ export * from "./ToolType";
|
|
|
79
83
|
export * from "./UsageStatistics";
|
|
80
84
|
export * from "./User";
|
|
81
85
|
export * from "./UserCreate";
|
|
86
|
+
export * from "./UserMessageContent";
|
|
82
87
|
export * from "./UserMessage";
|
|
83
88
|
export * from "./UserUpdate";
|
|
84
89
|
export * from "./ValidationErrorLocItem";
|
package/api/types/index.js
CHANGED
|
@@ -28,6 +28,7 @@ __exportStar(require("./AgentType"), exports);
|
|
|
28
28
|
__exportStar(require("./AppAuthSchemeAuthMode"), exports);
|
|
29
29
|
__exportStar(require("./AppAuthScheme"), exports);
|
|
30
30
|
__exportStar(require("./AppModel"), exports);
|
|
31
|
+
__exportStar(require("./AssistantMessageContent"), exports);
|
|
31
32
|
__exportStar(require("./AssistantMessage"), exports);
|
|
32
33
|
__exportStar(require("./AuthRequest"), exports);
|
|
33
34
|
__exportStar(require("./AuthResponse"), exports);
|
|
@@ -62,6 +63,7 @@ __exportStar(require("./LocalSandboxConfig"), exports);
|
|
|
62
63
|
__exportStar(require("./Memory"), exports);
|
|
63
64
|
__exportStar(require("./Message"), exports);
|
|
64
65
|
__exportStar(require("./MessageCreateRole"), exports);
|
|
66
|
+
__exportStar(require("./MessageCreateContent"), exports);
|
|
65
67
|
__exportStar(require("./MessageCreate"), exports);
|
|
66
68
|
__exportStar(require("./MessageRole"), exports);
|
|
67
69
|
__exportStar(require("./Organization"), exports);
|
|
@@ -80,8 +82,10 @@ __exportStar(require("./SandboxEnvironmentVariableCreate"), exports);
|
|
|
80
82
|
__exportStar(require("./SandboxEnvironmentVariableUpdate"), exports);
|
|
81
83
|
__exportStar(require("./SandboxType"), exports);
|
|
82
84
|
__exportStar(require("./Source"), exports);
|
|
85
|
+
__exportStar(require("./SystemMessageContent"), exports);
|
|
83
86
|
__exportStar(require("./SystemMessage"), exports);
|
|
84
87
|
__exportStar(require("./TerminalToolRule"), exports);
|
|
88
|
+
__exportStar(require("./TextContent"), exports);
|
|
85
89
|
__exportStar(require("./Tool"), exports);
|
|
86
90
|
__exportStar(require("./ToolCall"), exports);
|
|
87
91
|
__exportStar(require("./ToolCallDelta"), exports);
|
|
@@ -95,6 +99,7 @@ __exportStar(require("./ToolType"), exports);
|
|
|
95
99
|
__exportStar(require("./UsageStatistics"), exports);
|
|
96
100
|
__exportStar(require("./User"), exports);
|
|
97
101
|
__exportStar(require("./UserCreate"), exports);
|
|
102
|
+
__exportStar(require("./UserMessageContent"), exports);
|
|
98
103
|
__exportStar(require("./UserMessage"), exports);
|
|
99
104
|
__exportStar(require("./UserUpdate"), exports);
|
|
100
105
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
@@ -7,11 +7,11 @@ import * as Letta from "../../../index";
|
|
|
7
7
|
import { Context } from "../resources/context/client/Client";
|
|
8
8
|
import { Tools } from "../resources/tools/client/Client";
|
|
9
9
|
import { Sources } from "../resources/sources/client/Client";
|
|
10
|
+
import { CoreMemory } from "../resources/coreMemory/client/Client";
|
|
11
|
+
import { ArchivalMemory } from "../resources/archivalMemory/client/Client";
|
|
10
12
|
import { Messages } from "../resources/messages/client/Client";
|
|
11
13
|
import { Templates } from "../resources/templates/client/Client";
|
|
12
14
|
import { MemoryVariables } from "../resources/memoryVariables/client/Client";
|
|
13
|
-
import { CoreMemory } from "../resources/coreMemory/client/Client";
|
|
14
|
-
import { ArchivalMemory } from "../resources/archivalMemory/client/Client";
|
|
15
15
|
export declare namespace Agents {
|
|
16
16
|
interface Options {
|
|
17
17
|
environment?: core.Supplier<environments.LettaEnvironment | string>;
|
|
@@ -36,20 +36,20 @@ export declare class Agents {
|
|
|
36
36
|
protected _context: Context | undefined;
|
|
37
37
|
protected _tools: Tools | undefined;
|
|
38
38
|
protected _sources: Sources | undefined;
|
|
39
|
+
protected _coreMemory: CoreMemory | undefined;
|
|
40
|
+
protected _archivalMemory: ArchivalMemory | undefined;
|
|
39
41
|
protected _messages: Messages | undefined;
|
|
40
42
|
protected _templates: Templates | undefined;
|
|
41
43
|
protected _memoryVariables: MemoryVariables | undefined;
|
|
42
|
-
protected _coreMemory: CoreMemory | undefined;
|
|
43
|
-
protected _archivalMemory: ArchivalMemory | undefined;
|
|
44
44
|
constructor(_options?: Agents.Options);
|
|
45
45
|
get context(): Context;
|
|
46
46
|
get tools(): Tools;
|
|
47
47
|
get sources(): Sources;
|
|
48
|
+
get coreMemory(): CoreMemory;
|
|
49
|
+
get archivalMemory(): ArchivalMemory;
|
|
48
50
|
get messages(): Messages;
|
|
49
51
|
get templates(): Templates;
|
|
50
52
|
get memoryVariables(): MemoryVariables;
|
|
51
|
-
get coreMemory(): CoreMemory;
|
|
52
|
-
get archivalMemory(): ArchivalMemory;
|
|
53
53
|
/**
|
|
54
54
|
* List all agents associated with a given user.
|
|
55
55
|
* This endpoint retrieves a list of all agents and their configurations associated with the specified user ID.
|
|
@@ -112,125 +112,6 @@ export declare class Agents {
|
|
|
112
112
|
* await client.agents.modify("agent_id")
|
|
113
113
|
*/
|
|
114
114
|
modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
115
|
-
/**
|
|
116
|
-
* Retrieve the memory state of a specific agent.
|
|
117
|
-
* This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.
|
|
118
|
-
*
|
|
119
|
-
* @param {string} agentId
|
|
120
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
-
*
|
|
122
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* await client.agents.retrieveAgentMemory("agent_id")
|
|
126
|
-
*/
|
|
127
|
-
retrieveAgentMemory(agentId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Memory>;
|
|
128
|
-
/**
|
|
129
|
-
* Retrieve a memory block from an agent.
|
|
130
|
-
*
|
|
131
|
-
* @param {string} agentId
|
|
132
|
-
* @param {string} blockLabel
|
|
133
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
-
*
|
|
135
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
136
|
-
*
|
|
137
|
-
* @example
|
|
138
|
-
* await client.agents.retrieveCoreMemoryBlock("agent_id", "block_label")
|
|
139
|
-
*/
|
|
140
|
-
retrieveCoreMemoryBlock(agentId: string, blockLabel: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Block>;
|
|
141
|
-
/**
|
|
142
|
-
* Updates a memory block of an agent.
|
|
143
|
-
*
|
|
144
|
-
* @param {string} agentId
|
|
145
|
-
* @param {string} blockLabel
|
|
146
|
-
* @param {Letta.BlockUpdate} request
|
|
147
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
-
*
|
|
149
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
* await client.agents.modifyCoreMemoryBlock("agent_id", "block_label", {})
|
|
153
|
-
*/
|
|
154
|
-
modifyCoreMemoryBlock(agentId: string, blockLabel: string, request: Letta.BlockUpdate, requestOptions?: Agents.RequestOptions): Promise<Letta.Block>;
|
|
155
|
-
/**
|
|
156
|
-
* Retrieve the memory blocks of a specific agent.
|
|
157
|
-
*
|
|
158
|
-
* @param {string} agentId
|
|
159
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
160
|
-
*
|
|
161
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* await client.agents.listCoreMemoryBlocks("agent_id")
|
|
165
|
-
*/
|
|
166
|
-
listCoreMemoryBlocks(agentId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.Block[]>;
|
|
167
|
-
/**
|
|
168
|
-
* Attach a block to an agent.
|
|
169
|
-
*
|
|
170
|
-
* @param {string} agentId
|
|
171
|
-
* @param {string} blockId
|
|
172
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
173
|
-
*
|
|
174
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* await client.agents.attachCoreMemoryBlock("agent_id", "block_id")
|
|
178
|
-
*/
|
|
179
|
-
attachCoreMemoryBlock(agentId: string, blockId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
180
|
-
/**
|
|
181
|
-
* Detach a block from an agent.
|
|
182
|
-
*
|
|
183
|
-
* @param {string} agentId
|
|
184
|
-
* @param {string} blockId
|
|
185
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
-
*
|
|
187
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* await client.agents.detachCoreMemoryBlock("agent_id", "block_id")
|
|
191
|
-
*/
|
|
192
|
-
detachCoreMemoryBlock(agentId: string, blockId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
193
|
-
/**
|
|
194
|
-
* Retrieve the memories in an agent's archival memory store (paginated query).
|
|
195
|
-
*
|
|
196
|
-
* @param {string} agentId
|
|
197
|
-
* @param {Letta.ListArchivalMemoryRequest} request
|
|
198
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
199
|
-
*
|
|
200
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* await client.agents.listArchivalMemory("agent_id")
|
|
204
|
-
*/
|
|
205
|
-
listArchivalMemory(agentId: string, request?: Letta.ListArchivalMemoryRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.Passage[]>;
|
|
206
|
-
/**
|
|
207
|
-
* Insert a memory into an agent's archival memory store.
|
|
208
|
-
*
|
|
209
|
-
* @param {string} agentId
|
|
210
|
-
* @param {Letta.CreateArchivalMemory} request
|
|
211
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
212
|
-
*
|
|
213
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* await client.agents.createArchivalMemory("agent_id", {
|
|
217
|
-
* text: "text"
|
|
218
|
-
* })
|
|
219
|
-
*/
|
|
220
|
-
createArchivalMemory(agentId: string, request: Letta.CreateArchivalMemory, requestOptions?: Agents.RequestOptions): Promise<Letta.Passage[]>;
|
|
221
|
-
/**
|
|
222
|
-
* Delete a memory from an agent's archival memory store.
|
|
223
|
-
*
|
|
224
|
-
* @param {string} agentId
|
|
225
|
-
* @param {string} memoryId
|
|
226
|
-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
227
|
-
*
|
|
228
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
229
|
-
*
|
|
230
|
-
* @example
|
|
231
|
-
* await client.agents.deleteArchivalMemory("agent_id", "memory_id")
|
|
232
|
-
*/
|
|
233
|
-
deleteArchivalMemory(agentId: string, memoryId: string, requestOptions?: Agents.RequestOptions): Promise<unknown>;
|
|
234
115
|
/**
|
|
235
116
|
* Resets the messages for an agent
|
|
236
117
|
*
|