@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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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/dist/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);
|
|
@@ -36,9 +36,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
-
exports.listCoreMemoryBlocks = __importStar(require("./listCoreMemoryBlocks"));
|
|
42
|
-
exports.listArchivalMemory = __importStar(require("./listArchivalMemory"));
|
|
43
|
-
exports.createArchivalMemory = __importStar(require("./createArchivalMemory"));
|
|
44
41
|
__exportStar(require("./requests"), exports);
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentsSearchRequest = exports.
|
|
3
|
+
exports.AgentsSearchRequest = exports.UpdateAgent = exports.CreateAgentRequest = void 0;
|
|
4
4
|
var CreateAgentRequest_1 = require("./CreateAgentRequest");
|
|
5
5
|
Object.defineProperty(exports, "CreateAgentRequest", { enumerable: true, get: function () { return CreateAgentRequest_1.CreateAgentRequest; } });
|
|
6
6
|
var UpdateAgent_1 = require("./UpdateAgent");
|
|
7
7
|
Object.defineProperty(exports, "UpdateAgent", { enumerable: true, get: function () { return UpdateAgent_1.UpdateAgent; } });
|
|
8
|
-
var CreateArchivalMemory_1 = require("./CreateArchivalMemory");
|
|
9
|
-
Object.defineProperty(exports, "CreateArchivalMemory", { enumerable: true, get: function () { return CreateArchivalMemory_1.CreateArchivalMemory; } });
|
|
10
8
|
var AgentsSearchRequest_1 = require("./AgentsSearchRequest");
|
|
11
9
|
Object.defineProperty(exports, "AgentsSearchRequest", { enumerable: true, get: function () { return AgentsSearchRequest_1.AgentsSearchRequest; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as Letta from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
import { Passage } from "../../../../../types/Passage";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.archivalMemory.create.Response.Raw, Letta.Passage[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Passage.Raw[];
|
|
11
|
+
}
|
|
@@ -37,6 +37,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Response = void 0;
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const Passage_1 = require("
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
const Passage_1 = require("../../../../../types/Passage");
|
|
42
42
|
exports.Response = core.serialization.list(Passage_1.Passage);
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.create = exports.list = void 0;
|
|
40
|
+
exports.list = __importStar(require("./list"));
|
|
41
|
+
exports.create = __importStar(require("./create"));
|
|
42
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as Letta from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
import { Passage } from "../../../../../types/Passage";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.archivalMemory.list.Response.Raw, Letta.Passage[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Passage.Raw[];
|
|
11
|
+
}
|
|
@@ -37,6 +37,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Response = void 0;
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const Passage_1 = require("
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
const Passage_1 = require("../../../../../types/Passage");
|
|
42
42
|
exports.Response = core.serialization.list(Passage_1.Passage);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../index";
|
|
5
|
+
import * as Letta from "../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../core";
|
|
7
|
+
export declare const CreateArchivalMemory: core.serialization.Schema<serializers.agents.CreateArchivalMemory.Raw, Letta.agents.CreateArchivalMemory>;
|
|
8
|
+
export declare namespace CreateArchivalMemory {
|
|
9
|
+
interface Raw {
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -37,7 +37,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.CreateArchivalMemory = void 0;
|
|
40
|
-
const core = __importStar(require("
|
|
40
|
+
const core = __importStar(require("../../../../../../../core"));
|
|
41
41
|
exports.CreateArchivalMemory = core.serialization.object({
|
|
42
42
|
text: core.serialization.string(),
|
|
43
43
|
});
|
package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateArchivalMemory } from "./CreateArchivalMemory";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateArchivalMemory = void 0;
|
|
4
|
+
var CreateArchivalMemory_1 = require("./CreateArchivalMemory");
|
|
5
|
+
Object.defineProperty(exports, "CreateArchivalMemory", { enumerable: true, get: function () { return CreateArchivalMemory_1.CreateArchivalMemory; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as listBlocks from "./listBlocks";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.listBlocks = void 0;
|
|
37
|
+
exports.listBlocks = __importStar(require("./listBlocks"));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as Letta from "../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../core";
|
|
7
|
+
import { Block } from "../../../../../types/Block";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.listBlocks.Response.Raw, Letta.Block[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = Block.Raw[];
|
|
11
|
+
}
|
|
@@ -37,6 +37,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Response = void 0;
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const Block_1 = require("
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
const Block_1 = require("../../../../../types/Block");
|
|
42
42
|
exports.Response = core.serialization.list(Block_1.Block);
|