@letta-ai/letta-client 0.1.56 → 0.1.58
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 +13 -13
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/blocks/client/Client.js +18 -7
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +11 -11
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/ChatCompletionUserMessageParamContentItem.d.ts +1 -1
- package/api/types/CompletionCreateParamsNonStreaming.d.ts +1 -0
- package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/api/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +1 -1
- package/api/types/CompletionCreateParamsStreaming.d.ts +1 -0
- package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/api/types/CompletionCreateParamsStreamingResponseFormat.d.ts +1 -1
- package/api/types/FileFile.d.ts +8 -0
- package/api/types/FileFile.js +5 -0
- package/api/types/File_.d.ts +8 -0
- package/api/types/File_.js +5 -0
- package/api/types/Identity.d.ts +2 -0
- package/api/types/IdentityCreate.d.ts +2 -0
- package/api/types/WebSearchOptions.d.ts +8 -0
- package/api/types/WebSearchOptions.js +5 -0
- package/api/types/WebSearchOptionsSearchContextSize.d.ts +9 -0
- package/api/types/WebSearchOptionsSearchContextSize.js +11 -0
- package/api/types/WebSearchOptionsUserLocation.d.ts +8 -0
- package/api/types/WebSearchOptionsUserLocation.js +5 -0
- package/api/types/WebSearchOptionsUserLocationApproximate.d.ts +9 -0
- package/api/types/WebSearchOptionsUserLocationApproximate.js +5 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/api/resources/agents/client/Client.js +13 -13
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/blocks/client/Client.js +18 -7
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/ChatCompletionUserMessageParamContentItem.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsNonStreaming.d.ts +1 -0
- package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsStreaming.d.ts +1 -0
- package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsStreamingResponseFormat.d.ts +1 -1
- package/dist/api/types/FileFile.d.ts +8 -0
- package/dist/api/types/FileFile.js +5 -0
- package/dist/api/types/File_.d.ts +8 -0
- package/dist/api/types/File_.js +5 -0
- package/dist/api/types/Identity.d.ts +2 -0
- package/dist/api/types/IdentityCreate.d.ts +2 -0
- package/dist/api/types/WebSearchOptions.d.ts +8 -0
- package/dist/api/types/WebSearchOptions.js +5 -0
- package/dist/api/types/WebSearchOptionsSearchContextSize.d.ts +9 -0
- package/dist/api/types/WebSearchOptionsSearchContextSize.js +11 -0
- package/dist/api/types/WebSearchOptionsUserLocation.d.ts +8 -0
- package/dist/api/types/WebSearchOptionsUserLocation.js +5 -0
- package/dist/api/types/WebSearchOptionsUserLocationApproximate.d.ts +9 -0
- package/dist/api/types/WebSearchOptionsUserLocationApproximate.js +5 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +2 -1
- package/dist/serialization/types/ChatCompletionUserMessageParamContentItem.js +2 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +3 -0
- package/dist/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +2 -2
- package/dist/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.js +2 -2
- package/dist/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
- package/dist/serialization/types/CompletionCreateParamsStreaming.js +2 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +3 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingResponseFormat.d.ts +2 -2
- package/dist/serialization/types/CompletionCreateParamsStreamingResponseFormat.js +2 -2
- package/dist/serialization/types/FileFile.d.ts +14 -0
- package/dist/serialization/types/FileFile.js +45 -0
- package/dist/serialization/types/File_.d.ts +14 -0
- package/dist/serialization/types/File_.js +45 -0
- package/dist/serialization/types/Identity.d.ts +1 -0
- package/dist/serialization/types/Identity.js +1 -0
- package/dist/serialization/types/IdentityCreate.d.ts +1 -0
- package/dist/serialization/types/IdentityCreate.js +1 -0
- package/dist/serialization/types/WebSearchOptions.d.ts +15 -0
- package/dist/serialization/types/WebSearchOptions.js +46 -0
- package/dist/serialization/types/WebSearchOptionsSearchContextSize.d.ts +10 -0
- package/dist/serialization/types/WebSearchOptionsSearchContextSize.js +41 -0
- package/dist/serialization/types/WebSearchOptionsUserLocation.d.ts +14 -0
- package/dist/serialization/types/WebSearchOptionsUserLocation.js +45 -0
- package/dist/serialization/types/WebSearchOptionsUserLocationApproximate.d.ts +15 -0
- package/dist/serialization/types/WebSearchOptionsUserLocationApproximate.js +46 -0
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/serialization/types/ChatCompletionUserMessageParamContentItem.d.ts +2 -1
- package/serialization/types/ChatCompletionUserMessageParamContentItem.js +2 -0
- package/serialization/types/CompletionCreateParamsNonStreaming.d.ts +2 -0
- package/serialization/types/CompletionCreateParamsNonStreaming.js +2 -0
- package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsNonStreamingModel.js +3 -0
- package/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.d.ts +2 -2
- package/serialization/types/CompletionCreateParamsNonStreamingResponseFormat.js +2 -2
- package/serialization/types/CompletionCreateParamsStreaming.d.ts +2 -0
- package/serialization/types/CompletionCreateParamsStreaming.js +2 -0
- package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsStreamingModel.js +3 -0
- package/serialization/types/CompletionCreateParamsStreamingResponseFormat.d.ts +2 -2
- package/serialization/types/CompletionCreateParamsStreamingResponseFormat.js +2 -2
- package/serialization/types/FileFile.d.ts +14 -0
- package/serialization/types/FileFile.js +45 -0
- package/serialization/types/File_.d.ts +14 -0
- package/serialization/types/File_.js +45 -0
- package/serialization/types/Identity.d.ts +1 -0
- package/serialization/types/Identity.js +1 -0
- package/serialization/types/IdentityCreate.d.ts +1 -0
- package/serialization/types/IdentityCreate.js +1 -0
- package/serialization/types/WebSearchOptions.d.ts +15 -0
- package/serialization/types/WebSearchOptions.js +46 -0
- package/serialization/types/WebSearchOptionsSearchContextSize.d.ts +10 -0
- package/serialization/types/WebSearchOptionsSearchContextSize.js +41 -0
- package/serialization/types/WebSearchOptionsUserLocation.d.ts +14 -0
- package/serialization/types/WebSearchOptionsUserLocation.js +45 -0
- package/serialization/types/WebSearchOptionsUserLocationApproximate.d.ts +15 -0
- package/serialization/types/WebSearchOptionsUserLocationApproximate.js +46 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "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,
|
|
@@ -81,7 +81,7 @@ class Voice {
|
|
|
81
81
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
82
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice/${encodeURIComponent(agentId)}/chat/completions`),
|
|
83
83
|
method: "POST",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.58", "User-Agent": "@letta-ai/letta-client/0.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export type ChatCompletionUserMessageParamContentItem = Letta.ChatCompletionContentPartTextParam | Letta.ChatCompletionContentPartImageParam | Letta.ChatCompletionContentPartInputAudioParam;
|
|
5
|
+
export type ChatCompletionUserMessageParamContentItem = Letta.ChatCompletionContentPartTextParam | Letta.ChatCompletionContentPartImageParam | Letta.ChatCompletionContentPartInputAudioParam | Letta.File_;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CompletionCreateParamsNonStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
4
|
+
export type CompletionCreateParamsNonStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "computer-use-preview" | "computer-use-preview-2025-02-04" | "computer-use-preview-2025-03-11" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export type CompletionCreateParamsNonStreamingResponseFormat = Letta.ResponseFormatText | Letta.
|
|
5
|
+
export type CompletionCreateParamsNonStreamingResponseFormat = Letta.ResponseFormatText | Letta.ResponseFormatJsonSchema | Letta.ResponseFormatJsonObject;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type CompletionCreateParamsStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
4
|
+
export type CompletionCreateParamsStreamingModel = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "computer-use-preview" | "computer-use-preview-2025-02-04" | "computer-use-preview-2025-03-11" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
|
-
export type CompletionCreateParamsStreamingResponseFormat = Letta.ResponseFormatText | Letta.
|
|
5
|
+
export type CompletionCreateParamsStreamingResponseFormat = Letta.ResponseFormatText | Letta.ResponseFormatJsonSchema | Letta.ResponseFormatJsonObject;
|
|
@@ -15,6 +15,8 @@ export interface Identity {
|
|
|
15
15
|
projectId?: string;
|
|
16
16
|
/** The IDs of the agents associated with the identity. */
|
|
17
17
|
agentIds: string[];
|
|
18
|
+
/** The IDs of the blocks associated with the identity. */
|
|
19
|
+
blockIds: string[];
|
|
18
20
|
/** List of properties associated with the identity */
|
|
19
21
|
properties?: Letta.IdentityProperty[];
|
|
20
22
|
}
|
|
@@ -13,6 +13,8 @@ export interface IdentityCreate {
|
|
|
13
13
|
projectId?: string;
|
|
14
14
|
/** The agent ids that are associated with the identity. */
|
|
15
15
|
agentIds?: string[];
|
|
16
|
+
/** The IDs of the blocks associated with the identity. */
|
|
17
|
+
blockIds?: string[];
|
|
16
18
|
/** List of properties associated with the identity. */
|
|
17
19
|
properties?: Letta.IdentityProperty[];
|
|
18
20
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface WebSearchOptions {
|
|
6
|
+
searchContextSize?: Letta.WebSearchOptionsSearchContextSize;
|
|
7
|
+
userLocation?: Letta.WebSearchOptionsUserLocation;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type WebSearchOptionsSearchContextSize = "low" | "medium" | "high";
|
|
5
|
+
export declare const WebSearchOptionsSearchContextSize: {
|
|
6
|
+
readonly Low: "low";
|
|
7
|
+
readonly Medium: "medium";
|
|
8
|
+
readonly High: "high";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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.WebSearchOptionsSearchContextSize = void 0;
|
|
7
|
+
exports.WebSearchOptionsSearchContextSize = {
|
|
8
|
+
Low: "low",
|
|
9
|
+
Medium: "medium",
|
|
10
|
+
High: "high",
|
|
11
|
+
};
|
|
@@ -76,6 +76,8 @@ export * from "./CreateBlock";
|
|
|
76
76
|
export * from "./E2BSandboxConfig";
|
|
77
77
|
export * from "./EmbeddingConfigEmbeddingEndpointType";
|
|
78
78
|
export * from "./EmbeddingConfig";
|
|
79
|
+
export * from "./File_";
|
|
80
|
+
export * from "./FileFile";
|
|
79
81
|
export * from "./FileMetadata";
|
|
80
82
|
export * from "./FunctionOutput";
|
|
81
83
|
export * from "./FunctionCall";
|
|
@@ -164,6 +166,10 @@ export * from "./UserMessage";
|
|
|
164
166
|
export * from "./UserUpdate";
|
|
165
167
|
export * from "./ValidationErrorLocItem";
|
|
166
168
|
export * from "./ValidationError";
|
|
169
|
+
export * from "./WebSearchOptionsSearchContextSize";
|
|
170
|
+
export * from "./WebSearchOptions";
|
|
171
|
+
export * from "./WebSearchOptionsUserLocation";
|
|
172
|
+
export * from "./WebSearchOptionsUserLocationApproximate";
|
|
167
173
|
export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
|
|
168
174
|
export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
|
|
169
175
|
export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
|
package/dist/api/types/index.js
CHANGED
|
@@ -92,6 +92,8 @@ __exportStar(require("./CreateBlock"), exports);
|
|
|
92
92
|
__exportStar(require("./E2BSandboxConfig"), exports);
|
|
93
93
|
__exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
|
|
94
94
|
__exportStar(require("./EmbeddingConfig"), exports);
|
|
95
|
+
__exportStar(require("./File_"), exports);
|
|
96
|
+
__exportStar(require("./FileFile"), exports);
|
|
95
97
|
__exportStar(require("./FileMetadata"), exports);
|
|
96
98
|
__exportStar(require("./FunctionOutput"), exports);
|
|
97
99
|
__exportStar(require("./FunctionCall"), exports);
|
|
@@ -180,6 +182,10 @@ __exportStar(require("./UserMessage"), exports);
|
|
|
180
182
|
__exportStar(require("./UserUpdate"), exports);
|
|
181
183
|
__exportStar(require("./ValidationErrorLocItem"), exports);
|
|
182
184
|
__exportStar(require("./ValidationError"), exports);
|
|
185
|
+
__exportStar(require("./WebSearchOptionsSearchContextSize"), exports);
|
|
186
|
+
__exportStar(require("./WebSearchOptions"), exports);
|
|
187
|
+
__exportStar(require("./WebSearchOptionsUserLocation"), exports);
|
|
188
|
+
__exportStar(require("./WebSearchOptionsUserLocationApproximate"), exports);
|
|
183
189
|
__exportStar(require("./OpenaiTypesChatChatCompletionMessageToolCallParamFunction"), exports);
|
|
184
190
|
__exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction"), exports);
|
|
185
191
|
__exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports);
|
|
@@ -45,5 +45,6 @@ exports.IdentityUpdate = core.serialization.object({
|
|
|
45
45
|
name: core.serialization.string().optional(),
|
|
46
46
|
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType.optional()),
|
|
47
47
|
agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
48
|
+
blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
48
49
|
properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
|
|
49
50
|
});
|
|
@@ -7,7 +7,8 @@ import * as core from "../../core";
|
|
|
7
7
|
import { ChatCompletionContentPartTextParam } from "./ChatCompletionContentPartTextParam";
|
|
8
8
|
import { ChatCompletionContentPartImageParam } from "./ChatCompletionContentPartImageParam";
|
|
9
9
|
import { ChatCompletionContentPartInputAudioParam } from "./ChatCompletionContentPartInputAudioParam";
|
|
10
|
+
import { File_ } from "./File_";
|
|
10
11
|
export declare const ChatCompletionUserMessageParamContentItem: core.serialization.Schema<serializers.ChatCompletionUserMessageParamContentItem.Raw, Letta.ChatCompletionUserMessageParamContentItem>;
|
|
11
12
|
export declare namespace ChatCompletionUserMessageParamContentItem {
|
|
12
|
-
type Raw = ChatCompletionContentPartTextParam.Raw | ChatCompletionContentPartImageParam.Raw | ChatCompletionContentPartInputAudioParam.Raw;
|
|
13
|
+
type Raw = ChatCompletionContentPartTextParam.Raw | ChatCompletionContentPartImageParam.Raw | ChatCompletionContentPartInputAudioParam.Raw | File_.Raw;
|
|
13
14
|
}
|
|
@@ -41,8 +41,10 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const ChatCompletionContentPartTextParam_1 = require("./ChatCompletionContentPartTextParam");
|
|
42
42
|
const ChatCompletionContentPartImageParam_1 = require("./ChatCompletionContentPartImageParam");
|
|
43
43
|
const ChatCompletionContentPartInputAudioParam_1 = require("./ChatCompletionContentPartInputAudioParam");
|
|
44
|
+
const File_1 = require("./File_");
|
|
44
45
|
exports.ChatCompletionUserMessageParamContentItem = core.serialization.undiscriminatedUnion([
|
|
45
46
|
ChatCompletionContentPartTextParam_1.ChatCompletionContentPartTextParam,
|
|
46
47
|
ChatCompletionContentPartImageParam_1.ChatCompletionContentPartImageParam,
|
|
47
48
|
ChatCompletionContentPartInputAudioParam_1.ChatCompletionContentPartInputAudioParam,
|
|
49
|
+
File_1.File_,
|
|
48
50
|
]);
|
|
@@ -18,6 +18,7 @@ import { CompletionCreateParamsNonStreamingStop } from "./CompletionCreateParams
|
|
|
18
18
|
import { ChatCompletionStreamOptionsParam } from "./ChatCompletionStreamOptionsParam";
|
|
19
19
|
import { CompletionCreateParamsNonStreamingToolChoice } from "./CompletionCreateParamsNonStreamingToolChoice";
|
|
20
20
|
import { ChatCompletionToolParam } from "./ChatCompletionToolParam";
|
|
21
|
+
import { WebSearchOptions } from "./WebSearchOptions";
|
|
21
22
|
export declare const CompletionCreateParamsNonStreaming: core.serialization.ObjectSchema<serializers.CompletionCreateParamsNonStreaming.Raw, Letta.CompletionCreateParamsNonStreaming>;
|
|
22
23
|
export declare namespace CompletionCreateParamsNonStreaming {
|
|
23
24
|
interface Raw {
|
|
@@ -50,6 +51,7 @@ export declare namespace CompletionCreateParamsNonStreaming {
|
|
|
50
51
|
top_logprobs?: number | null;
|
|
51
52
|
top_p?: number | null;
|
|
52
53
|
user?: string | null;
|
|
54
|
+
web_search_options?: WebSearchOptions.Raw | null;
|
|
53
55
|
stream?: boolean | null;
|
|
54
56
|
}
|
|
55
57
|
}
|
|
@@ -52,6 +52,7 @@ const CompletionCreateParamsNonStreamingStop_1 = require("./CompletionCreatePara
|
|
|
52
52
|
const ChatCompletionStreamOptionsParam_1 = require("./ChatCompletionStreamOptionsParam");
|
|
53
53
|
const CompletionCreateParamsNonStreamingToolChoice_1 = require("./CompletionCreateParamsNonStreamingToolChoice");
|
|
54
54
|
const ChatCompletionToolParam_1 = require("./ChatCompletionToolParam");
|
|
55
|
+
const WebSearchOptions_1 = require("./WebSearchOptions");
|
|
55
56
|
exports.CompletionCreateParamsNonStreaming = core.serialization.object({
|
|
56
57
|
messages: core.serialization.list(CompletionCreateParamsNonStreamingMessagesItem_1.CompletionCreateParamsNonStreamingMessagesItem),
|
|
57
58
|
model: CompletionCreateParamsNonStreamingModel_1.CompletionCreateParamsNonStreamingModel,
|
|
@@ -82,5 +83,6 @@ exports.CompletionCreateParamsNonStreaming = core.serialization.object({
|
|
|
82
83
|
topLogprobs: core.serialization.property("top_logprobs", core.serialization.number().optional()),
|
|
83
84
|
topP: core.serialization.property("top_p", core.serialization.number().optional()),
|
|
84
85
|
user: core.serialization.string().optional(),
|
|
86
|
+
webSearchOptions: core.serialization.property("web_search_options", WebSearchOptions_1.WebSearchOptions.optional()),
|
|
85
87
|
stream: core.serialization.boolean().optional(),
|
|
86
88
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsNonStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingModel.Raw, Letta.CompletionCreateParamsNonStreamingModel>;
|
|
8
8
|
export declare namespace CompletionCreateParamsNonStreamingModel {
|
|
9
|
-
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
9
|
+
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "computer-use-preview" | "computer-use-preview-2025-02-04" | "computer-use-preview-2025-03-11" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
10
10
|
}
|
|
@@ -48,6 +48,9 @@ exports.CompletionCreateParamsNonStreamingModel = core.serialization.undiscrimin
|
|
|
48
48
|
core.serialization.stringLiteral("o1-preview-2024-09-12"),
|
|
49
49
|
core.serialization.stringLiteral("o1-mini"),
|
|
50
50
|
core.serialization.stringLiteral("o1-mini-2024-09-12"),
|
|
51
|
+
core.serialization.stringLiteral("computer-use-preview"),
|
|
52
|
+
core.serialization.stringLiteral("computer-use-preview-2025-02-04"),
|
|
53
|
+
core.serialization.stringLiteral("computer-use-preview-2025-03-11"),
|
|
51
54
|
core.serialization.stringLiteral("gpt-4.5-preview"),
|
|
52
55
|
core.serialization.stringLiteral("gpt-4.5-preview-2025-02-27"),
|
|
53
56
|
core.serialization.stringLiteral("gpt-4o"),
|
|
@@ -5,9 +5,9 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ResponseFormatText } from "./ResponseFormatText";
|
|
8
|
-
import { ResponseFormatJsonObject } from "./ResponseFormatJsonObject";
|
|
9
8
|
import { ResponseFormatJsonSchema } from "./ResponseFormatJsonSchema";
|
|
9
|
+
import { ResponseFormatJsonObject } from "./ResponseFormatJsonObject";
|
|
10
10
|
export declare const CompletionCreateParamsNonStreamingResponseFormat: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingResponseFormat.Raw, Letta.CompletionCreateParamsNonStreamingResponseFormat>;
|
|
11
11
|
export declare namespace CompletionCreateParamsNonStreamingResponseFormat {
|
|
12
|
-
type Raw = ResponseFormatText.Raw |
|
|
12
|
+
type Raw = ResponseFormatText.Raw | ResponseFormatJsonSchema.Raw | ResponseFormatJsonObject.Raw;
|
|
13
13
|
}
|
|
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.CompletionCreateParamsNonStreamingResponseFormat = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ResponseFormatText_1 = require("./ResponseFormatText");
|
|
42
|
-
const ResponseFormatJsonObject_1 = require("./ResponseFormatJsonObject");
|
|
43
42
|
const ResponseFormatJsonSchema_1 = require("./ResponseFormatJsonSchema");
|
|
44
|
-
|
|
43
|
+
const ResponseFormatJsonObject_1 = require("./ResponseFormatJsonObject");
|
|
44
|
+
exports.CompletionCreateParamsNonStreamingResponseFormat = core.serialization.undiscriminatedUnion([ResponseFormatText_1.ResponseFormatText, ResponseFormatJsonSchema_1.ResponseFormatJsonSchema, ResponseFormatJsonObject_1.ResponseFormatJsonObject]);
|
|
@@ -18,6 +18,7 @@ import { CompletionCreateParamsStreamingStop } from "./CompletionCreateParamsStr
|
|
|
18
18
|
import { ChatCompletionStreamOptionsParam } from "./ChatCompletionStreamOptionsParam";
|
|
19
19
|
import { CompletionCreateParamsStreamingToolChoice } from "./CompletionCreateParamsStreamingToolChoice";
|
|
20
20
|
import { ChatCompletionToolParam } from "./ChatCompletionToolParam";
|
|
21
|
+
import { WebSearchOptions } from "./WebSearchOptions";
|
|
21
22
|
export declare const CompletionCreateParamsStreaming: core.serialization.ObjectSchema<serializers.CompletionCreateParamsStreaming.Raw, Letta.CompletionCreateParamsStreaming>;
|
|
22
23
|
export declare namespace CompletionCreateParamsStreaming {
|
|
23
24
|
interface Raw {
|
|
@@ -50,6 +51,7 @@ export declare namespace CompletionCreateParamsStreaming {
|
|
|
50
51
|
top_logprobs?: number | null;
|
|
51
52
|
top_p?: number | null;
|
|
52
53
|
user?: string | null;
|
|
54
|
+
web_search_options?: WebSearchOptions.Raw | null;
|
|
53
55
|
stream: boolean;
|
|
54
56
|
}
|
|
55
57
|
}
|
|
@@ -52,6 +52,7 @@ const CompletionCreateParamsStreamingStop_1 = require("./CompletionCreateParamsS
|
|
|
52
52
|
const ChatCompletionStreamOptionsParam_1 = require("./ChatCompletionStreamOptionsParam");
|
|
53
53
|
const CompletionCreateParamsStreamingToolChoice_1 = require("./CompletionCreateParamsStreamingToolChoice");
|
|
54
54
|
const ChatCompletionToolParam_1 = require("./ChatCompletionToolParam");
|
|
55
|
+
const WebSearchOptions_1 = require("./WebSearchOptions");
|
|
55
56
|
exports.CompletionCreateParamsStreaming = core.serialization.object({
|
|
56
57
|
messages: core.serialization.list(CompletionCreateParamsStreamingMessagesItem_1.CompletionCreateParamsStreamingMessagesItem),
|
|
57
58
|
model: CompletionCreateParamsStreamingModel_1.CompletionCreateParamsStreamingModel,
|
|
@@ -82,5 +83,6 @@ exports.CompletionCreateParamsStreaming = core.serialization.object({
|
|
|
82
83
|
topLogprobs: core.serialization.property("top_logprobs", core.serialization.number().optional()),
|
|
83
84
|
topP: core.serialization.property("top_p", core.serialization.number().optional()),
|
|
84
85
|
user: core.serialization.string().optional(),
|
|
86
|
+
webSearchOptions: core.serialization.property("web_search_options", WebSearchOptions_1.WebSearchOptions.optional()),
|
|
85
87
|
stream: core.serialization.boolean(),
|
|
86
88
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
|
|
8
8
|
export declare namespace CompletionCreateParamsStreamingModel {
|
|
9
|
-
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
9
|
+
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "computer-use-preview" | "computer-use-preview-2025-02-04" | "computer-use-preview-2025-03-11" | "gpt-4.5-preview" | "gpt-4.5-preview-2025-02-27" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
10
10
|
}
|
|
@@ -48,6 +48,9 @@ exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminate
|
|
|
48
48
|
core.serialization.stringLiteral("o1-preview-2024-09-12"),
|
|
49
49
|
core.serialization.stringLiteral("o1-mini"),
|
|
50
50
|
core.serialization.stringLiteral("o1-mini-2024-09-12"),
|
|
51
|
+
core.serialization.stringLiteral("computer-use-preview"),
|
|
52
|
+
core.serialization.stringLiteral("computer-use-preview-2025-02-04"),
|
|
53
|
+
core.serialization.stringLiteral("computer-use-preview-2025-03-11"),
|
|
51
54
|
core.serialization.stringLiteral("gpt-4.5-preview"),
|
|
52
55
|
core.serialization.stringLiteral("gpt-4.5-preview-2025-02-27"),
|
|
53
56
|
core.serialization.stringLiteral("gpt-4o"),
|
|
@@ -5,9 +5,9 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { ResponseFormatText } from "./ResponseFormatText";
|
|
8
|
-
import { ResponseFormatJsonObject } from "./ResponseFormatJsonObject";
|
|
9
8
|
import { ResponseFormatJsonSchema } from "./ResponseFormatJsonSchema";
|
|
9
|
+
import { ResponseFormatJsonObject } from "./ResponseFormatJsonObject";
|
|
10
10
|
export declare const CompletionCreateParamsStreamingResponseFormat: core.serialization.Schema<serializers.CompletionCreateParamsStreamingResponseFormat.Raw, Letta.CompletionCreateParamsStreamingResponseFormat>;
|
|
11
11
|
export declare namespace CompletionCreateParamsStreamingResponseFormat {
|
|
12
|
-
type Raw = ResponseFormatText.Raw |
|
|
12
|
+
type Raw = ResponseFormatText.Raw | ResponseFormatJsonSchema.Raw | ResponseFormatJsonObject.Raw;
|
|
13
13
|
}
|
|
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.CompletionCreateParamsStreamingResponseFormat = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const ResponseFormatText_1 = require("./ResponseFormatText");
|
|
42
|
-
const ResponseFormatJsonObject_1 = require("./ResponseFormatJsonObject");
|
|
43
42
|
const ResponseFormatJsonSchema_1 = require("./ResponseFormatJsonSchema");
|
|
44
|
-
|
|
43
|
+
const ResponseFormatJsonObject_1 = require("./ResponseFormatJsonObject");
|
|
44
|
+
exports.CompletionCreateParamsStreamingResponseFormat = core.serialization.undiscriminatedUnion([ResponseFormatText_1.ResponseFormatText, ResponseFormatJsonSchema_1.ResponseFormatJsonSchema, ResponseFormatJsonObject_1.ResponseFormatJsonObject]);
|