@letta-ai/letta-client 0.1.22 → 0.1.23
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 +7 -7
- package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/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/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +1 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +5 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
- package/api/resources/agents/types/index.d.ts +2 -0
- package/api/resources/agents/types/index.js +2 -0
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +6 -6
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
- package/api/resources/templates/types/index.d.ts +2 -0
- package/api/resources/templates/types/index.js +2 -0
- package/api/resources/tools/client/Client.js +11 -11
- package/api/types/LlmConfig.d.ts +3 -0
- package/dist/api/resources/agents/client/Client.js +7 -7
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/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/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +1 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
- package/dist/api/resources/agents/types/index.d.ts +2 -0
- package/dist/api/resources/agents/types/index.js +2 -0
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +6 -6
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +2 -0
- package/dist/api/resources/templates/types/index.js +2 -0
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/types/LlmConfig.d.ts +3 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +2 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.js +2 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +47 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
- package/dist/serialization/resources/agents/types/index.d.ts +2 -0
- package/dist/serialization/resources/agents/types/index.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
- package/dist/serialization/resources/templates/types/index.d.ts +2 -0
- package/dist/serialization/resources/templates/types/index.js +2 -0
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts +2 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.js +2 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokens.js +47 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
- package/serialization/resources/agents/types/index.d.ts +2 -0
- package/serialization/resources/agents/types/index.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.js +41 -0
- package/serialization/resources/templates/types/index.d.ts +2 -0
- package/serialization/resources/templates/types/index.js +2 -0
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -86,7 +86,7 @@ class Sources {
|
|
|
86
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
87
|
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/sources/${encodeURIComponent(sourceId)}`),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
89
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -151,7 +151,7 @@ class Sources {
|
|
|
151
151
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
152
|
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/sources/${encodeURIComponent(sourceId)}`),
|
|
153
153
|
method: "DELETE",
|
|
154
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
154
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -211,7 +211,7 @@ class Sources {
|
|
|
211
211
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
212
212
|
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/sources/${encodeURIComponent(sourceId)}`),
|
|
213
213
|
method: "PATCH",
|
|
214
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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),
|
|
215
215
|
contentType: "application/json",
|
|
216
216
|
requestType: "json",
|
|
217
217
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -277,7 +277,7 @@ class Sources {
|
|
|
277
277
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
278
278
|
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/sources/name/${encodeURIComponent(sourceName)}`),
|
|
279
279
|
method: "GET",
|
|
280
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
280
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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),
|
|
281
281
|
contentType: "application/json",
|
|
282
282
|
requestType: "json",
|
|
283
283
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -341,7 +341,7 @@ class Sources {
|
|
|
341
341
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
342
342
|
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/sources/"),
|
|
343
343
|
method: "GET",
|
|
344
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
344
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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),
|
|
345
345
|
contentType: "application/json",
|
|
346
346
|
requestType: "json",
|
|
347
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -408,7 +408,7 @@ class Sources {
|
|
|
408
408
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
409
409
|
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/sources/"),
|
|
410
410
|
method: "POST",
|
|
411
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
411
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
412
412
|
contentType: "application/json",
|
|
413
413
|
requestType: "json",
|
|
414
414
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -80,7 +80,7 @@ class Files {
|
|
|
80
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
81
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/sources/${encodeURIComponent(sourceId)}/upload`),
|
|
82
82
|
method: "POST",
|
|
83
|
-
headers: Object.assign(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(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
requestType: "file",
|
|
85
85
|
duplex: _maybeEncodedRequest.duplex,
|
|
86
86
|
body: _maybeEncodedRequest.body,
|
|
@@ -155,7 +155,7 @@ class Files {
|
|
|
155
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
156
156
|
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/sources/${encodeURIComponent(sourceId)}/files`),
|
|
157
157
|
method: "GET",
|
|
158
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
158
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
queryParameters: _queryParams,
|
|
161
161
|
requestType: "json",
|
|
@@ -222,7 +222,7 @@ class Files {
|
|
|
222
222
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
223
223
|
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/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
|
|
224
224
|
method: "DELETE",
|
|
225
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
225
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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),
|
|
226
226
|
contentType: "application/json",
|
|
227
227
|
requestType: "json",
|
|
228
228
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -76,7 +76,7 @@ class Passages {
|
|
|
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/sources/${encodeURIComponent(sourceId)}/passages`),
|
|
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.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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,
|
|
@@ -100,7 +100,7 @@ class Steps {
|
|
|
100
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
101
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
|
|
102
102
|
method: "GET",
|
|
103
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
103
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
104
|
contentType: "application/json",
|
|
105
105
|
queryParameters: _queryParams,
|
|
106
106
|
requestType: "json",
|
|
@@ -166,7 +166,7 @@ class Steps {
|
|
|
166
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
167
167
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
|
|
168
168
|
method: "GET",
|
|
169
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
169
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Tag {
|
|
|
87
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
88
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tags/"),
|
|
89
89
|
method: "GET",
|
|
90
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -75,7 +75,7 @@ class Templates {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
78
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.TemplatesCreateAgentsFromTemplateRequest.jsonOrThrow(request, {
|
|
@@ -11,4 +11,5 @@ export interface TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig {
|
|
|
11
11
|
putInnerThoughtsInKwargs?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs;
|
|
12
12
|
handle?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle;
|
|
13
13
|
temperature?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature;
|
|
14
|
+
maxTokens?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens;
|
|
14
15
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../index";
|
|
5
|
+
export type TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens = number | string | undefined | (Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem | undefined)[] | unknown;
|
|
@@ -44,6 +44,8 @@ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPut
|
|
|
44
44
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandleItem";
|
|
45
45
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle";
|
|
46
46
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature";
|
|
47
|
+
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem";
|
|
48
|
+
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens";
|
|
47
49
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig";
|
|
48
50
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType";
|
|
49
51
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointItem";
|
|
@@ -60,6 +60,8 @@ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmCo
|
|
|
60
60
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandleItem"), exports);
|
|
61
61
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle"), exports);
|
|
62
62
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature"), exports);
|
|
63
|
+
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem"), exports);
|
|
64
|
+
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens"), exports);
|
|
63
65
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig"), exports);
|
|
64
66
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointType"), exports);
|
|
65
67
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemEmbeddingConfigEmbeddingEndpointItem"), exports);
|
|
@@ -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.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "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.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -479,7 +479,7 @@ class Tools {
|
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -614,7 +614,7 @@ class Tools {
|
|
|
614
614
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
615
615
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
|
|
616
616
|
method: "GET",
|
|
617
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
617
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
618
618
|
contentType: "application/json",
|
|
619
619
|
requestType: "json",
|
|
620
620
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -679,7 +679,7 @@ class Tools {
|
|
|
679
679
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
680
680
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
681
681
|
method: "GET",
|
|
682
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
682
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
683
683
|
contentType: "application/json",
|
|
684
684
|
requestType: "json",
|
|
685
685
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -744,7 +744,7 @@ class Tools {
|
|
|
744
744
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
745
745
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
746
746
|
method: "POST",
|
|
747
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
747
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.23", "User-Agent": "@letta-ai/letta-client/0.1.23", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
748
748
|
contentType: "application/json",
|
|
749
749
|
requestType: "json",
|
|
750
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -13,6 +13,7 @@ import * as Letta from "../index";
|
|
|
13
13
|
* context_window (int): The context window size for the model.
|
|
14
14
|
* put_inner_thoughts_in_kwargs (bool): Puts `inner_thoughts` as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.
|
|
15
15
|
* temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.
|
|
16
|
+
* max_tokens (int): The maximum number of tokens to generate.
|
|
16
17
|
*/
|
|
17
18
|
export interface LlmConfig {
|
|
18
19
|
/** LLM model name. */
|
|
@@ -31,4 +32,6 @@ export interface LlmConfig {
|
|
|
31
32
|
handle?: string;
|
|
32
33
|
/** The temperature to use when generating text with the model. A higher temperature will result in more random text. */
|
|
33
34
|
temperature?: number;
|
|
35
|
+
/** The maximum number of tokens to generate. If not set, the model will use its default value. */
|
|
36
|
+
maxTokens?: number;
|
|
34
37
|
}
|
package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { AgentsSearchResponseAgentsItemLlmConfigModelWrapper } from "./AgentsSea
|
|
|
10
10
|
import { AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs } from "./AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs";
|
|
11
11
|
import { AgentsSearchResponseAgentsItemLlmConfigHandle } from "./AgentsSearchResponseAgentsItemLlmConfigHandle";
|
|
12
12
|
import { AgentsSearchResponseAgentsItemLlmConfigTemperature } from "./AgentsSearchResponseAgentsItemLlmConfigTemperature";
|
|
13
|
+
import { AgentsSearchResponseAgentsItemLlmConfigMaxTokens } from "./AgentsSearchResponseAgentsItemLlmConfigMaxTokens";
|
|
13
14
|
export declare const AgentsSearchResponseAgentsItemLlmConfig: core.serialization.ObjectSchema<serializers.AgentsSearchResponseAgentsItemLlmConfig.Raw, Letta.AgentsSearchResponseAgentsItemLlmConfig>;
|
|
14
15
|
export declare namespace AgentsSearchResponseAgentsItemLlmConfig {
|
|
15
16
|
interface Raw {
|
|
@@ -21,5 +22,6 @@ export declare namespace AgentsSearchResponseAgentsItemLlmConfig {
|
|
|
21
22
|
put_inner_thoughts_in_kwargs?: AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs.Raw | null;
|
|
22
23
|
handle?: AgentsSearchResponseAgentsItemLlmConfigHandle.Raw | null;
|
|
23
24
|
temperature?: AgentsSearchResponseAgentsItemLlmConfigTemperature.Raw | null;
|
|
25
|
+
max_tokens?: AgentsSearchResponseAgentsItemLlmConfigMaxTokens.Raw | null;
|
|
24
26
|
}
|
|
25
27
|
}
|
package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemLlmConfig.js
CHANGED
|
@@ -44,6 +44,7 @@ const AgentsSearchResponseAgentsItemLlmConfigModelWrapper_1 = require("./AgentsS
|
|
|
44
44
|
const AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs_1 = require("./AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs");
|
|
45
45
|
const AgentsSearchResponseAgentsItemLlmConfigHandle_1 = require("./AgentsSearchResponseAgentsItemLlmConfigHandle");
|
|
46
46
|
const AgentsSearchResponseAgentsItemLlmConfigTemperature_1 = require("./AgentsSearchResponseAgentsItemLlmConfigTemperature");
|
|
47
|
+
const AgentsSearchResponseAgentsItemLlmConfigMaxTokens_1 = require("./AgentsSearchResponseAgentsItemLlmConfigMaxTokens");
|
|
47
48
|
exports.AgentsSearchResponseAgentsItemLlmConfig = core.serialization.object({
|
|
48
49
|
model: core.serialization.string(),
|
|
49
50
|
modelEndpointType: core.serialization.property("model_endpoint_type", AgentsSearchResponseAgentsItemLlmConfigModelEndpointType_1.AgentsSearchResponseAgentsItemLlmConfigModelEndpointType),
|
|
@@ -53,4 +54,5 @@ exports.AgentsSearchResponseAgentsItemLlmConfig = core.serialization.object({
|
|
|
53
54
|
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs_1.AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs.optional()),
|
|
54
55
|
handle: AgentsSearchResponseAgentsItemLlmConfigHandle_1.AgentsSearchResponseAgentsItemLlmConfigHandle.optional(),
|
|
55
56
|
temperature: AgentsSearchResponseAgentsItemLlmConfigTemperature_1.AgentsSearchResponseAgentsItemLlmConfigTemperature.optional(),
|
|
57
|
+
maxTokens: core.serialization.property("max_tokens", AgentsSearchResponseAgentsItemLlmConfigMaxTokens_1.AgentsSearchResponseAgentsItemLlmConfigMaxTokens.optional()),
|
|
56
58
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem } from "./AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem";
|
|
8
|
+
export declare const AgentsSearchResponseAgentsItemLlmConfigMaxTokens: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemLlmConfigMaxTokens.Raw, Letta.AgentsSearchResponseAgentsItemLlmConfigMaxTokens>;
|
|
9
|
+
export declare namespace AgentsSearchResponseAgentsItemLlmConfigMaxTokens {
|
|
10
|
+
type Raw = number | (string | null | undefined) | (AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.Raw | null | undefined)[] | unknown;
|
|
11
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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.AgentsSearchResponseAgentsItemLlmConfigMaxTokens = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
const AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem_1 = require("./AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem");
|
|
42
|
+
exports.AgentsSearchResponseAgentsItemLlmConfigMaxTokens = core.serialization.undiscriminatedUnion([
|
|
43
|
+
core.serialization.number(),
|
|
44
|
+
core.serialization.string().optional(),
|
|
45
|
+
core.serialization.list(AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem_1.AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.optional()),
|
|
46
|
+
core.serialization.unknown(),
|
|
47
|
+
]);
|
|
@@ -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 AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem.Raw, Letta.AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem>;
|
|
8
|
+
export declare namespace AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem {
|
|
9
|
+
type Raw = number | (string | null | undefined);
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem = core.serialization.undiscriminatedUnion([core.serialization.number(), core.serialization.string().optional()]);
|
|
@@ -51,6 +51,8 @@ export * from "./AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs
|
|
|
51
51
|
export * from "./AgentsSearchResponseAgentsItemLlmConfigHandleItem";
|
|
52
52
|
export * from "./AgentsSearchResponseAgentsItemLlmConfigHandle";
|
|
53
53
|
export * from "./AgentsSearchResponseAgentsItemLlmConfigTemperature";
|
|
54
|
+
export * from "./AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem";
|
|
55
|
+
export * from "./AgentsSearchResponseAgentsItemLlmConfigMaxTokens";
|
|
54
56
|
export * from "./AgentsSearchResponseAgentsItemLlmConfig";
|
|
55
57
|
export * from "./AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType";
|
|
56
58
|
export * from "./AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointItem";
|
|
@@ -67,6 +67,8 @@ __exportStar(require("./AgentsSearchResponseAgentsItemLlmConfigPutInnerThoughtsI
|
|
|
67
67
|
__exportStar(require("./AgentsSearchResponseAgentsItemLlmConfigHandleItem"), exports);
|
|
68
68
|
__exportStar(require("./AgentsSearchResponseAgentsItemLlmConfigHandle"), exports);
|
|
69
69
|
__exportStar(require("./AgentsSearchResponseAgentsItemLlmConfigTemperature"), exports);
|
|
70
|
+
__exportStar(require("./AgentsSearchResponseAgentsItemLlmConfigMaxTokensItem"), exports);
|
|
71
|
+
__exportStar(require("./AgentsSearchResponseAgentsItemLlmConfigMaxTokens"), exports);
|
|
70
72
|
__exportStar(require("./AgentsSearchResponseAgentsItemLlmConfig"), exports);
|
|
71
73
|
__exportStar(require("./AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointType"), exports);
|
|
72
74
|
__exportStar(require("./AgentsSearchResponseAgentsItemEmbeddingConfigEmbeddingEndpointItem"), exports);
|
|
@@ -10,6 +10,7 @@ import { TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelWrappe
|
|
|
10
10
|
import { TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs } from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs";
|
|
11
11
|
import { TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle } from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle";
|
|
12
12
|
import { TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature } from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature";
|
|
13
|
+
import { TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens } from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens";
|
|
13
14
|
export declare const TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig: core.serialization.ObjectSchema<serializers.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig.Raw, Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig>;
|
|
14
15
|
export declare namespace TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig {
|
|
15
16
|
interface Raw {
|
|
@@ -21,5 +22,6 @@ export declare namespace TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmC
|
|
|
21
22
|
put_inner_thoughts_in_kwargs?: TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs.Raw | null;
|
|
22
23
|
handle?: TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle.Raw | null;
|
|
23
24
|
temperature?: TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature.Raw | null;
|
|
25
|
+
max_tokens?: TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.Raw | null;
|
|
24
26
|
}
|
|
25
27
|
}
|
|
@@ -44,6 +44,7 @@ const TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelWrapper_1
|
|
|
44
44
|
const TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs_1 = require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs");
|
|
45
45
|
const TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle_1 = require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle");
|
|
46
46
|
const TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature_1 = require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature");
|
|
47
|
+
const TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens_1 = require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens");
|
|
47
48
|
exports.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig = core.serialization.object({
|
|
48
49
|
model: core.serialization.string(),
|
|
49
50
|
modelEndpointType: core.serialization.property("model_endpoint_type", TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelEndpointType_1.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigModelEndpointType),
|
|
@@ -53,4 +54,5 @@ exports.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfig = core.seri
|
|
|
53
54
|
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs_1.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigPutInnerThoughtsInKwargs.optional()),
|
|
54
55
|
handle: TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle_1.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigHandle.optional(),
|
|
55
56
|
temperature: TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature_1.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigTemperature.optional(),
|
|
57
|
+
maxTokens: core.serialization.property("max_tokens", TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens_1.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.optional()),
|
|
56
58
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem } from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem";
|
|
8
|
+
export declare const TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens: core.serialization.Schema<serializers.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens.Raw, Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens>;
|
|
9
|
+
export declare namespace TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokens {
|
|
10
|
+
type Raw = number | (string | null | undefined) | (TemplatesCreateAgentsFromTemplateResponseAgentsItemLlmConfigMaxTokensItem.Raw | null | undefined)[] | unknown;
|
|
11
|
+
}
|