@letta-ai/letta-client 0.1.55 → 0.1.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.js +10 -10
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +7 -7
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +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/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 +10 -10
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +7 -7
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +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/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/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/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/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/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
|
@@ -0,0 +1,14 @@
|
|
|
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 { WebSearchOptionsUserLocationApproximate } from "./WebSearchOptionsUserLocationApproximate";
|
|
8
|
+
export declare const WebSearchOptionsUserLocation: core.serialization.ObjectSchema<serializers.WebSearchOptionsUserLocation.Raw, Letta.WebSearchOptionsUserLocation>;
|
|
9
|
+
export declare namespace WebSearchOptionsUserLocation {
|
|
10
|
+
interface Raw {
|
|
11
|
+
approximate: WebSearchOptionsUserLocationApproximate.Raw;
|
|
12
|
+
type: "approximate";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.WebSearchOptionsUserLocation = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const WebSearchOptionsUserLocationApproximate_1 = require("./WebSearchOptionsUserLocationApproximate");
|
|
42
|
+
exports.WebSearchOptionsUserLocation = core.serialization.object({
|
|
43
|
+
approximate: WebSearchOptionsUserLocationApproximate_1.WebSearchOptionsUserLocationApproximate,
|
|
44
|
+
type: core.serialization.stringLiteral("approximate"),
|
|
45
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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 WebSearchOptionsUserLocationApproximate: core.serialization.ObjectSchema<serializers.WebSearchOptionsUserLocationApproximate.Raw, Letta.WebSearchOptionsUserLocationApproximate>;
|
|
8
|
+
export declare namespace WebSearchOptionsUserLocationApproximate {
|
|
9
|
+
interface Raw {
|
|
10
|
+
city?: string | null;
|
|
11
|
+
country?: string | null;
|
|
12
|
+
region?: string | null;
|
|
13
|
+
timezone?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.WebSearchOptionsUserLocationApproximate = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebSearchOptionsUserLocationApproximate = core.serialization.object({
|
|
42
|
+
city: core.serialization.string().optional(),
|
|
43
|
+
country: core.serialization.string().optional(),
|
|
44
|
+
region: core.serialization.string().optional(),
|
|
45
|
+
timezone: core.serialization.string().optional(),
|
|
46
|
+
});
|
|
@@ -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";
|
|
@@ -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);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.57";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -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]);
|
|
@@ -0,0 +1,14 @@
|
|
|
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 FileFile: core.serialization.ObjectSchema<serializers.FileFile.Raw, Letta.FileFile>;
|
|
8
|
+
export declare namespace FileFile {
|
|
9
|
+
interface Raw {
|
|
10
|
+
file_data?: string | null;
|
|
11
|
+
file_id?: string | null;
|
|
12
|
+
file_name?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.FileFile = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.FileFile = core.serialization.object({
|
|
42
|
+
fileData: core.serialization.property("file_data", core.serialization.string().optional()),
|
|
43
|
+
fileId: core.serialization.property("file_id", core.serialization.string().optional()),
|
|
44
|
+
fileName: core.serialization.property("file_name", core.serialization.string().optional()),
|
|
45
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { FileFile } from "./FileFile";
|
|
8
|
+
export declare const File_: core.serialization.ObjectSchema<serializers.File_.Raw, Letta.File_>;
|
|
9
|
+
export declare namespace File_ {
|
|
10
|
+
interface Raw {
|
|
11
|
+
file: FileFile.Raw;
|
|
12
|
+
type: "file";
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.File_ = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const FileFile_1 = require("./FileFile");
|
|
42
|
+
exports.File_ = core.serialization.object({
|
|
43
|
+
file: FileFile_1.FileFile,
|
|
44
|
+
type: core.serialization.stringLiteral("file"),
|
|
45
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { WebSearchOptionsSearchContextSize } from "./WebSearchOptionsSearchContextSize";
|
|
8
|
+
import { WebSearchOptionsUserLocation } from "./WebSearchOptionsUserLocation";
|
|
9
|
+
export declare const WebSearchOptions: core.serialization.ObjectSchema<serializers.WebSearchOptions.Raw, Letta.WebSearchOptions>;
|
|
10
|
+
export declare namespace WebSearchOptions {
|
|
11
|
+
interface Raw {
|
|
12
|
+
search_context_size?: WebSearchOptionsSearchContextSize.Raw | null;
|
|
13
|
+
user_location?: WebSearchOptionsUserLocation.Raw | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.WebSearchOptions = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const WebSearchOptionsSearchContextSize_1 = require("./WebSearchOptionsSearchContextSize");
|
|
42
|
+
const WebSearchOptionsUserLocation_1 = require("./WebSearchOptionsUserLocation");
|
|
43
|
+
exports.WebSearchOptions = core.serialization.object({
|
|
44
|
+
searchContextSize: core.serialization.property("search_context_size", WebSearchOptionsSearchContextSize_1.WebSearchOptionsSearchContextSize.optional()),
|
|
45
|
+
userLocation: core.serialization.property("user_location", WebSearchOptionsUserLocation_1.WebSearchOptionsUserLocation.optional()),
|
|
46
|
+
});
|
|
@@ -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 WebSearchOptionsSearchContextSize: core.serialization.Schema<serializers.WebSearchOptionsSearchContextSize.Raw, Letta.WebSearchOptionsSearchContextSize>;
|
|
8
|
+
export declare namespace WebSearchOptionsSearchContextSize {
|
|
9
|
+
type Raw = "low" | "medium" | "high";
|
|
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.WebSearchOptionsSearchContextSize = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WebSearchOptionsSearchContextSize = core.serialization.enum_(["low", "medium", "high"]);
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { WebSearchOptionsUserLocationApproximate } from "./WebSearchOptionsUserLocationApproximate";
|
|
8
|
+
export declare const WebSearchOptionsUserLocation: core.serialization.ObjectSchema<serializers.WebSearchOptionsUserLocation.Raw, Letta.WebSearchOptionsUserLocation>;
|
|
9
|
+
export declare namespace WebSearchOptionsUserLocation {
|
|
10
|
+
interface Raw {
|
|
11
|
+
approximate: WebSearchOptionsUserLocationApproximate.Raw;
|
|
12
|
+
type: "approximate";
|
|
13
|
+
}
|
|
14
|
+
}
|