@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,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.57";
|
package/version.js
CHANGED