@letta-ai/letta-client 0.1.63 → 0.1.64
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 +7 -7
- package/api/resources/agents/client/Client.js +28 -22
- package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
- package/api/resources/agents/client/requests/index.d.ts +1 -1
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.js +7 -7
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentSchema.d.ts +27 -0
- package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
- package/api/types/CoreMemoryBlockSchema.js +5 -0
- package/api/types/MessageSchema.d.ts +16 -0
- package/api/types/MessageSchema.js +5 -0
- package/api/types/ParameterProperties.d.ts +7 -0
- package/api/types/ParameterProperties.js +5 -0
- package/api/types/ParametersSchema.d.ts +9 -0
- package/api/types/ParametersSchema.js +5 -0
- package/api/types/TagSchema.d.ts +6 -0
- package/api/types/TagSchema.js +5 -0
- package/api/types/ToolEnvVarSchema.d.ts +11 -0
- package/api/types/ToolEnvVarSchema.js +5 -0
- package/api/types/ToolJsonSchema.d.ts +11 -0
- package/api/types/ToolJsonSchema.js +5 -0
- package/api/types/ToolRuleSchema.d.ts +7 -0
- package/api/types/ToolRuleSchema.js +5 -0
- package/api/types/ToolSchema.d.ts +18 -0
- package/api/types/ToolSchema.js +5 -0
- package/api/types/index.d.ts +10 -0
- package/api/types/index.js +10 -0
- package/dist/api/resources/agents/client/Client.d.ts +7 -7
- package/dist/api/resources/agents/client/Client.js +28 -22
- package/dist/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
- package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js +5 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.js +7 -7
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentSchema.d.ts +27 -0
- package/dist/api/types/AgentSchema.js +5 -0
- package/dist/api/types/CoreMemoryBlockSchema.d.ts +16 -0
- package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
- package/dist/api/types/MessageSchema.d.ts +16 -0
- package/dist/api/types/MessageSchema.js +5 -0
- package/dist/api/types/ParameterProperties.d.ts +7 -0
- package/dist/api/types/ParameterProperties.js +5 -0
- package/dist/api/types/ParametersSchema.d.ts +9 -0
- package/dist/api/types/ParametersSchema.js +5 -0
- package/dist/api/types/TagSchema.d.ts +6 -0
- package/dist/api/types/TagSchema.js +5 -0
- package/dist/api/types/ToolEnvVarSchema.d.ts +11 -0
- package/dist/api/types/ToolEnvVarSchema.js +5 -0
- package/dist/api/types/ToolJsonSchema.d.ts +11 -0
- package/dist/api/types/ToolJsonSchema.js +5 -0
- package/dist/api/types/ToolRuleSchema.d.ts +7 -0
- package/dist/api/types/ToolRuleSchema.js +5 -0
- package/dist/api/types/ToolSchema.d.ts +18 -0
- package/dist/api/types/ToolSchema.js +5 -0
- package/dist/api/types/index.d.ts +10 -0
- package/dist/api/types/index.js +10 -0
- package/dist/serialization/types/AgentSchema.d.ts +40 -0
- package/dist/serialization/types/AgentSchema.js +71 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/dist/serialization/types/MessageSchema.d.ts +22 -0
- package/dist/serialization/types/MessageSchema.js +53 -0
- package/dist/serialization/types/ParameterProperties.d.ts +13 -0
- package/dist/serialization/types/ParameterProperties.js +44 -0
- package/dist/serialization/types/ParametersSchema.d.ts +15 -0
- package/dist/serialization/types/ParametersSchema.js +46 -0
- package/dist/serialization/types/TagSchema.d.ts +12 -0
- package/dist/serialization/types/TagSchema.js +43 -0
- package/dist/serialization/types/ToolEnvVarSchema.d.ts +17 -0
- package/dist/serialization/types/ToolEnvVarSchema.js +48 -0
- package/dist/serialization/types/ToolJsonSchema.d.ts +17 -0
- package/dist/serialization/types/ToolJsonSchema.js +48 -0
- package/dist/serialization/types/ToolRuleSchema.d.ts +13 -0
- package/dist/serialization/types/ToolRuleSchema.js +44 -0
- package/dist/serialization/types/ToolSchema.d.ts +24 -0
- package/dist/serialization/types/ToolSchema.js +55 -0
- package/dist/serialization/types/index.d.ts +10 -0
- package/dist/serialization/types/index.js +10 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +7 -7
- package/serialization/types/AgentSchema.d.ts +40 -0
- package/serialization/types/AgentSchema.js +71 -0
- package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/serialization/types/MessageSchema.d.ts +22 -0
- package/serialization/types/MessageSchema.js +53 -0
- package/serialization/types/ParameterProperties.d.ts +13 -0
- package/serialization/types/ParameterProperties.js +44 -0
- package/serialization/types/ParametersSchema.d.ts +15 -0
- package/serialization/types/ParametersSchema.js +46 -0
- package/serialization/types/TagSchema.d.ts +12 -0
- package/serialization/types/TagSchema.js +43 -0
- package/serialization/types/ToolEnvVarSchema.d.ts +17 -0
- package/serialization/types/ToolEnvVarSchema.js +48 -0
- package/serialization/types/ToolJsonSchema.d.ts +17 -0
- package/serialization/types/ToolJsonSchema.js +48 -0
- package/serialization/types/ToolRuleSchema.d.ts +13 -0
- package/serialization/types/ToolRuleSchema.js +44 -0
- package/serialization/types/ToolSchema.d.ts +24 -0
- package/serialization/types/ToolSchema.js +55 -0
- package/serialization/types/index.d.ts +10 -0
- package/serialization/types/index.js +10 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/types/AgentSchema.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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
748
748
|
contentType: "application/json",
|
|
749
749
|
requestType: "json",
|
|
750
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -808,7 +808,7 @@ class Tools {
|
|
|
808
808
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
809
809
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
|
|
810
810
|
method: "GET",
|
|
811
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
811
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
812
812
|
contentType: "application/json",
|
|
813
813
|
requestType: "json",
|
|
814
814
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -877,7 +877,7 @@ class Tools {
|
|
|
877
877
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
878
878
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
|
|
879
879
|
method: "PUT",
|
|
880
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
880
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
881
881
|
contentType: "application/json",
|
|
882
882
|
requestType: "json",
|
|
883
883
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -943,7 +943,7 @@ class Tools {
|
|
|
943
943
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
944
944
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
|
|
945
945
|
method: "GET",
|
|
946
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
946
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
947
947
|
contentType: "application/json",
|
|
948
948
|
requestType: "json",
|
|
949
949
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1009,7 +1009,7 @@ class Tools {
|
|
|
1009
1009
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1010
1010
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
|
|
1011
1011
|
method: "POST",
|
|
1012
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1012
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
1013
1013
|
contentType: "application/json",
|
|
1014
1014
|
requestType: "json",
|
|
1015
1015
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1074,7 +1074,7 @@ class Tools {
|
|
|
1074
1074
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1075
1075
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
|
|
1076
1076
|
method: "DELETE",
|
|
1077
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1077
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
1078
1078
|
contentType: "application/json",
|
|
1079
1079
|
requestType: "json",
|
|
1080
1080
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -81,7 +81,7 @@ class Voice {
|
|
|
81
81
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
82
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice/${encodeURIComponent(agentId)}/chat/completions`),
|
|
83
83
|
method: "POST",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface AgentSchema {
|
|
6
|
+
agentType: string;
|
|
7
|
+
coreMemory: Letta.CoreMemoryBlockSchema[];
|
|
8
|
+
createdAt: string;
|
|
9
|
+
description: string;
|
|
10
|
+
embeddingConfig: Letta.EmbeddingConfig;
|
|
11
|
+
groups: unknown[];
|
|
12
|
+
identities: unknown[];
|
|
13
|
+
isDeleted: boolean;
|
|
14
|
+
llmConfig: Letta.LlmConfig;
|
|
15
|
+
messageBufferAutoclear: boolean;
|
|
16
|
+
messages: Letta.MessageSchema[];
|
|
17
|
+
metadata: Record<string, unknown>;
|
|
18
|
+
multiAgentGroup?: unknown;
|
|
19
|
+
name: string;
|
|
20
|
+
system: string;
|
|
21
|
+
tags: Letta.TagSchema[];
|
|
22
|
+
toolExecEnvironmentVariables: Letta.ToolEnvVarSchema[];
|
|
23
|
+
toolRules: Letta.ToolRuleSchema[];
|
|
24
|
+
tools: Letta.ToolSchema[];
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
version: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface CoreMemoryBlockSchema {
|
|
5
|
+
createdAt: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
identities: unknown[];
|
|
8
|
+
isDeleted: boolean;
|
|
9
|
+
isTemplate: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
limit: number;
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
templateName?: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface MessageSchema {
|
|
5
|
+
createdAt: string;
|
|
6
|
+
groupId?: string;
|
|
7
|
+
inContext: boolean;
|
|
8
|
+
model?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
role: string;
|
|
11
|
+
text: string;
|
|
12
|
+
toolCallId?: string;
|
|
13
|
+
toolCalls: unknown[];
|
|
14
|
+
toolReturns: unknown[];
|
|
15
|
+
updatedAt: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ToolJsonSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
parameters: Letta.ParametersSchema;
|
|
9
|
+
type?: string;
|
|
10
|
+
required?: string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ToolSchema {
|
|
6
|
+
argsJsonSchema?: unknown;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
description: string;
|
|
9
|
+
isDeleted: boolean;
|
|
10
|
+
jsonSchema: Letta.ToolJsonSchema;
|
|
11
|
+
name: string;
|
|
12
|
+
returnCharLimit: number;
|
|
13
|
+
sourceCode?: string;
|
|
14
|
+
sourceType: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
toolType: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./ActionModel";
|
|
|
6
6
|
export * from "./ActionParametersModel";
|
|
7
7
|
export * from "./ActionResponseModel";
|
|
8
8
|
export * from "./AgentEnvironmentVariable";
|
|
9
|
+
export * from "./AgentSchema";
|
|
9
10
|
export * from "./AgentStateToolRulesItem";
|
|
10
11
|
export * from "./AgentState";
|
|
11
12
|
export * from "./AgentType";
|
|
@@ -72,6 +73,7 @@ export * from "./CompletionCreateParamsStreaming";
|
|
|
72
73
|
export * from "./ConditionalToolRule";
|
|
73
74
|
export * from "./ContextWindowOverview";
|
|
74
75
|
export * from "./ContinueToolRule";
|
|
76
|
+
export * from "./CoreMemoryBlockSchema";
|
|
75
77
|
export * from "./CreateBlock";
|
|
76
78
|
export * from "./DynamicManager";
|
|
77
79
|
export * from "./E2BSandboxConfig";
|
|
@@ -122,8 +124,11 @@ export * from "./MessageCreateRole";
|
|
|
122
124
|
export * from "./MessageCreateContent";
|
|
123
125
|
export * from "./MessageCreate";
|
|
124
126
|
export * from "./MessageRole";
|
|
127
|
+
export * from "./MessageSchema";
|
|
125
128
|
export * from "./Organization";
|
|
126
129
|
export * from "./OrganizationCreate";
|
|
130
|
+
export * from "./ParameterProperties";
|
|
131
|
+
export * from "./ParametersSchema";
|
|
127
132
|
export * from "./Passage";
|
|
128
133
|
export * from "./PipRequirement";
|
|
129
134
|
export * from "./Provider";
|
|
@@ -149,6 +154,7 @@ export * from "./Step";
|
|
|
149
154
|
export * from "./SupervisorManager";
|
|
150
155
|
export * from "./SystemMessageContent";
|
|
151
156
|
export * from "./SystemMessage";
|
|
157
|
+
export * from "./TagSchema";
|
|
152
158
|
export * from "./TerminalToolRule";
|
|
153
159
|
export * from "./TextContent";
|
|
154
160
|
export * from "./Tool";
|
|
@@ -157,10 +163,14 @@ export * from "./ToolCallDelta";
|
|
|
157
163
|
export * from "./ToolCallMessageToolCall";
|
|
158
164
|
export * from "./ToolCallMessage";
|
|
159
165
|
export * from "./ToolCreate";
|
|
166
|
+
export * from "./ToolEnvVarSchema";
|
|
167
|
+
export * from "./ToolJsonSchema";
|
|
160
168
|
export * from "./ToolReturnStatus";
|
|
161
169
|
export * from "./ToolReturn";
|
|
162
170
|
export * from "./ToolReturnMessageStatus";
|
|
163
171
|
export * from "./ToolReturnMessage";
|
|
172
|
+
export * from "./ToolRuleSchema";
|
|
173
|
+
export * from "./ToolSchema";
|
|
164
174
|
export * from "./ToolType";
|
|
165
175
|
export * from "./UpdateAssistantMessageContent";
|
|
166
176
|
export * from "./UpdateAssistantMessage";
|
package/api/types/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./ActionModel"), exports);
|
|
|
22
22
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
23
23
|
__exportStar(require("./ActionResponseModel"), exports);
|
|
24
24
|
__exportStar(require("./AgentEnvironmentVariable"), exports);
|
|
25
|
+
__exportStar(require("./AgentSchema"), exports);
|
|
25
26
|
__exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
26
27
|
__exportStar(require("./AgentState"), exports);
|
|
27
28
|
__exportStar(require("./AgentType"), exports);
|
|
@@ -88,6 +89,7 @@ __exportStar(require("./CompletionCreateParamsStreaming"), exports);
|
|
|
88
89
|
__exportStar(require("./ConditionalToolRule"), exports);
|
|
89
90
|
__exportStar(require("./ContextWindowOverview"), exports);
|
|
90
91
|
__exportStar(require("./ContinueToolRule"), exports);
|
|
92
|
+
__exportStar(require("./CoreMemoryBlockSchema"), exports);
|
|
91
93
|
__exportStar(require("./CreateBlock"), exports);
|
|
92
94
|
__exportStar(require("./DynamicManager"), exports);
|
|
93
95
|
__exportStar(require("./E2BSandboxConfig"), exports);
|
|
@@ -138,8 +140,11 @@ __exportStar(require("./MessageCreateRole"), exports);
|
|
|
138
140
|
__exportStar(require("./MessageCreateContent"), exports);
|
|
139
141
|
__exportStar(require("./MessageCreate"), exports);
|
|
140
142
|
__exportStar(require("./MessageRole"), exports);
|
|
143
|
+
__exportStar(require("./MessageSchema"), exports);
|
|
141
144
|
__exportStar(require("./Organization"), exports);
|
|
142
145
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
146
|
+
__exportStar(require("./ParameterProperties"), exports);
|
|
147
|
+
__exportStar(require("./ParametersSchema"), exports);
|
|
143
148
|
__exportStar(require("./Passage"), exports);
|
|
144
149
|
__exportStar(require("./PipRequirement"), exports);
|
|
145
150
|
__exportStar(require("./Provider"), exports);
|
|
@@ -165,6 +170,7 @@ __exportStar(require("./Step"), exports);
|
|
|
165
170
|
__exportStar(require("./SupervisorManager"), exports);
|
|
166
171
|
__exportStar(require("./SystemMessageContent"), exports);
|
|
167
172
|
__exportStar(require("./SystemMessage"), exports);
|
|
173
|
+
__exportStar(require("./TagSchema"), exports);
|
|
168
174
|
__exportStar(require("./TerminalToolRule"), exports);
|
|
169
175
|
__exportStar(require("./TextContent"), exports);
|
|
170
176
|
__exportStar(require("./Tool"), exports);
|
|
@@ -173,10 +179,14 @@ __exportStar(require("./ToolCallDelta"), exports);
|
|
|
173
179
|
__exportStar(require("./ToolCallMessageToolCall"), exports);
|
|
174
180
|
__exportStar(require("./ToolCallMessage"), exports);
|
|
175
181
|
__exportStar(require("./ToolCreate"), exports);
|
|
182
|
+
__exportStar(require("./ToolEnvVarSchema"), exports);
|
|
183
|
+
__exportStar(require("./ToolJsonSchema"), exports);
|
|
176
184
|
__exportStar(require("./ToolReturnStatus"), exports);
|
|
177
185
|
__exportStar(require("./ToolReturn"), exports);
|
|
178
186
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
179
187
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
188
|
+
__exportStar(require("./ToolRuleSchema"), exports);
|
|
189
|
+
__exportStar(require("./ToolSchema"), exports);
|
|
180
190
|
__exportStar(require("./ToolType"), exports);
|
|
181
191
|
__exportStar(require("./UpdateAssistantMessageContent"), exports);
|
|
182
192
|
__exportStar(require("./UpdateAssistantMessage"), exports);
|
|
@@ -83,7 +83,7 @@ export declare class Agents {
|
|
|
83
83
|
*/
|
|
84
84
|
create(request?: Letta.CreateAgentRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Export the serialized JSON representation of an agent.
|
|
87
87
|
*
|
|
88
88
|
* @param {string} agentId
|
|
89
89
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,22 +91,22 @@ export declare class Agents {
|
|
|
91
91
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.agents.
|
|
94
|
+
* await client.agents.exportAgentSerialized("agent_id")
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
exportAgentSerialized(agentId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentSchema>;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Import a serialized agent file and recreate the agent in the system.
|
|
99
99
|
*
|
|
100
100
|
* @param {File | fs.ReadStream | Blob} file
|
|
101
|
-
* @param {Letta.
|
|
101
|
+
* @param {Letta.BodyImportAgentSerialized} request
|
|
102
102
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
103
|
*
|
|
104
104
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.agents.
|
|
107
|
+
* await client.agents.importAgentSerialized(fs.createReadStream("/path/to/your/file"), {})
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
importAgentSerialized(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
110
110
|
/**
|
|
111
111
|
* Get the state of the agent.
|
|
112
112
|
*
|