@letta-ai/letta-client 0.1.110 → 0.1.112
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 +9 -9
- 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.js +6 -6
- 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 +5 -5
- 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/embeddings/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +5 -5
- 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 -0
- package/api/resources/index.js +1 -0
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.d.ts +4 -1
- package/api/resources/models/client/Client.js +28 -7
- package/api/resources/models/client/index.d.ts +1 -1
- package/api/resources/models/client/index.js +15 -0
- package/api/resources/models/client/requests/ModelsListRequest.d.ts +10 -0
- package/api/resources/models/client/requests/index.d.ts +1 -0
- package/api/resources/models/client/requests/index.js +2 -0
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +1 -0
- package/api/resources/providers/client/Client.js +12 -5
- package/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
- package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +3 -0
- 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.d.ts +3 -10
- package/api/resources/steps/client/Client.js +8 -51
- package/api/resources/steps/client/requests/{ListStepsRequest.d.ts → StepsListRequest.d.ts} +1 -1
- package/api/resources/steps/client/requests/index.d.ts +1 -1
- package/api/resources/tags/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/voice/client/Client.js +1 -1
- package/api/types/AssistantMessage.d.ts +1 -0
- package/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/api/types/LlmConfig.d.ts +2 -0
- package/api/types/Message.d.ts +5 -0
- package/api/types/Provider.d.ts +5 -0
- package/api/types/ProviderType.d.ts +21 -0
- package/api/types/ProviderType.js +23 -0
- package/api/types/ReasoningMessage.d.ts +1 -0
- package/api/types/SystemMessage.d.ts +1 -0
- package/api/types/ToolCallMessage.d.ts +1 -0
- package/api/types/ToolReturnMessage.d.ts +1 -0
- package/api/types/UserMessage.d.ts +1 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/agents/client/Client.js +9 -9
- 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.js +6 -6
- 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 +5 -5
- 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/embeddings/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +5 -5
- 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 -0
- package/dist/api/resources/index.js +1 -0
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.d.ts +4 -1
- package/dist/api/resources/models/client/Client.js +28 -7
- package/dist/api/resources/models/client/index.d.ts +1 -1
- package/dist/api/resources/models/client/index.js +15 -0
- package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +10 -0
- package/dist/api/resources/models/client/requests/ModelsListRequest.js +5 -0
- package/dist/api/resources/models/client/requests/index.d.ts +1 -0
- package/dist/api/resources/models/client/requests/index.js +2 -0
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +1 -0
- package/dist/api/resources/providers/client/Client.js +12 -5
- package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
- package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +3 -0
- 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.d.ts +3 -10
- package/dist/api/resources/steps/client/Client.js +8 -51
- package/dist/api/resources/steps/client/requests/{ListStepsRequest.d.ts → StepsListRequest.d.ts} +1 -1
- package/dist/api/resources/steps/client/requests/StepsListRequest.js +5 -0
- package/dist/api/resources/steps/client/requests/index.d.ts +1 -1
- package/dist/api/resources/tags/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/voice/client/Client.js +1 -1
- package/dist/api/types/AssistantMessage.d.ts +1 -0
- package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/api/types/LlmConfig.d.ts +2 -0
- package/dist/api/types/Message.d.ts +5 -0
- package/dist/api/types/Provider.d.ts +5 -0
- package/dist/api/types/ProviderType.d.ts +21 -0
- package/dist/api/types/ProviderType.js +23 -0
- package/dist/api/types/ReasoningMessage.d.ts +1 -0
- package/dist/api/types/SystemMessage.d.ts +1 -0
- package/dist/api/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/types/ToolReturnMessage.d.ts +1 -0
- package/dist/api/types/UserMessage.d.ts +1 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/dist/serialization/resources/steps/client/index.d.ts +1 -1
- package/dist/serialization/resources/steps/client/index.js +2 -2
- package/dist/serialization/resources/steps/client/{listSteps.d.ts → list.d.ts} +1 -1
- package/dist/serialization/types/AssistantMessage.d.ts +1 -0
- package/dist/serialization/types/AssistantMessage.js +1 -0
- package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/serialization/types/Provider.d.ts +3 -0
- package/dist/serialization/types/Provider.js +3 -0
- package/dist/serialization/types/ProviderType.d.ts +10 -0
- package/dist/serialization/types/ProviderType.js +57 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/ReasoningMessage.js +1 -0
- package/dist/serialization/types/SystemMessage.d.ts +1 -0
- package/dist/serialization/types/SystemMessage.js +1 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
- package/dist/serialization/types/ToolCallMessage.js +1 -0
- package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/dist/serialization/types/ToolReturnMessage.js +1 -0
- package/dist/serialization/types/UserMessage.d.ts +1 -0
- package/dist/serialization/types/UserMessage.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +13 -44
- package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
- package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
- package/serialization/resources/steps/client/index.d.ts +1 -1
- package/serialization/resources/steps/client/index.js +2 -2
- package/serialization/resources/steps/client/{listSteps.d.ts → list.d.ts} +1 -1
- package/serialization/types/AssistantMessage.d.ts +1 -0
- package/serialization/types/AssistantMessage.js +1 -0
- package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/serialization/types/HiddenReasoningMessage.js +1 -0
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/Provider.d.ts +3 -0
- package/serialization/types/Provider.js +3 -0
- package/serialization/types/ProviderType.d.ts +10 -0
- package/serialization/types/ProviderType.js +57 -0
- package/serialization/types/ReasoningMessage.d.ts +1 -0
- package/serialization/types/ReasoningMessage.js +1 -0
- package/serialization/types/SystemMessage.d.ts +1 -0
- package/serialization/types/SystemMessage.js +1 -0
- package/serialization/types/ToolCallMessage.d.ts +1 -0
- package/serialization/types/ToolCallMessage.js +1 -0
- package/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/serialization/types/ToolReturnMessage.js +1 -0
- package/serialization/types/UserMessage.d.ts +1 -0
- package/serialization/types/UserMessage.js +1 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/{steps/client/requests/ListStepsRequest.js → models/client/requests/ModelsListRequest.js} +0 -0
- /package/{dist/api/resources/steps/client/requests/ListStepsRequest.js → api/resources/steps/client/requests/StepsListRequest.js} +0 -0
- /package/dist/serialization/resources/steps/client/{listSteps.js → list.js} +0 -0
- /package/serialization/resources/steps/client/{listSteps.js → list.js} +0 -0
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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,
|
|
@@ -84,7 +84,7 @@ class Voice {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
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
86
|
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.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.112", "User-Agent": "@letta-ai/letta-client/0.1.112", "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
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
|
|
@@ -18,6 +18,7 @@ export interface AssistantMessage {
|
|
|
18
18
|
messageType: "assistant_message";
|
|
19
19
|
otid?: string;
|
|
20
20
|
senderId?: string;
|
|
21
|
+
stepId?: string;
|
|
21
22
|
/** The message content sent by the agent (can be a string or an array of content parts) */
|
|
22
23
|
content: Letta.AssistantMessageContent;
|
|
23
24
|
}
|
|
@@ -22,6 +22,8 @@ export interface LlmConfig {
|
|
|
22
22
|
modelEndpointType: Letta.LlmConfigModelEndpointType;
|
|
23
23
|
/** The endpoint for the model. */
|
|
24
24
|
modelEndpoint?: string;
|
|
25
|
+
/** The provider name for the model. */
|
|
26
|
+
providerName?: string;
|
|
25
27
|
/** The wrapper for the model. */
|
|
26
28
|
modelWrapper?: string;
|
|
27
29
|
/** The context window size for the model. */
|
|
@@ -16,6 +16,11 @@ import * as Letta from "../index";
|
|
|
16
16
|
* created_at (datetime): The time the message was created.
|
|
17
17
|
* tool_calls (List[OpenAIToolCall,]): The list of tool calls requested.
|
|
18
18
|
* tool_call_id (str): The id of the tool call.
|
|
19
|
+
* step_id (str): The id of the step that this message was created in.
|
|
20
|
+
* otid (str): The offline threading id associated with this message.
|
|
21
|
+
* tool_returns (List[ToolReturn]): The list of tool returns requested.
|
|
22
|
+
* group_id (str): The multi-agent group that the message was sent in.
|
|
23
|
+
* sender_id (str): The id of the sender of the message, can be an identity id or agent id.
|
|
19
24
|
*/
|
|
20
25
|
export interface Message {
|
|
21
26
|
/** The id of the user that made this object. */
|
|
@@ -1,13 +1,18 @@
|
|
|
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 Provider {
|
|
5
6
|
/** The id of the provider, lazily created by the database manager. */
|
|
6
7
|
id?: string;
|
|
7
8
|
/** The name of the provider */
|
|
8
9
|
name: string;
|
|
10
|
+
/** The type of the provider */
|
|
11
|
+
providerType: Letta.ProviderType;
|
|
9
12
|
/** API key used for requests to the provider. */
|
|
10
13
|
apiKey?: string;
|
|
14
|
+
/** Base URL for the provider. */
|
|
15
|
+
baseUrl?: string;
|
|
11
16
|
/** The last update timestamp of the provider. */
|
|
12
17
|
updatedAt?: Date;
|
|
13
18
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ProviderType = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
|
|
5
|
+
export declare const ProviderType: {
|
|
6
|
+
readonly Anthropic: "anthropic";
|
|
7
|
+
readonly GoogleAi: "google_ai";
|
|
8
|
+
readonly GoogleVertex: "google_vertex";
|
|
9
|
+
readonly Openai: "openai";
|
|
10
|
+
readonly Letta: "letta";
|
|
11
|
+
readonly Deepseek: "deepseek";
|
|
12
|
+
readonly LmstudioOpenai: "lmstudio_openai";
|
|
13
|
+
readonly Xai: "xai";
|
|
14
|
+
readonly Mistral: "mistral";
|
|
15
|
+
readonly Ollama: "ollama";
|
|
16
|
+
readonly Groq: "groq";
|
|
17
|
+
readonly Together: "together";
|
|
18
|
+
readonly Azure: "azure";
|
|
19
|
+
readonly Vllm: "vllm";
|
|
20
|
+
readonly Bedrock: "bedrock";
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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.ProviderType = void 0;
|
|
7
|
+
exports.ProviderType = {
|
|
8
|
+
Anthropic: "anthropic",
|
|
9
|
+
GoogleAi: "google_ai",
|
|
10
|
+
GoogleVertex: "google_vertex",
|
|
11
|
+
Openai: "openai",
|
|
12
|
+
Letta: "letta",
|
|
13
|
+
Deepseek: "deepseek",
|
|
14
|
+
LmstudioOpenai: "lmstudio_openai",
|
|
15
|
+
Xai: "xai",
|
|
16
|
+
Mistral: "mistral",
|
|
17
|
+
Ollama: "ollama",
|
|
18
|
+
Groq: "groq",
|
|
19
|
+
Together: "together",
|
|
20
|
+
Azure: "azure",
|
|
21
|
+
Vllm: "vllm",
|
|
22
|
+
Bedrock: "bedrock",
|
|
23
|
+
};
|
|
@@ -18,6 +18,7 @@ export interface UserMessage {
|
|
|
18
18
|
messageType: "user_message";
|
|
19
19
|
otid?: string;
|
|
20
20
|
senderId?: string;
|
|
21
|
+
stepId?: string;
|
|
21
22
|
/** The message content sent by the user (can be a string or an array of multi-modal content parts) */
|
|
22
23
|
content: Letta.UserMessageContent;
|
|
23
24
|
}
|
|
@@ -149,6 +149,7 @@ export * from "./ParentToolRule";
|
|
|
149
149
|
export * from "./Passage";
|
|
150
150
|
export * from "./PipRequirement";
|
|
151
151
|
export * from "./Provider";
|
|
152
|
+
export * from "./ProviderType";
|
|
152
153
|
export * from "./ReasoningContent";
|
|
153
154
|
export * from "./ReasoningMessageSource";
|
|
154
155
|
export * from "./ReasoningMessage";
|
package/dist/api/types/index.js
CHANGED
|
@@ -165,6 +165,7 @@ __exportStar(require("./ParentToolRule"), exports);
|
|
|
165
165
|
__exportStar(require("./Passage"), exports);
|
|
166
166
|
__exportStar(require("./PipRequirement"), exports);
|
|
167
167
|
__exportStar(require("./Provider"), exports);
|
|
168
|
+
__exportStar(require("./ProviderType"), exports);
|
|
168
169
|
__exportStar(require("./ReasoningContent"), exports);
|
|
169
170
|
__exportStar(require("./ReasoningMessageSource"), exports);
|
|
170
171
|
__exportStar(require("./ReasoningMessage"), exports);
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
import * as serializers from "../../../../index";
|
|
5
5
|
import * as Letta from "../../../../../api/index";
|
|
6
6
|
import * as core from "../../../../../core";
|
|
7
|
+
import { ProviderType } from "../../../../types/ProviderType";
|
|
7
8
|
export declare const ProviderCreate: core.serialization.Schema<serializers.ProviderCreate.Raw, Letta.ProviderCreate>;
|
|
8
9
|
export declare namespace ProviderCreate {
|
|
9
10
|
interface Raw {
|
|
10
11
|
name: string;
|
|
12
|
+
provider_type: ProviderType.Raw;
|
|
11
13
|
api_key: string;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -38,7 +38,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ProviderCreate = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../core"));
|
|
41
|
+
const ProviderType_1 = require("../../../../types/ProviderType");
|
|
41
42
|
exports.ProviderCreate = core.serialization.object({
|
|
42
43
|
name: core.serialization.string(),
|
|
44
|
+
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
43
45
|
apiKey: core.serialization.property("api_key", core.serialization.string()),
|
|
44
46
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as list from "./list";
|
|
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.list = void 0;
|
|
37
|
+
exports.list = __importStar(require("./list"));
|
|
@@ -5,7 +5,7 @@ import * as serializers from "../../../index";
|
|
|
5
5
|
import * as Letta from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
7
|
import { Step } from "../../../types/Step";
|
|
8
|
-
export declare const Response: core.serialization.Schema<serializers.steps.
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.steps.list.Response.Raw, Letta.Step[]>;
|
|
9
9
|
export declare namespace Response {
|
|
10
10
|
type Raw = Step.Raw[];
|
|
11
11
|
}
|
|
@@ -46,5 +46,6 @@ exports.AssistantMessage = core.serialization.object({
|
|
|
46
46
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("assistant_message")),
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
|
+
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
49
50
|
content: AssistantMessageContent_1.AssistantMessageContent,
|
|
50
51
|
});
|
|
@@ -14,6 +14,7 @@ export declare namespace HiddenReasoningMessage {
|
|
|
14
14
|
message_type: "hidden_reasoning_message";
|
|
15
15
|
otid?: string | null;
|
|
16
16
|
sender_id?: string | null;
|
|
17
|
+
step_id?: string | null;
|
|
17
18
|
state: HiddenReasoningMessageState.Raw;
|
|
18
19
|
hidden_reasoning?: string | null;
|
|
19
20
|
}
|
|
@@ -46,6 +46,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
|
|
|
46
46
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("hidden_reasoning_message")),
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
|
+
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
49
50
|
state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
|
|
50
51
|
hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
|
|
51
52
|
});
|
|
@@ -12,6 +12,7 @@ export declare namespace LlmConfig {
|
|
|
12
12
|
model: string;
|
|
13
13
|
model_endpoint_type: LlmConfigModelEndpointType.Raw;
|
|
14
14
|
model_endpoint?: string | null;
|
|
15
|
+
provider_name?: string | null;
|
|
15
16
|
model_wrapper?: string | null;
|
|
16
17
|
context_window: number;
|
|
17
18
|
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
@@ -44,6 +44,7 @@ exports.LlmConfig = core.serialization.object({
|
|
|
44
44
|
model: core.serialization.string(),
|
|
45
45
|
modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
|
|
46
46
|
modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
|
|
47
|
+
providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
|
|
47
48
|
modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
|
|
48
49
|
contextWindow: core.serialization.property("context_window", core.serialization.number()),
|
|
49
50
|
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
|
|
@@ -4,12 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { ProviderType } from "./ProviderType";
|
|
7
8
|
export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
|
|
8
9
|
export declare namespace Provider {
|
|
9
10
|
interface Raw {
|
|
10
11
|
id?: string | null;
|
|
11
12
|
name: string;
|
|
13
|
+
provider_type: ProviderType.Raw;
|
|
12
14
|
api_key?: string | null;
|
|
15
|
+
base_url?: string | null;
|
|
13
16
|
updated_at?: string | null;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -38,9 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Provider = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const ProviderType_1 = require("./ProviderType");
|
|
41
42
|
exports.Provider = core.serialization.object({
|
|
42
43
|
id: core.serialization.string().optional(),
|
|
43
44
|
name: core.serialization.string(),
|
|
45
|
+
providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
|
|
44
46
|
apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
|
|
47
|
+
baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
|
|
45
48
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
46
49
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
|
|
8
|
+
export declare namespace ProviderType {
|
|
9
|
+
type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
|
|
10
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ProviderType = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ProviderType = core.serialization.enum_([
|
|
42
|
+
"anthropic",
|
|
43
|
+
"google_ai",
|
|
44
|
+
"google_vertex",
|
|
45
|
+
"openai",
|
|
46
|
+
"letta",
|
|
47
|
+
"deepseek",
|
|
48
|
+
"lmstudio_openai",
|
|
49
|
+
"xai",
|
|
50
|
+
"mistral",
|
|
51
|
+
"ollama",
|
|
52
|
+
"groq",
|
|
53
|
+
"together",
|
|
54
|
+
"azure",
|
|
55
|
+
"vllm",
|
|
56
|
+
"bedrock",
|
|
57
|
+
]);
|
|
@@ -14,6 +14,7 @@ export declare namespace ReasoningMessage {
|
|
|
14
14
|
message_type: "reasoning_message";
|
|
15
15
|
otid?: string | null;
|
|
16
16
|
sender_id?: string | null;
|
|
17
|
+
step_id?: string | null;
|
|
17
18
|
source?: ReasoningMessageSource.Raw | null;
|
|
18
19
|
reasoning: string;
|
|
19
20
|
signature?: string | null;
|
|
@@ -46,6 +46,7 @@ exports.ReasoningMessage = core.serialization.object({
|
|
|
46
46
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("reasoning_message")),
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
|
+
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
49
50
|
source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
|
|
50
51
|
reasoning: core.serialization.string(),
|
|
51
52
|
signature: core.serialization.string().optional(),
|
|
@@ -45,5 +45,6 @@ exports.SystemMessage = core.serialization.object({
|
|
|
45
45
|
messageType: core.serialization.property("message_type", core.serialization.stringLiteral("system_message")),
|
|
46
46
|
otid: core.serialization.string().optional(),
|
|
47
47
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
48
|
+
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
48
49
|
content: core.serialization.string(),
|
|
49
50
|
});
|