@letta-ai/letta-client 0.1.129 → 0.1.131
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.js +10 -10
- 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/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +11 -9
- package/api/resources/agents/resources/messages/client/Client.js +23 -15
- package/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +25 -0
- package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +1 -2
- package/api/resources/index.js +2 -3
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +7 -7
- 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/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +17 -17
- package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
- package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
- package/api/resources/voice/client/Client.d.ts +1 -5
- package/api/resources/voice/client/Client.js +3 -7
- package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
- package/api/resources/voice/index.d.ts +0 -1
- package/api/resources/voice/index.js +0 -1
- package/api/types/BatchJob.d.ts +2 -0
- package/api/types/Job.d.ts +2 -0
- package/api/types/LettaResponse.d.ts +1 -0
- package/api/types/LettaStopReason.d.ts +13 -0
- package/api/types/McpServerType.d.ts +2 -1
- package/api/types/McpServerType.js +1 -0
- package/api/types/McpTool.d.ts +2 -0
- package/api/types/Run.d.ts +2 -0
- package/api/types/SseServerConfig.d.ts +16 -0
- package/api/types/StopReasonType.d.ts +12 -0
- package/api/types/StopReasonType.js +14 -0
- package/api/types/Tool.d.ts +2 -0
- package/api/types/ToolAnnotations.d.ts +22 -0
- package/api/types/ToolAnnotations.js +5 -0
- package/api/types/ToolCreate.d.ts +3 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/agents/client/Client.js +10 -10
- 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/groups/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.d.ts +11 -9
- package/dist/api/resources/agents/resources/messages/client/Client.js +23 -15
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.d.ts +25 -0
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesCreateAsyncRequest.js +5 -0
- package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +1 -2
- package/dist/api/resources/index.js +2 -3
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +7 -7
- 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/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +17 -17
- package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
- package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
- package/dist/api/resources/voice/client/Client.d.ts +1 -5
- package/dist/api/resources/voice/client/Client.js +3 -7
- package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +2 -7
- package/dist/api/resources/voice/index.d.ts +0 -1
- package/dist/api/resources/voice/index.js +0 -1
- package/dist/api/types/BatchJob.d.ts +2 -0
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/LettaResponse.d.ts +1 -0
- package/dist/api/types/LettaStopReason.d.ts +13 -0
- package/dist/api/types/LettaStopReason.js +5 -0
- package/dist/api/types/McpServerType.d.ts +2 -1
- package/dist/api/types/McpServerType.js +1 -0
- package/dist/api/types/McpTool.d.ts +2 -0
- package/dist/api/types/Run.d.ts +2 -0
- package/dist/api/types/SseServerConfig.d.ts +16 -0
- package/dist/api/types/StopReasonType.d.ts +12 -0
- package/dist/api/types/StopReasonType.js +14 -0
- package/dist/api/types/Tool.d.ts +2 -0
- package/dist/api/types/ToolAnnotations.d.ts +22 -0
- package/dist/api/types/ToolAnnotations.js +5 -0
- package/dist/api/types/ToolCreate.d.ts +3 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
- package/dist/serialization/resources/index.d.ts +1 -2
- package/dist/serialization/resources/index.js +2 -3
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
- package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
- package/dist/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
- package/dist/serialization/resources/voice/{types/CreateVoiceChatCompletionsRequestBody.js → client/createVoiceChatCompletions.js} +2 -4
- package/dist/serialization/resources/voice/client/index.d.ts +1 -0
- package/dist/serialization/resources/voice/client/index.js +37 -0
- package/dist/serialization/resources/voice/index.d.ts +1 -1
- package/dist/serialization/resources/voice/index.js +1 -1
- package/dist/serialization/types/BatchJob.d.ts +1 -0
- package/dist/serialization/types/BatchJob.js +1 -0
- package/dist/serialization/types/Job.d.ts +1 -0
- package/dist/serialization/types/Job.js +1 -0
- package/dist/serialization/types/LettaResponse.d.ts +2 -0
- package/dist/serialization/types/LettaResponse.js +2 -0
- package/dist/serialization/types/LettaStopReason.d.ts +14 -0
- package/dist/serialization/types/LettaStopReason.js +45 -0
- package/dist/serialization/types/McpServerType.d.ts +1 -1
- package/dist/serialization/types/McpServerType.js +1 -1
- package/dist/serialization/types/McpTool.d.ts +2 -0
- package/dist/serialization/types/McpTool.js +2 -0
- package/dist/serialization/types/Run.d.ts +1 -0
- package/dist/serialization/types/Run.js +1 -0
- package/dist/serialization/types/SseServerConfig.d.ts +3 -0
- package/dist/serialization/types/SseServerConfig.js +3 -0
- package/dist/serialization/types/StopReasonType.d.ts +10 -0
- package/dist/serialization/types/StopReasonType.js +41 -0
- package/dist/serialization/types/Tool.d.ts +2 -0
- package/dist/serialization/types/Tool.js +2 -0
- package/dist/serialization/types/ToolAnnotations.d.ts +17 -0
- package/dist/serialization/types/ToolAnnotations.js +49 -0
- package/dist/serialization/types/ToolCreate.d.ts +2 -0
- package/dist/serialization/types/ToolCreate.js +2 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +15 -19
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
- package/serialization/resources/index.d.ts +1 -2
- package/serialization/resources/index.js +2 -3
- package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
- package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
- package/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
- package/serialization/resources/voice/client/createVoiceChatCompletions.d.ts +9 -0
- package/serialization/resources/voice/{types/CreateVoiceChatCompletionsRequestBody.js → client/createVoiceChatCompletions.js} +2 -4
- package/serialization/resources/voice/client/index.d.ts +1 -0
- package/serialization/resources/voice/client/index.js +37 -0
- package/serialization/resources/voice/index.d.ts +1 -1
- package/serialization/resources/voice/index.js +1 -1
- package/serialization/types/BatchJob.d.ts +1 -0
- package/serialization/types/BatchJob.js +1 -0
- package/serialization/types/Job.d.ts +1 -0
- package/serialization/types/Job.js +1 -0
- package/serialization/types/LettaResponse.d.ts +2 -0
- package/serialization/types/LettaResponse.js +2 -0
- package/serialization/types/LettaStopReason.d.ts +14 -0
- package/serialization/types/LettaStopReason.js +45 -0
- package/serialization/types/McpServerType.d.ts +1 -1
- package/serialization/types/McpServerType.js +1 -1
- package/serialization/types/McpTool.d.ts +2 -0
- package/serialization/types/McpTool.js +2 -0
- package/serialization/types/Run.d.ts +1 -0
- package/serialization/types/Run.js +1 -0
- package/serialization/types/SseServerConfig.d.ts +3 -0
- package/serialization/types/SseServerConfig.js +3 -0
- package/serialization/types/StopReasonType.d.ts +10 -0
- package/serialization/types/StopReasonType.js +41 -0
- package/serialization/types/Tool.d.ts +2 -0
- package/serialization/types/Tool.js +2 -0
- package/serialization/types/ToolAnnotations.d.ts +17 -0
- package/serialization/types/ToolAnnotations.js +49 -0
- package/serialization/types/ToolCreate.d.ts +2 -0
- package/serialization/types/ToolCreate.js +2 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
- package/api/resources/voice/types/index.d.ts +0 -1
- package/api/resources/voice/types/index.js +0 -17
- package/dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -5
- package/dist/api/resources/voice/types/index.d.ts +0 -1
- package/dist/api/resources/voice/types/index.js +0 -17
- package/dist/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
- package/dist/serialization/resources/voice/types/index.d.ts +0 -1
- package/dist/serialization/resources/voice/types/index.js +0 -17
- package/serialization/resources/voice/types/CreateVoiceChatCompletionsRequestBody.d.ts +0 -12
- package/serialization/resources/voice/types/index.d.ts +0 -1
- package/serialization/resources/voice/types/index.js +0 -17
- /package/api/resources/{voice/types/CreateVoiceChatCompletionsRequestBody.js → agents/resources/messages/client/requests/MessagesCreateAsyncRequest.js} +0 -0
- /package/{dist/api/resources/voice/types/CreateVoiceChatCompletionsRequestBody.js → api/types/LettaStopReason.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.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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" }),
|
|
@@ -272,7 +272,7 @@ class Tools {
|
|
|
272
272
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
273
273
|
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/count"),
|
|
274
274
|
method: "GET",
|
|
275
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
275
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
276
276
|
contentType: "application/json",
|
|
277
277
|
queryParameters: _queryParams,
|
|
278
278
|
requestType: "json",
|
|
@@ -349,7 +349,7 @@ class Tools {
|
|
|
349
349
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
350
350
|
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/"),
|
|
351
351
|
method: "GET",
|
|
352
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
352
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
353
353
|
contentType: "application/json",
|
|
354
354
|
queryParameters: _queryParams,
|
|
355
355
|
requestType: "json",
|
|
@@ -417,7 +417,7 @@ class Tools {
|
|
|
417
417
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
418
418
|
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/"),
|
|
419
419
|
method: "POST",
|
|
420
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
420
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
421
421
|
contentType: "application/json",
|
|
422
422
|
requestType: "json",
|
|
423
423
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -485,7 +485,7 @@ class Tools {
|
|
|
485
485
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
486
486
|
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/"),
|
|
487
487
|
method: "PUT",
|
|
488
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
488
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
489
489
|
contentType: "application/json",
|
|
490
490
|
requestType: "json",
|
|
491
491
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -550,7 +550,7 @@ class Tools {
|
|
|
550
550
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
551
551
|
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"),
|
|
552
552
|
method: "POST",
|
|
553
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
553
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
554
554
|
contentType: "application/json",
|
|
555
555
|
requestType: "json",
|
|
556
556
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -620,7 +620,7 @@ class Tools {
|
|
|
620
620
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
621
621
|
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"),
|
|
622
622
|
method: "POST",
|
|
623
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
623
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
624
624
|
contentType: "application/json",
|
|
625
625
|
requestType: "json",
|
|
626
626
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -687,7 +687,7 @@ class Tools {
|
|
|
687
687
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
688
688
|
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"),
|
|
689
689
|
method: "GET",
|
|
690
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
690
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
691
691
|
contentType: "application/json",
|
|
692
692
|
requestType: "json",
|
|
693
693
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -752,7 +752,7 @@ class Tools {
|
|
|
752
752
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
753
753
|
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`),
|
|
754
754
|
method: "GET",
|
|
755
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
755
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
756
756
|
contentType: "application/json",
|
|
757
757
|
requestType: "json",
|
|
758
758
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -817,7 +817,7 @@ class Tools {
|
|
|
817
817
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
818
818
|
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)}`),
|
|
819
819
|
method: "POST",
|
|
820
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
820
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
821
821
|
contentType: "application/json",
|
|
822
822
|
requestType: "json",
|
|
823
823
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -883,7 +883,7 @@ class Tools {
|
|
|
883
883
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
884
884
|
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"),
|
|
885
885
|
method: "GET",
|
|
886
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
886
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
887
887
|
contentType: "application/json",
|
|
888
888
|
requestType: "json",
|
|
889
889
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -952,7 +952,7 @@ class Tools {
|
|
|
952
952
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
953
953
|
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"),
|
|
954
954
|
method: "PUT",
|
|
955
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
955
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
956
956
|
contentType: "application/json",
|
|
957
957
|
requestType: "json",
|
|
958
958
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1018,7 +1018,7 @@ class Tools {
|
|
|
1018
1018
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1019
1019
|
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`),
|
|
1020
1020
|
method: "GET",
|
|
1021
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1021
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
1022
1022
|
contentType: "application/json",
|
|
1023
1023
|
requestType: "json",
|
|
1024
1024
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1084,7 +1084,7 @@ class Tools {
|
|
|
1084
1084
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1085
1085
|
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)}`),
|
|
1086
1086
|
method: "POST",
|
|
1087
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1087
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
1088
1088
|
contentType: "application/json",
|
|
1089
1089
|
requestType: "json",
|
|
1090
1090
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1149,7 +1149,7 @@ class Tools {
|
|
|
1149
1149
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1150
1150
|
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)}`),
|
|
1151
1151
|
method: "DELETE",
|
|
1152
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
1152
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "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),
|
|
1153
1153
|
contentType: "application/json",
|
|
1154
1154
|
requestType: "json",
|
|
1155
1155
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
@@ -25,4 +26,6 @@ export interface ToolRunFromSource {
|
|
|
25
26
|
argsJsonSchema?: Record<string, unknown>;
|
|
26
27
|
/** The JSON schema of the function (auto-generated from source_code if not provided) */
|
|
27
28
|
jsonSchema?: Record<string, unknown>;
|
|
29
|
+
/** Optional list of pip packages required by this tool. */
|
|
30
|
+
pipRequirements?: Letta.PipRequirement[];
|
|
28
31
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -20,4 +21,6 @@ export interface ToolUpdate {
|
|
|
20
21
|
argsJsonSchema?: Record<string, unknown>;
|
|
21
22
|
/** The maximum number of characters in the response. */
|
|
22
23
|
returnCharLimit?: number;
|
|
24
|
+
/** Optional list of pip packages required by this tool. */
|
|
25
|
+
pipRequirements?: Letta.PipRequirement[];
|
|
23
26
|
}
|
|
@@ -36,11 +36,7 @@ export declare class Voice {
|
|
|
36
36
|
* @example
|
|
37
37
|
* await client.voice.createVoiceChatCompletions("agent_id", {
|
|
38
38
|
* body: {
|
|
39
|
-
*
|
|
40
|
-
* content: "content",
|
|
41
|
-
* role: "developer"
|
|
42
|
-
* }],
|
|
43
|
-
* model: "model"
|
|
39
|
+
* "key": "value"
|
|
44
40
|
* }
|
|
45
41
|
* })
|
|
46
42
|
*/
|
|
@@ -69,11 +69,7 @@ class Voice {
|
|
|
69
69
|
* @example
|
|
70
70
|
* await client.voice.createVoiceChatCompletions("agent_id", {
|
|
71
71
|
* body: {
|
|
72
|
-
*
|
|
73
|
-
* content: "content",
|
|
74
|
-
* role: "developer"
|
|
75
|
-
* }],
|
|
76
|
-
* model: "model"
|
|
72
|
+
* "key": "value"
|
|
77
73
|
* }
|
|
78
74
|
* })
|
|
79
75
|
*/
|
|
@@ -84,10 +80,10 @@ class Voice {
|
|
|
84
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
81
|
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-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
82
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
83
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.131", "User-Agent": "@letta-ai/letta-client/0.1.131", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
84
|
contentType: "application/json",
|
|
89
85
|
requestType: "json",
|
|
90
|
-
body: serializers.
|
|
86
|
+
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
|
|
91
87
|
unrecognizedObjectKeys: "strip",
|
|
92
88
|
}),
|
|
93
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Letta from "../../../../index";
|
|
5
4
|
/**
|
|
6
5
|
* @example
|
|
7
6
|
* {
|
|
8
7
|
* body: {
|
|
9
|
-
*
|
|
10
|
-
* content: "content",
|
|
11
|
-
* role: "developer"
|
|
12
|
-
* }],
|
|
13
|
-
* model: "model"
|
|
8
|
+
* "key": "value"
|
|
14
9
|
* }
|
|
15
10
|
* }
|
|
16
11
|
*/
|
|
17
12
|
export interface CreateVoiceChatCompletionsRequest {
|
|
18
13
|
userId?: string;
|
|
19
|
-
body:
|
|
14
|
+
body: Record<string, unknown>;
|
|
20
15
|
}
|
|
@@ -14,5 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./types"), exports);
|
|
18
17
|
__exportStar(require("./client"), exports);
|
|
@@ -24,6 +24,8 @@ export interface BatchJob {
|
|
|
24
24
|
callbackSentAt?: Date;
|
|
25
25
|
/** HTTP status code returned by the callback endpoint. */
|
|
26
26
|
callbackStatusCode?: number;
|
|
27
|
+
/** Optional error message from attempting to POST the callback endpoint. */
|
|
28
|
+
callbackError?: string;
|
|
27
29
|
/** The human-friendly ID of the Job */
|
|
28
30
|
id?: string;
|
|
29
31
|
}
|
package/dist/api/types/Job.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface Job {
|
|
|
35
35
|
callbackSentAt?: Date;
|
|
36
36
|
/** HTTP status code returned by the callback endpoint. */
|
|
37
37
|
callbackStatusCode?: number;
|
|
38
|
+
/** Optional error message from attempting to POST the callback endpoint. */
|
|
39
|
+
callbackError?: string;
|
|
38
40
|
/** The human-friendly ID of the Job */
|
|
39
41
|
id?: string;
|
|
40
42
|
}
|
|
@@ -13,6 +13,7 @@ import * as Letta from "../index";
|
|
|
13
13
|
export interface LettaResponse {
|
|
14
14
|
/** The messages returned by the agent. */
|
|
15
15
|
messages: Letta.LettaMessageUnion[];
|
|
16
|
+
stopReason: Letta.LettaStopReason;
|
|
16
17
|
/** The usage statistics of the agent. */
|
|
17
18
|
usage: Letta.LettaUsageStatistics;
|
|
18
19
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* The stop reason from Letta indicating why agent loop stopped execution.
|
|
7
|
+
*/
|
|
8
|
+
export interface LettaStopReason {
|
|
9
|
+
/** The type of the message. */
|
|
10
|
+
messageType?: "stop_reason";
|
|
11
|
+
/** The reason why execution stopped. */
|
|
12
|
+
stopReason: Letta.StopReasonType;
|
|
13
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type McpServerType = "sse" | "stdio";
|
|
4
|
+
export type McpServerType = "sse" | "stdio" | "streamable_http";
|
|
5
5
|
export declare const McpServerType: {
|
|
6
6
|
readonly Sse: "sse";
|
|
7
7
|
readonly Stdio: "stdio";
|
|
8
|
+
readonly StreamableHttp: "streamable_http";
|
|
8
9
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
/**
|
|
5
6
|
* A simple wrapper around MCP's tool definition (to avoid conflict with our own)
|
|
6
7
|
*/
|
|
@@ -8,6 +9,7 @@ export interface McpTool {
|
|
|
8
9
|
name: string;
|
|
9
10
|
description?: string;
|
|
10
11
|
inputSchema: Record<string, unknown>;
|
|
12
|
+
annotations?: Letta.ToolAnnotations;
|
|
11
13
|
/** Accepts any additional properties */
|
|
12
14
|
[key: string]: any;
|
|
13
15
|
}
|
package/dist/api/types/Run.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export interface Run {
|
|
|
35
35
|
callbackSentAt?: Date;
|
|
36
36
|
/** HTTP status code returned by the callback endpoint. */
|
|
37
37
|
callbackStatusCode?: number;
|
|
38
|
+
/** Optional error message from attempting to POST the callback endpoint. */
|
|
39
|
+
callbackError?: string;
|
|
38
40
|
/** The human-friendly ID of the Run */
|
|
39
41
|
id?: string;
|
|
40
42
|
/** The request configuration for the run. */
|
|
@@ -2,10 +2,26 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Configuration for an MCP server using SSE
|
|
7
|
+
*
|
|
8
|
+
* Authentication can be provided in multiple ways:
|
|
9
|
+
* 1. Using auth_header + auth_token: Will add a specific header with the token
|
|
10
|
+
* Example: auth_header="Authorization", auth_token="Bearer abc123"
|
|
11
|
+
*
|
|
12
|
+
* 2. Using the custom_headers dict: For more complex authentication scenarios
|
|
13
|
+
* Example: custom_headers={"X-API-Key": "abc123", "X-Custom-Header": "value"}
|
|
14
|
+
*/
|
|
5
15
|
export interface SseServerConfig {
|
|
6
16
|
/** The name of the server */
|
|
7
17
|
serverName: string;
|
|
8
18
|
type?: Letta.McpServerType;
|
|
9
19
|
/** The URL of the server (MCP SSE client will connect to this URL) */
|
|
10
20
|
serverUrl: string;
|
|
21
|
+
/** The name of the authentication header (e.g., 'Authorization') */
|
|
22
|
+
authHeader?: string;
|
|
23
|
+
/** The authentication token or API key value */
|
|
24
|
+
authToken?: string;
|
|
25
|
+
/** Custom HTTP headers to include with SSE requests */
|
|
26
|
+
customHeaders?: Record<string, string | undefined>;
|
|
11
27
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type StopReasonType = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule";
|
|
5
|
+
export declare const StopReasonType: {
|
|
6
|
+
readonly EndTurn: "end_turn";
|
|
7
|
+
readonly Error: "error";
|
|
8
|
+
readonly InvalidToolCall: "invalid_tool_call";
|
|
9
|
+
readonly MaxSteps: "max_steps";
|
|
10
|
+
readonly NoToolCall: "no_tool_call";
|
|
11
|
+
readonly ToolRule: "tool_rule";
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.StopReasonType = void 0;
|
|
7
|
+
exports.StopReasonType = {
|
|
8
|
+
EndTurn: "end_turn",
|
|
9
|
+
Error: "error",
|
|
10
|
+
InvalidToolCall: "invalid_tool_call",
|
|
11
|
+
MaxSteps: "max_steps",
|
|
12
|
+
NoToolCall: "no_tool_call",
|
|
13
|
+
ToolRule: "tool_rule",
|
|
14
|
+
};
|
package/dist/api/types/Tool.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export interface Tool {
|
|
|
33
33
|
argsJsonSchema?: Record<string, unknown>;
|
|
34
34
|
/** The maximum number of characters in the response. */
|
|
35
35
|
returnCharLimit?: number;
|
|
36
|
+
/** Optional list of pip packages required by this tool. */
|
|
37
|
+
pipRequirements?: Letta.PipRequirement[];
|
|
36
38
|
/** The id of the user that made this Tool. */
|
|
37
39
|
createdById?: string;
|
|
38
40
|
/** The id of the user that made this Tool. */
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Additional properties describing a Tool to clients.
|
|
6
|
+
*
|
|
7
|
+
* NOTE: all properties in ToolAnnotations are **hints**.
|
|
8
|
+
* They are not guaranteed to provide a faithful description of
|
|
9
|
+
* tool behavior (including descriptive properties like `title`).
|
|
10
|
+
*
|
|
11
|
+
* Clients should never make tool use decisions based on ToolAnnotations
|
|
12
|
+
* received from untrusted servers.
|
|
13
|
+
*/
|
|
14
|
+
export interface ToolAnnotations {
|
|
15
|
+
title?: string;
|
|
16
|
+
readOnlyHint?: boolean;
|
|
17
|
+
destructiveHint?: boolean;
|
|
18
|
+
idempotentHint?: boolean;
|
|
19
|
+
openWorldHint?: boolean;
|
|
20
|
+
/** Accepts any additional properties */
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
export interface ToolCreate {
|
|
5
6
|
/** The description of the tool. */
|
|
6
7
|
description?: string;
|
|
@@ -16,4 +17,6 @@ export interface ToolCreate {
|
|
|
16
17
|
argsJsonSchema?: Record<string, unknown>;
|
|
17
18
|
/** The maximum number of characters in the response. */
|
|
18
19
|
returnCharLimit?: number;
|
|
20
|
+
/** Optional list of pip packages required by this tool. */
|
|
21
|
+
pipRequirements?: Letta.PipRequirement[];
|
|
19
22
|
}
|
|
@@ -130,6 +130,7 @@ export * from "./LettaImage";
|
|
|
130
130
|
export * from "./LettaRequest";
|
|
131
131
|
export * from "./LettaRequestConfig";
|
|
132
132
|
export * from "./LettaResponse";
|
|
133
|
+
export * from "./LettaStopReason";
|
|
133
134
|
export * from "./LettaStreamingRequest";
|
|
134
135
|
export * from "./LettaUsageStatistics";
|
|
135
136
|
export * from "./LocalSandboxConfig";
|
|
@@ -185,6 +186,7 @@ export * from "./SleeptimeManagerUpdate";
|
|
|
185
186
|
export * from "./Source";
|
|
186
187
|
export * from "./StdioServerConfig";
|
|
187
188
|
export * from "./Step";
|
|
189
|
+
export * from "./StopReasonType";
|
|
188
190
|
export * from "./SupervisorManager";
|
|
189
191
|
export * from "./SupervisorManagerUpdate";
|
|
190
192
|
export * from "./SystemMessage";
|
|
@@ -193,6 +195,7 @@ export * from "./TerminalToolRule";
|
|
|
193
195
|
export * from "./TextContent";
|
|
194
196
|
export * from "./TextResponseFormat";
|
|
195
197
|
export * from "./Tool";
|
|
198
|
+
export * from "./ToolAnnotations";
|
|
196
199
|
export * from "./ToolCall";
|
|
197
200
|
export * from "./ToolCallContent";
|
|
198
201
|
export * from "./ToolCallDelta";
|
package/dist/api/types/index.js
CHANGED
|
@@ -146,6 +146,7 @@ __exportStar(require("./LettaImage"), exports);
|
|
|
146
146
|
__exportStar(require("./LettaRequest"), exports);
|
|
147
147
|
__exportStar(require("./LettaRequestConfig"), exports);
|
|
148
148
|
__exportStar(require("./LettaResponse"), exports);
|
|
149
|
+
__exportStar(require("./LettaStopReason"), exports);
|
|
149
150
|
__exportStar(require("./LettaStreamingRequest"), exports);
|
|
150
151
|
__exportStar(require("./LettaUsageStatistics"), exports);
|
|
151
152
|
__exportStar(require("./LocalSandboxConfig"), exports);
|
|
@@ -201,6 +202,7 @@ __exportStar(require("./SleeptimeManagerUpdate"), exports);
|
|
|
201
202
|
__exportStar(require("./Source"), exports);
|
|
202
203
|
__exportStar(require("./StdioServerConfig"), exports);
|
|
203
204
|
__exportStar(require("./Step"), exports);
|
|
205
|
+
__exportStar(require("./StopReasonType"), exports);
|
|
204
206
|
__exportStar(require("./SupervisorManager"), exports);
|
|
205
207
|
__exportStar(require("./SupervisorManagerUpdate"), exports);
|
|
206
208
|
__exportStar(require("./SystemMessage"), exports);
|
|
@@ -209,6 +211,7 @@ __exportStar(require("./TerminalToolRule"), exports);
|
|
|
209
211
|
__exportStar(require("./TextContent"), exports);
|
|
210
212
|
__exportStar(require("./TextResponseFormat"), exports);
|
|
211
213
|
__exportStar(require("./Tool"), exports);
|
|
214
|
+
__exportStar(require("./ToolAnnotations"), exports);
|
|
212
215
|
__exportStar(require("./ToolCall"), exports);
|
|
213
216
|
__exportStar(require("./ToolCallContent"), exports);
|
|
214
217
|
__exportStar(require("./ToolCallDelta"), exports);
|
package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts
CHANGED
|
@@ -10,8 +10,9 @@ import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
|
|
|
10
10
|
import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
|
|
11
11
|
import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
|
|
12
12
|
import { AssistantMessage } from "../../../../../types/AssistantMessage";
|
|
13
|
+
import { LettaStopReason } from "../../../../../types/LettaStopReason";
|
|
13
14
|
import { LettaUsageStatistics } from "../../../../../types/LettaUsageStatistics";
|
|
14
15
|
export declare const LettaStreamingResponse: core.serialization.Schema<serializers.agents.LettaStreamingResponse.Raw, Letta.agents.LettaStreamingResponse>;
|
|
15
16
|
export declare namespace LettaStreamingResponse {
|
|
16
|
-
type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaUsageStatistics.Raw;
|
|
17
|
+
type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaStopReason.Raw | LettaUsageStatistics.Raw;
|
|
17
18
|
}
|
package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js
CHANGED
|
@@ -44,6 +44,7 @@ const ReasoningMessage_1 = require("../../../../../types/ReasoningMessage");
|
|
|
44
44
|
const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
|
|
45
45
|
const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
|
|
46
46
|
const AssistantMessage_1 = require("../../../../../types/AssistantMessage");
|
|
47
|
+
const LettaStopReason_1 = require("../../../../../types/LettaStopReason");
|
|
47
48
|
const LettaUsageStatistics_1 = require("../../../../../types/LettaUsageStatistics");
|
|
48
49
|
exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
|
|
49
50
|
SystemMessage_1.SystemMessage,
|
|
@@ -52,5 +53,6 @@ exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
|
|
|
52
53
|
ToolCallMessage_1.ToolCallMessage,
|
|
53
54
|
ToolReturnMessage_1.ToolReturnMessage,
|
|
54
55
|
AssistantMessage_1.AssistantMessage,
|
|
56
|
+
LettaStopReason_1.LettaStopReason,
|
|
55
57
|
LettaUsageStatistics_1.LettaUsageStatistics,
|
|
56
58
|
]);
|
|
@@ -4,8 +4,6 @@ export * as agents from "./agents";
|
|
|
4
4
|
export * from "./agents/types";
|
|
5
5
|
export * as groups from "./groups";
|
|
6
6
|
export * from "./groups/types";
|
|
7
|
-
export * as voice from "./voice";
|
|
8
|
-
export * from "./voice/types";
|
|
9
7
|
export * as templates from "./templates";
|
|
10
8
|
export * from "./templates/types";
|
|
11
9
|
export * as clientSideAccessTokens from "./clientSideAccessTokens";
|
|
@@ -23,6 +21,7 @@ export * as runs from "./runs";
|
|
|
23
21
|
export * as steps from "./steps";
|
|
24
22
|
export * as tags from "./tags";
|
|
25
23
|
export * as batches from "./batches";
|
|
24
|
+
export * as voice from "./voice";
|
|
26
25
|
export * from "./tools/client/requests";
|
|
27
26
|
export * from "./sources/client/requests";
|
|
28
27
|
export * from "./agents/client/requests";
|