@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
|
@@ -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
|
+
});
|
|
@@ -47,5 +47,6 @@ exports.Identity = core.serialization.object({
|
|
|
47
47
|
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
|
|
48
48
|
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
49
49
|
agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string())),
|
|
50
|
+
blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string())),
|
|
50
51
|
properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
|
|
51
52
|
});
|
|
@@ -46,5 +46,6 @@ exports.IdentityCreate = core.serialization.object({
|
|
|
46
46
|
identityType: core.serialization.property("identity_type", IdentityType_1.IdentityType),
|
|
47
47
|
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
48
48
|
agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
49
|
+
blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string()).optional()),
|
|
49
50
|
properties: core.serialization.list(IdentityProperty_1.IdentityProperty).optional(),
|
|
50
51
|
});
|
|
@@ -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
|
+
}
|
|
@@ -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/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.58";
|
package/version.js
CHANGED