@letta-ai/letta-client 0.1.11 → 0.1.12
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 +1 -4
- package/api/resources/agents/client/Client.js +16 -21
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
- package/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
- package/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
- package/api/resources/agents/resources/index.d.ts +0 -1
- package/api/resources/agents/resources/index.js +1 -2
- package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
- package/api/resources/agents/resources/messages/client/Client.d.ts +5 -5
- package/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/api/resources/agents/resources/sources/client/Client.js +1 -1
- 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 +7 -7
- 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.d.ts +11 -11
- package/api/resources/providers/client/Client.js +32 -32
- package/api/resources/providers/client/requests/index.d.ts +1 -1
- package/api/resources/runs/client/Client.js +6 -6
- package/api/resources/sources/client/Client.js +8 -8
- 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.d.ts +0 -12
- package/api/resources/tools/client/Client.js +11 -76
- package/api/types/LettaSchemasMessageMessage.d.ts +2 -0
- package/api/types/index.d.ts +0 -2
- package/api/types/index.js +0 -2
- package/dist/api/resources/agents/client/Client.d.ts +1 -4
- package/dist/api/resources/agents/client/Client.js +16 -21
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
- package/dist/api/resources/agents/resources/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/index.js +1 -2
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +5 -5
- package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
- 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 +7 -7
- 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.d.ts +11 -11
- package/dist/api/resources/providers/client/Client.js +32 -32
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
- package/dist/api/resources/runs/client/Client.js +6 -6
- package/dist/api/resources/sources/client/Client.js +8 -8
- 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.d.ts +0 -12
- package/dist/api/resources/tools/client/Client.js +11 -76
- package/dist/api/types/LettaSchemasMessageMessage.d.ts +2 -0
- package/dist/api/types/index.d.ts +0 -2
- package/dist/api/types/index.js +0 -2
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -4
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
- package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
- package/dist/serialization/resources/tools/client/index.d.ts +0 -1
- package/dist/serialization/resources/tools/client/index.js +1 -2
- package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
- package/dist/serialization/types/LettaSchemasMessageMessage.js +1 -0
- package/dist/serialization/types/index.d.ts +0 -2
- package/dist/serialization/types/index.js +0 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +20 -274
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -4
- package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
- package/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
- package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
- package/serialization/resources/tools/client/index.d.ts +0 -1
- package/serialization/resources/tools/client/index.js +1 -2
- package/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
- package/serialization/types/LettaSchemasMessageMessage.js +1 -0
- package/serialization/types/index.d.ts +0 -2
- package/serialization/types/index.js +0 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
- package/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
- package/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
- package/api/resources/agents/resources/recallMemory/client/index.js +0 -2
- package/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
- package/api/resources/agents/resources/recallMemory/index.js +0 -17
- package/api/types/ArchivalMemorySummary.d.ts +0 -7
- package/api/types/ArchivalMemorySummary.js +0 -5
- package/api/types/RecallMemorySummary.d.ts +0 -7
- package/api/types/RecallMemorySummary.js +0 -5
- package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
- package/dist/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
- package/dist/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/recallMemory/client/index.js +0 -2
- package/dist/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
- package/dist/api/resources/agents/resources/recallMemory/index.js +0 -17
- package/dist/api/types/ArchivalMemorySummary.d.ts +0 -7
- package/dist/api/types/ArchivalMemorySummary.js +0 -5
- package/dist/api/types/RecallMemorySummary.d.ts +0 -7
- package/dist/api/types/RecallMemorySummary.js +0 -5
- package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
- package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
- package/dist/serialization/resources/tools/client/getByName.d.ts +0 -9
- package/dist/serialization/resources/tools/client/getByName.js +0 -41
- package/dist/serialization/types/ArchivalMemorySummary.d.ts +0 -12
- package/dist/serialization/types/ArchivalMemorySummary.js +0 -43
- package/dist/serialization/types/RecallMemorySummary.d.ts +0 -12
- package/dist/serialization/types/RecallMemorySummary.js +0 -43
- package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
- package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
- package/serialization/resources/tools/client/getByName.d.ts +0 -9
- package/serialization/resources/tools/client/getByName.js +0 -41
- package/serialization/types/ArchivalMemorySummary.d.ts +0 -12
- package/serialization/types/ArchivalMemorySummary.js +0 -43
- package/serialization/types/RecallMemorySummary.d.ts +0 -12
- package/serialization/types/RecallMemorySummary.js +0 -43
- /package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
- /package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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" }),
|
|
@@ -250,71 +250,6 @@ class Tools {
|
|
|
250
250
|
}
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
/**
|
|
254
|
-
* Get a tool ID by name
|
|
255
|
-
*
|
|
256
|
-
* @param {string} toolName
|
|
257
|
-
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
|
-
*
|
|
259
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
260
|
-
*
|
|
261
|
-
* @example
|
|
262
|
-
* await client.tools.getByName("tool_name")
|
|
263
|
-
*/
|
|
264
|
-
getByName(toolName, requestOptions) {
|
|
265
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
-
var _a, _b, _c;
|
|
267
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
268
|
-
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/name/${encodeURIComponent(toolName)}`),
|
|
269
|
-
method: "GET",
|
|
270
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.11", "User-Agent": "@letta-ai/letta-client/0.1.11", "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),
|
|
271
|
-
contentType: "application/json",
|
|
272
|
-
requestType: "json",
|
|
273
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
274
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
275
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
276
|
-
});
|
|
277
|
-
if (_response.ok) {
|
|
278
|
-
return serializers.tools.getByName.Response.parseOrThrow(_response.body, {
|
|
279
|
-
unrecognizedObjectKeys: "passthrough",
|
|
280
|
-
allowUnrecognizedUnionMembers: true,
|
|
281
|
-
allowUnrecognizedEnumValues: true,
|
|
282
|
-
skipValidation: true,
|
|
283
|
-
breadcrumbsPrefix: ["response"],
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
if (_response.error.reason === "status-code") {
|
|
287
|
-
switch (_response.error.statusCode) {
|
|
288
|
-
case 422:
|
|
289
|
-
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
290
|
-
unrecognizedObjectKeys: "passthrough",
|
|
291
|
-
allowUnrecognizedUnionMembers: true,
|
|
292
|
-
allowUnrecognizedEnumValues: true,
|
|
293
|
-
skipValidation: true,
|
|
294
|
-
breadcrumbsPrefix: ["response"],
|
|
295
|
-
}));
|
|
296
|
-
default:
|
|
297
|
-
throw new errors.LettaError({
|
|
298
|
-
statusCode: _response.error.statusCode,
|
|
299
|
-
body: _response.error.body,
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
switch (_response.error.reason) {
|
|
304
|
-
case "non-json":
|
|
305
|
-
throw new errors.LettaError({
|
|
306
|
-
statusCode: _response.error.statusCode,
|
|
307
|
-
body: _response.error.rawBody,
|
|
308
|
-
});
|
|
309
|
-
case "timeout":
|
|
310
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/name/{tool_name}.");
|
|
311
|
-
case "unknown":
|
|
312
|
-
throw new errors.LettaError({
|
|
313
|
-
message: _response.error.errorMessage,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
253
|
/**
|
|
319
254
|
* Get a list of all tools available to agents belonging to the org of the user
|
|
320
255
|
*
|
|
@@ -340,7 +275,7 @@ class Tools {
|
|
|
340
275
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
341
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/"),
|
|
342
277
|
method: "GET",
|
|
343
|
-
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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
|
|
344
279
|
contentType: "application/json",
|
|
345
280
|
queryParameters: _queryParams,
|
|
346
281
|
requestType: "json",
|
|
@@ -408,7 +343,7 @@ class Tools {
|
|
|
408
343
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
409
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/"),
|
|
410
345
|
method: "POST",
|
|
411
|
-
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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
|
|
412
347
|
contentType: "application/json",
|
|
413
348
|
requestType: "json",
|
|
414
349
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -476,7 +411,7 @@ class Tools {
|
|
|
476
411
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
477
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/"),
|
|
478
413
|
method: "PUT",
|
|
479
|
-
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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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
415
|
contentType: "application/json",
|
|
481
416
|
requestType: "json",
|
|
482
417
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -541,7 +476,7 @@ class Tools {
|
|
|
541
476
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
542
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"),
|
|
543
478
|
method: "POST",
|
|
544
|
-
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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
|
|
545
480
|
contentType: "application/json",
|
|
546
481
|
requestType: "json",
|
|
547
482
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -611,7 +546,7 @@ class Tools {
|
|
|
611
546
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
612
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"),
|
|
613
548
|
method: "POST",
|
|
614
|
-
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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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
550
|
contentType: "application/json",
|
|
616
551
|
requestType: "json",
|
|
617
552
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -676,7 +611,7 @@ class Tools {
|
|
|
676
611
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
677
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"),
|
|
678
613
|
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.
|
|
614
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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
615
|
contentType: "application/json",
|
|
681
616
|
requestType: "json",
|
|
682
617
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -741,7 +676,7 @@ class Tools {
|
|
|
741
676
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
742
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`),
|
|
743
678
|
method: "GET",
|
|
744
|
-
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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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
680
|
contentType: "application/json",
|
|
746
681
|
requestType: "json",
|
|
747
682
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -806,7 +741,7 @@ class Tools {
|
|
|
806
741
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
807
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)}`),
|
|
808
743
|
method: "POST",
|
|
809
|
-
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.12", "User-Agent": "@letta-ai/letta-client/0.1.12", "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),
|
|
810
745
|
contentType: "application/json",
|
|
811
746
|
requestType: "json",
|
|
812
747
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -12,7 +12,6 @@ export * from "./AgentType";
|
|
|
12
12
|
export * from "./AppAuthSchemeAuthMode";
|
|
13
13
|
export * from "./AppAuthScheme";
|
|
14
14
|
export * from "./AppModel";
|
|
15
|
-
export * from "./ArchivalMemorySummary";
|
|
16
15
|
export * from "./AssistantFile";
|
|
17
16
|
export * from "./AssistantMessageInput";
|
|
18
17
|
export * from "./AssistantMessageOutput";
|
|
@@ -68,7 +67,6 @@ export * from "./OrganizationCreate";
|
|
|
68
67
|
export * from "./Passage";
|
|
69
68
|
export * from "./Provider";
|
|
70
69
|
export * from "./ReasoningMessage";
|
|
71
|
-
export * from "./RecallMemorySummary";
|
|
72
70
|
export * from "./ResponseFormat";
|
|
73
71
|
export * from "./Run";
|
|
74
72
|
export * from "./SandboxConfig";
|
package/dist/api/types/index.js
CHANGED
|
@@ -28,7 +28,6 @@ __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("./ArchivalMemorySummary"), exports);
|
|
32
31
|
__exportStar(require("./AssistantFile"), exports);
|
|
33
32
|
__exportStar(require("./AssistantMessageInput"), exports);
|
|
34
33
|
__exportStar(require("./AssistantMessageOutput"), exports);
|
|
@@ -84,7 +83,6 @@ __exportStar(require("./OrganizationCreate"), exports);
|
|
|
84
83
|
__exportStar(require("./Passage"), exports);
|
|
85
84
|
__exportStar(require("./Provider"), exports);
|
|
86
85
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
87
|
-
__exportStar(require("./RecallMemorySummary"), exports);
|
|
88
86
|
__exportStar(require("./ResponseFormat"), exports);
|
|
89
87
|
__exportStar(require("./Run"), exports);
|
|
90
88
|
__exportStar(require("./SandboxConfig"), exports);
|
|
@@ -30,7 +30,7 @@ export declare namespace CreateAgentRequest {
|
|
|
30
30
|
include_multi_agent_tools?: boolean | null;
|
|
31
31
|
description?: string | null;
|
|
32
32
|
metadata_?: Record<string, unknown> | null;
|
|
33
|
-
|
|
33
|
+
model?: string | null;
|
|
34
34
|
embedding?: string | null;
|
|
35
35
|
context_window_limit?: number | null;
|
|
36
36
|
embedding_chunk_size?: number | null;
|
|
@@ -38,6 +38,6 @@ export declare namespace CreateAgentRequest {
|
|
|
38
38
|
template?: boolean | null;
|
|
39
39
|
project?: string | null;
|
|
40
40
|
tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
|
|
41
|
-
|
|
41
|
+
memory_variables?: Record<string, string | null | undefined> | null;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -62,7 +62,7 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
62
62
|
includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
|
|
63
63
|
description: core.serialization.string().optional(),
|
|
64
64
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
65
|
-
|
|
65
|
+
model: core.serialization.string().optional(),
|
|
66
66
|
embedding: core.serialization.string().optional(),
|
|
67
67
|
contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
|
|
68
68
|
embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
|
|
@@ -70,7 +70,5 @@ exports.CreateAgentRequest = core.serialization.object({
|
|
|
70
70
|
template: core.serialization.boolean().optional(),
|
|
71
71
|
project: core.serialization.string().optional(),
|
|
72
72
|
toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
73
|
-
|
|
74
|
-
.record(core.serialization.string(), core.serialization.string().optional())
|
|
75
|
-
.optional(),
|
|
73
|
+
memoryVariables: core.serialization.property("memory_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
76
74
|
});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as getBlocks from "./getBlocks";
|
|
1
|
+
export * as list from "./list";
|
|
@@ -33,6 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.getBlocks = __importStar(require("./getBlocks"));
|
|
36
|
+
exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → 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 { Block } from "../../../../../types/Block";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.list.Response.Raw, Letta.Block[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Block.Raw[];
|
|
11
11
|
}
|
|
@@ -36,8 +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.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list =
|
|
40
|
-
exports.getByName = __importStar(require("./getByName"));
|
|
39
|
+
exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
|
|
41
40
|
exports.list = __importStar(require("./list"));
|
|
42
41
|
exports.addBaseTool = __importStar(require("./addBaseTool"));
|
|
43
42
|
exports.listComposioApps = __importStar(require("./listComposioApps"));
|
|
@@ -53,4 +53,5 @@ exports.LettaSchemasMessageMessage = core.serialization.object({
|
|
|
53
53
|
name: core.serialization.string().optional(),
|
|
54
54
|
toolCalls: core.serialization.property("tool_calls", core.serialization.list(LettaSchemasOpenaiChatCompletionsToolCallOutput_1.LettaSchemasOpenaiChatCompletionsToolCallOutput).optional()),
|
|
55
55
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
|
|
56
|
+
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
56
57
|
});
|
|
@@ -12,7 +12,6 @@ export * from "./AgentType";
|
|
|
12
12
|
export * from "./AppAuthSchemeAuthMode";
|
|
13
13
|
export * from "./AppAuthScheme";
|
|
14
14
|
export * from "./AppModel";
|
|
15
|
-
export * from "./ArchivalMemorySummary";
|
|
16
15
|
export * from "./AssistantFile";
|
|
17
16
|
export * from "./AssistantMessageInput";
|
|
18
17
|
export * from "./AssistantMessageOutput";
|
|
@@ -68,7 +67,6 @@ export * from "./OrganizationCreate";
|
|
|
68
67
|
export * from "./Passage";
|
|
69
68
|
export * from "./Provider";
|
|
70
69
|
export * from "./ReasoningMessage";
|
|
71
|
-
export * from "./RecallMemorySummary";
|
|
72
70
|
export * from "./ResponseFormat";
|
|
73
71
|
export * from "./Run";
|
|
74
72
|
export * from "./SandboxConfig";
|
|
@@ -28,7 +28,6 @@ __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("./ArchivalMemorySummary"), exports);
|
|
32
31
|
__exportStar(require("./AssistantFile"), exports);
|
|
33
32
|
__exportStar(require("./AssistantMessageInput"), exports);
|
|
34
33
|
__exportStar(require("./AssistantMessageOutput"), exports);
|
|
@@ -84,7 +83,6 @@ __exportStar(require("./OrganizationCreate"), exports);
|
|
|
84
83
|
__exportStar(require("./Passage"), exports);
|
|
85
84
|
__exportStar(require("./Provider"), exports);
|
|
86
85
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
87
|
-
__exportStar(require("./RecallMemorySummary"), exports);
|
|
88
86
|
__exportStar(require("./ResponseFormat"), exports);
|
|
89
87
|
__exportStar(require("./Run"), exports);
|
|
90
88
|
__exportStar(require("./SandboxConfig"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.12";
|
package/dist/version.js
CHANGED