@letta-ai/letta-client 0.1.38 → 0.1.40
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 -3
- package/api/resources/agents/client/Client.js +25 -17
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
- package/api/resources/agents/resources/blocks/client/Client.d.ts +97 -0
- package/api/resources/agents/resources/blocks/client/Client.js +400 -0
- package/api/resources/agents/resources/blocks/client/index.d.ts +1 -0
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +0 -65
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -332
- package/api/resources/agents/resources/index.d.ts +3 -2
- package/api/resources/agents/resources/index.js +4 -3
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/{archivalMemory → passages}/client/Client.d.ts +14 -14
- package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/client/Client.js +15 -15
- package/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → passages/client/requests/PassagesListRequest.d.ts} +1 -1
- package/api/resources/agents/resources/passages/client/requests/index.d.ts +2 -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.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +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/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +11 -11
- package/dist/api/resources/agents/client/Client.d.ts +6 -3
- package/dist/api/resources/agents/client/Client.js +25 -17
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +97 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.js +400 -0
- package/dist/api/resources/agents/resources/blocks/client/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/blocks/client/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 +0 -65
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -332
- package/dist/api/resources/agents/resources/index.d.ts +3 -2
- package/dist/api/resources/agents/resources/index.js +4 -3
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/Client.d.ts +14 -14
- package/{api/resources/agents/resources/archivalMemory → dist/api/resources/agents/resources/passages}/client/Client.js +15 -15
- package/dist/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → passages/client/requests/PassagesListRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/passages/client/requests/index.js +2 -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.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +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/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/serialization/resources/agents/resources/blocks/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/{coreMemory → blocks}/client/index.js +2 -2
- package/dist/serialization/resources/agents/resources/{coreMemory/client/listBlocks.d.ts → blocks/client/list.d.ts} +1 -1
- package/dist/serialization/resources/agents/resources/index.d.ts +3 -3
- package/dist/serialization/resources/agents/resources/index.js +4 -4
- package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts +1 -1
- package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +28 -26
- package/serialization/resources/agents/resources/blocks/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/{coreMemory → blocks}/client/index.js +2 -2
- package/serialization/resources/agents/resources/{coreMemory/client/listBlocks.d.ts → blocks/client/list.d.ts} +1 -1
- package/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
- package/serialization/resources/agents/resources/blocks/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +3 -3
- package/serialization/resources/agents/resources/index.js +4 -4
- package/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts +1 -1
- package/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts +1 -1
- package/serialization/resources/agents/resources/passages/index.d.ts +1 -0
- package/serialization/resources/agents/resources/passages/index.js +17 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
- package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
- /package/api/resources/agents/resources/{archivalMemory/client/requests → blocks/client}/index.js +0 -0
- /package/api/resources/agents/resources/{archivalMemory → blocks}/index.d.ts +0 -0
- /package/api/resources/agents/resources/{archivalMemory → blocks}/index.js +0 -0
- /package/api/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
- /package/api/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
- /package/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
- /package/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
- /package/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.js → passages/client/requests/PassagesListRequest.js} +0 -0
- /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/client/requests/index.js +0 -0
- /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/index.d.ts +0 -0
- /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/index.js +0 -0
- /package/dist/{serialization/resources/agents/resources/archivalMemory → api/resources/agents/resources/blocks}/index.d.ts +0 -0
- /package/dist/{serialization/resources/agents/resources/archivalMemory → api/resources/agents/resources/blocks}/index.js +0 -0
- /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
- /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
- /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
- /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
- /package/dist/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.js → passages/client/requests/PassagesListRequest.js} +0 -0
- /package/dist/{serialization/resources/agents/resources/coreMemory → api/resources/agents/resources/passages}/index.d.ts +0 -0
- /package/dist/{serialization/resources/agents/resources/coreMemory → api/resources/agents/resources/passages}/index.js +0 -0
- /package/dist/serialization/resources/agents/resources/{coreMemory/client/listBlocks.js → blocks/client/list.js} +0 -0
- /package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents/resources/blocks}/index.d.ts +0 -0
- /package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents/resources/blocks}/index.js +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.js +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.js +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.d.ts +0 -0
- /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.js +0 -0
- /package/{serialization/resources/agents/resources/coreMemory → dist/serialization/resources/agents/resources/passages}/index.d.ts +0 -0
- /package/{serialization/resources/agents/resources/coreMemory → dist/serialization/resources/agents/resources/passages}/index.js +0 -0
- /package/serialization/resources/agents/resources/{coreMemory/client/listBlocks.js → blocks/client/list.js} +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.js +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.js +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.d.ts +0 -0
- /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.js +0 -0
|
@@ -100,7 +100,7 @@ class Steps {
|
|
|
100
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
101
|
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/steps"),
|
|
102
102
|
method: "GET",
|
|
103
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
103
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "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),
|
|
104
104
|
contentType: "application/json",
|
|
105
105
|
queryParameters: _queryParams,
|
|
106
106
|
requestType: "json",
|
|
@@ -166,7 +166,7 @@ class Steps {
|
|
|
166
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
167
167
|
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/steps/${encodeURIComponent(stepId)}`),
|
|
168
168
|
method: "GET",
|
|
169
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
169
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "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),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Tag {
|
|
|
87
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
88
|
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/tags/"),
|
|
89
89
|
method: "GET",
|
|
90
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -75,7 +75,7 @@ class Templates {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
78
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "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),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -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.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "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.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "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.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -479,7 +479,7 @@ class Tools {
|
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -614,7 +614,7 @@ class Tools {
|
|
|
614
614
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
615
615
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
|
|
616
616
|
method: "GET",
|
|
617
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
617
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
618
618
|
contentType: "application/json",
|
|
619
619
|
requestType: "json",
|
|
620
620
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -679,7 +679,7 @@ class Tools {
|
|
|
679
679
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
680
680
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
681
681
|
method: "GET",
|
|
682
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
682
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
683
683
|
contentType: "application/json",
|
|
684
684
|
requestType: "json",
|
|
685
685
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -744,7 +744,7 @@ class Tools {
|
|
|
744
744
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
745
745
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
746
746
|
method: "POST",
|
|
747
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
747
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.40", "User-Agent": "@letta-ai/letta-client/0.1.40", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
748
748
|
contentType: "application/json",
|
|
749
749
|
requestType: "json",
|
|
750
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as list from "./list";
|
|
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { Block } from "../../../../../types/Block";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.blocks.list.Response.Raw, Letta.Block[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Block.Raw[];
|
|
11
11
|
}
|
|
@@ -6,8 +6,8 @@ export * as memoryVariables from "./memoryVariables";
|
|
|
6
6
|
export * from "./memoryVariables/types";
|
|
7
7
|
export * as tools from "./tools";
|
|
8
8
|
export * as sources from "./sources";
|
|
9
|
-
export * as
|
|
10
|
-
export * as
|
|
11
|
-
export * from "./
|
|
9
|
+
export * as blocks from "./blocks";
|
|
10
|
+
export * as passages from "./passages";
|
|
11
|
+
export * from "./passages/client/requests";
|
|
12
12
|
export * from "./messages/client/requests";
|
|
13
13
|
export * from "./templates/client/requests";
|
|
@@ -36,7 +36,7 @@ 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.passages = exports.blocks = exports.sources = exports.tools = exports.memoryVariables = exports.templates = exports.messages = void 0;
|
|
40
40
|
exports.messages = __importStar(require("./messages"));
|
|
41
41
|
__exportStar(require("./messages/types"), exports);
|
|
42
42
|
exports.templates = __importStar(require("./templates"));
|
|
@@ -45,8 +45,8 @@ exports.memoryVariables = __importStar(require("./memoryVariables"));
|
|
|
45
45
|
__exportStar(require("./memoryVariables/types"), exports);
|
|
46
46
|
exports.tools = __importStar(require("./tools"));
|
|
47
47
|
exports.sources = __importStar(require("./sources"));
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
__exportStar(require("./
|
|
48
|
+
exports.blocks = __importStar(require("./blocks"));
|
|
49
|
+
exports.passages = __importStar(require("./passages"));
|
|
50
|
+
__exportStar(require("./passages/client/requests"), exports);
|
|
51
51
|
__exportStar(require("./messages/client/requests"), exports);
|
|
52
52
|
__exportStar(require("./templates/client/requests"), exports);
|
package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts
RENAMED
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { Passage } from "../../../../../types/Passage";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.passages.create.Response.Raw, Letta.Passage[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Passage.Raw[];
|
|
11
11
|
}
|
package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts
RENAMED
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { Passage } from "../../../../../types/Passage";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.passages.list.Response.Raw, Letta.Passage[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Passage.Raw[];
|
|
11
11
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.40";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4034,7 +4034,9 @@ await client.agents.coreMemory.retrieve("agent_id");
|
|
|
4034
4034
|
</dl>
|
|
4035
4035
|
</details>
|
|
4036
4036
|
|
|
4037
|
-
|
|
4037
|
+
## Agents Blocks
|
|
4038
|
+
|
|
4039
|
+
<details><summary><code>client.agents.blocks.<a href="/src/api/resources/agents/resources/blocks/client/Client.ts">retrieve</a>(agentId, blockLabel) -> Letta.Block</code></summary>
|
|
4038
4040
|
<dl>
|
|
4039
4041
|
<dd>
|
|
4040
4042
|
|
|
@@ -4062,7 +4064,7 @@ Retrieve a memory block from an agent.
|
|
|
4062
4064
|
<dd>
|
|
4063
4065
|
|
|
4064
4066
|
```typescript
|
|
4065
|
-
await client.agents.
|
|
4067
|
+
await client.agents.blocks.retrieve("agent_id", "block_label");
|
|
4066
4068
|
```
|
|
4067
4069
|
|
|
4068
4070
|
</dd>
|
|
@@ -4094,7 +4096,7 @@ await client.agents.coreMemory.retrieveBlock("agent_id", "block_label");
|
|
|
4094
4096
|
<dl>
|
|
4095
4097
|
<dd>
|
|
4096
4098
|
|
|
4097
|
-
**requestOptions:** `
|
|
4099
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
4098
4100
|
|
|
4099
4101
|
</dd>
|
|
4100
4102
|
</dl>
|
|
@@ -4105,7 +4107,7 @@ await client.agents.coreMemory.retrieveBlock("agent_id", "block_label");
|
|
|
4105
4107
|
</dl>
|
|
4106
4108
|
</details>
|
|
4107
4109
|
|
|
4108
|
-
<details><summary><code>client.agents.
|
|
4110
|
+
<details><summary><code>client.agents.blocks.<a href="/src/api/resources/agents/resources/blocks/client/Client.ts">modify</a>(agentId, blockLabel, { ...params }) -> Letta.Block</code></summary>
|
|
4109
4111
|
<dl>
|
|
4110
4112
|
<dd>
|
|
4111
4113
|
|
|
@@ -4133,7 +4135,7 @@ Updates a memory block of an agent.
|
|
|
4133
4135
|
<dd>
|
|
4134
4136
|
|
|
4135
4137
|
```typescript
|
|
4136
|
-
await client.agents.
|
|
4138
|
+
await client.agents.blocks.modify("agent_id", "block_label", {});
|
|
4137
4139
|
```
|
|
4138
4140
|
|
|
4139
4141
|
</dd>
|
|
@@ -4173,7 +4175,7 @@ await client.agents.coreMemory.modifyBlock("agent_id", "block_label", {});
|
|
|
4173
4175
|
<dl>
|
|
4174
4176
|
<dd>
|
|
4175
4177
|
|
|
4176
|
-
**requestOptions:** `
|
|
4178
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
4177
4179
|
|
|
4178
4180
|
</dd>
|
|
4179
4181
|
</dl>
|
|
@@ -4184,7 +4186,7 @@ await client.agents.coreMemory.modifyBlock("agent_id", "block_label", {});
|
|
|
4184
4186
|
</dl>
|
|
4185
4187
|
</details>
|
|
4186
4188
|
|
|
4187
|
-
<details><summary><code>client.agents.
|
|
4189
|
+
<details><summary><code>client.agents.blocks.<a href="/src/api/resources/agents/resources/blocks/client/Client.ts">list</a>(agentId) -> Letta.Block[]</code></summary>
|
|
4188
4190
|
<dl>
|
|
4189
4191
|
<dd>
|
|
4190
4192
|
|
|
@@ -4212,7 +4214,7 @@ Retrieve the memory blocks of a specific agent.
|
|
|
4212
4214
|
<dd>
|
|
4213
4215
|
|
|
4214
4216
|
```typescript
|
|
4215
|
-
await client.agents.
|
|
4217
|
+
await client.agents.blocks.list("agent_id");
|
|
4216
4218
|
```
|
|
4217
4219
|
|
|
4218
4220
|
</dd>
|
|
@@ -4236,7 +4238,7 @@ await client.agents.coreMemory.listBlocks("agent_id");
|
|
|
4236
4238
|
<dl>
|
|
4237
4239
|
<dd>
|
|
4238
4240
|
|
|
4239
|
-
**requestOptions:** `
|
|
4241
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
4240
4242
|
|
|
4241
4243
|
</dd>
|
|
4242
4244
|
</dl>
|
|
@@ -4247,7 +4249,7 @@ await client.agents.coreMemory.listBlocks("agent_id");
|
|
|
4247
4249
|
</dl>
|
|
4248
4250
|
</details>
|
|
4249
4251
|
|
|
4250
|
-
<details><summary><code>client.agents.
|
|
4252
|
+
<details><summary><code>client.agents.blocks.<a href="/src/api/resources/agents/resources/blocks/client/Client.ts">attach</a>(agentId, blockId) -> Letta.AgentState</code></summary>
|
|
4251
4253
|
<dl>
|
|
4252
4254
|
<dd>
|
|
4253
4255
|
|
|
@@ -4275,7 +4277,7 @@ Attach a block to an agent.
|
|
|
4275
4277
|
<dd>
|
|
4276
4278
|
|
|
4277
4279
|
```typescript
|
|
4278
|
-
await client.agents.
|
|
4280
|
+
await client.agents.blocks.attach("agent_id", "block_id");
|
|
4279
4281
|
```
|
|
4280
4282
|
|
|
4281
4283
|
</dd>
|
|
@@ -4307,7 +4309,7 @@ await client.agents.coreMemory.attachBlock("agent_id", "block_id");
|
|
|
4307
4309
|
<dl>
|
|
4308
4310
|
<dd>
|
|
4309
4311
|
|
|
4310
|
-
**requestOptions:** `
|
|
4312
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
4311
4313
|
|
|
4312
4314
|
</dd>
|
|
4313
4315
|
</dl>
|
|
@@ -4318,7 +4320,7 @@ await client.agents.coreMemory.attachBlock("agent_id", "block_id");
|
|
|
4318
4320
|
</dl>
|
|
4319
4321
|
</details>
|
|
4320
4322
|
|
|
4321
|
-
<details><summary><code>client.agents.
|
|
4323
|
+
<details><summary><code>client.agents.blocks.<a href="/src/api/resources/agents/resources/blocks/client/Client.ts">detach</a>(agentId, blockId) -> Letta.AgentState</code></summary>
|
|
4322
4324
|
<dl>
|
|
4323
4325
|
<dd>
|
|
4324
4326
|
|
|
@@ -4346,7 +4348,7 @@ Detach a block from an agent.
|
|
|
4346
4348
|
<dd>
|
|
4347
4349
|
|
|
4348
4350
|
```typescript
|
|
4349
|
-
await client.agents.
|
|
4351
|
+
await client.agents.blocks.detach("agent_id", "block_id");
|
|
4350
4352
|
```
|
|
4351
4353
|
|
|
4352
4354
|
</dd>
|
|
@@ -4378,7 +4380,7 @@ await client.agents.coreMemory.detachBlock("agent_id", "block_id");
|
|
|
4378
4380
|
<dl>
|
|
4379
4381
|
<dd>
|
|
4380
4382
|
|
|
4381
|
-
**requestOptions:** `
|
|
4383
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
4382
4384
|
|
|
4383
4385
|
</dd>
|
|
4384
4386
|
</dl>
|
|
@@ -4389,9 +4391,9 @@ await client.agents.coreMemory.detachBlock("agent_id", "block_id");
|
|
|
4389
4391
|
</dl>
|
|
4390
4392
|
</details>
|
|
4391
4393
|
|
|
4392
|
-
## Agents
|
|
4394
|
+
## Agents Passages
|
|
4393
4395
|
|
|
4394
|
-
<details><summary><code>client.agents.
|
|
4396
|
+
<details><summary><code>client.agents.passages.<a href="/src/api/resources/agents/resources/passages/client/Client.ts">list</a>(agentId, { ...params }) -> Letta.Passage[]</code></summary>
|
|
4395
4397
|
<dl>
|
|
4396
4398
|
<dd>
|
|
4397
4399
|
|
|
@@ -4419,7 +4421,7 @@ Retrieve the memories in an agent's archival memory store (paginated query).
|
|
|
4419
4421
|
<dd>
|
|
4420
4422
|
|
|
4421
4423
|
```typescript
|
|
4422
|
-
await client.agents.
|
|
4424
|
+
await client.agents.passages.list("agent_id");
|
|
4423
4425
|
```
|
|
4424
4426
|
|
|
4425
4427
|
</dd>
|
|
@@ -4443,7 +4445,7 @@ await client.agents.archivalMemory.list("agent_id");
|
|
|
4443
4445
|
<dl>
|
|
4444
4446
|
<dd>
|
|
4445
4447
|
|
|
4446
|
-
**request:** `Letta.agents.
|
|
4448
|
+
**request:** `Letta.agents.PassagesListRequest`
|
|
4447
4449
|
|
|
4448
4450
|
</dd>
|
|
4449
4451
|
</dl>
|
|
@@ -4451,7 +4453,7 @@ await client.agents.archivalMemory.list("agent_id");
|
|
|
4451
4453
|
<dl>
|
|
4452
4454
|
<dd>
|
|
4453
4455
|
|
|
4454
|
-
**requestOptions:** `
|
|
4456
|
+
**requestOptions:** `Passages.RequestOptions`
|
|
4455
4457
|
|
|
4456
4458
|
</dd>
|
|
4457
4459
|
</dl>
|
|
@@ -4462,7 +4464,7 @@ await client.agents.archivalMemory.list("agent_id");
|
|
|
4462
4464
|
</dl>
|
|
4463
4465
|
</details>
|
|
4464
4466
|
|
|
4465
|
-
<details><summary><code>client.agents.
|
|
4467
|
+
<details><summary><code>client.agents.passages.<a href="/src/api/resources/agents/resources/passages/client/Client.ts">create</a>(agentId, { ...params }) -> Letta.Passage[]</code></summary>
|
|
4466
4468
|
<dl>
|
|
4467
4469
|
<dd>
|
|
4468
4470
|
|
|
@@ -4490,7 +4492,7 @@ Insert a memory into an agent's archival memory store.
|
|
|
4490
4492
|
<dd>
|
|
4491
4493
|
|
|
4492
4494
|
```typescript
|
|
4493
|
-
await client.agents.
|
|
4495
|
+
await client.agents.passages.create("agent_id", {
|
|
4494
4496
|
text: "text",
|
|
4495
4497
|
});
|
|
4496
4498
|
```
|
|
@@ -4524,7 +4526,7 @@ await client.agents.archivalMemory.create("agent_id", {
|
|
|
4524
4526
|
<dl>
|
|
4525
4527
|
<dd>
|
|
4526
4528
|
|
|
4527
|
-
**requestOptions:** `
|
|
4529
|
+
**requestOptions:** `Passages.RequestOptions`
|
|
4528
4530
|
|
|
4529
4531
|
</dd>
|
|
4530
4532
|
</dl>
|
|
@@ -4535,7 +4537,7 @@ await client.agents.archivalMemory.create("agent_id", {
|
|
|
4535
4537
|
</dl>
|
|
4536
4538
|
</details>
|
|
4537
4539
|
|
|
4538
|
-
<details><summary><code>client.agents.
|
|
4540
|
+
<details><summary><code>client.agents.passages.<a href="/src/api/resources/agents/resources/passages/client/Client.ts">delete</a>(agentId, memoryId) -> unknown</code></summary>
|
|
4539
4541
|
<dl>
|
|
4540
4542
|
<dd>
|
|
4541
4543
|
|
|
@@ -4563,7 +4565,7 @@ Delete a memory from an agent's archival memory store.
|
|
|
4563
4565
|
<dd>
|
|
4564
4566
|
|
|
4565
4567
|
```typescript
|
|
4566
|
-
await client.agents.
|
|
4568
|
+
await client.agents.passages.delete("agent_id", "memory_id");
|
|
4567
4569
|
```
|
|
4568
4570
|
|
|
4569
4571
|
</dd>
|
|
@@ -4595,7 +4597,7 @@ await client.agents.archivalMemory.delete("agent_id", "memory_id");
|
|
|
4595
4597
|
<dl>
|
|
4596
4598
|
<dd>
|
|
4597
4599
|
|
|
4598
|
-
**requestOptions:** `
|
|
4600
|
+
**requestOptions:** `Passages.RequestOptions`
|
|
4599
4601
|
|
|
4600
4602
|
</dd>
|
|
4601
4603
|
</dl>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as list from "./list";
|
|
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { Block } from "../../../../../types/Block";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.blocks.list.Response.Raw, Letta.Block[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Block.Raw[];
|
|
11
11
|
}
|
|
@@ -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);
|
|
@@ -6,8 +6,8 @@ export * as memoryVariables from "./memoryVariables";
|
|
|
6
6
|
export * from "./memoryVariables/types";
|
|
7
7
|
export * as tools from "./tools";
|
|
8
8
|
export * as sources from "./sources";
|
|
9
|
-
export * as
|
|
10
|
-
export * as
|
|
11
|
-
export * from "./
|
|
9
|
+
export * as blocks from "./blocks";
|
|
10
|
+
export * as passages from "./passages";
|
|
11
|
+
export * from "./passages/client/requests";
|
|
12
12
|
export * from "./messages/client/requests";
|
|
13
13
|
export * from "./templates/client/requests";
|
|
@@ -36,7 +36,7 @@ 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.passages = exports.blocks = exports.sources = exports.tools = exports.memoryVariables = exports.templates = exports.messages = void 0;
|
|
40
40
|
exports.messages = __importStar(require("./messages"));
|
|
41
41
|
__exportStar(require("./messages/types"), exports);
|
|
42
42
|
exports.templates = __importStar(require("./templates"));
|
|
@@ -45,8 +45,8 @@ exports.memoryVariables = __importStar(require("./memoryVariables"));
|
|
|
45
45
|
__exportStar(require("./memoryVariables/types"), exports);
|
|
46
46
|
exports.tools = __importStar(require("./tools"));
|
|
47
47
|
exports.sources = __importStar(require("./sources"));
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
__exportStar(require("./
|
|
48
|
+
exports.blocks = __importStar(require("./blocks"));
|
|
49
|
+
exports.passages = __importStar(require("./passages"));
|
|
50
|
+
__exportStar(require("./passages/client/requests"), exports);
|
|
51
51
|
__exportStar(require("./messages/client/requests"), exports);
|
|
52
52
|
__exportStar(require("./templates/client/requests"), exports);
|
package/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts
RENAMED
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { Passage } from "../../../../../types/Passage";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.passages.create.Response.Raw, Letta.Passage[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Passage.Raw[];
|
|
11
11
|
}
|
package/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts
RENAMED
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../../core";
|
|
7
7
|
import { Passage } from "../../../../../types/Passage";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.passages.list.Response.Raw, Letta.Passage[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Passage.Raw[];
|
|
11
11
|
}
|
|
@@ -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);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.40";
|