@letta-ai/letta-client 0.1.148 → 0.1.149
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.d.ts +0 -15
- package/api/resources/agents/client/Client.js +11 -86
- 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/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +15 -0
- package/api/resources/agents/resources/messages/client/Client.js +81 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.d.ts +2 -1
- package/api/resources/blocks/resources/agents/client/Client.js +15 -3
- package/api/resources/blocks/resources/agents/client/index.d.ts +1 -1
- package/api/resources/blocks/resources/agents/client/index.js +15 -0
- package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +13 -0
- package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.js +5 -0
- package/api/resources/blocks/resources/agents/client/requests/index.d.ts +1 -0
- package/api/resources/blocks/resources/agents/client/requests/index.js +2 -0
- package/api/resources/blocks/resources/index.d.ts +1 -0
- package/api/resources/blocks/resources/index.js +4 -0
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.d.ts +17 -0
- package/api/resources/sources/client/Client.js +80 -8
- 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/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +19 -19
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/FileMetadata.d.ts +4 -0
- package/api/types/FileStats.d.ts +14 -0
- package/api/types/FileStats.js +5 -0
- package/api/types/LlmConfig.d.ts +2 -0
- package/api/types/OrganizationSourcesStats.d.ts +17 -0
- package/api/types/OrganizationSourcesStats.js +5 -0
- package/api/types/SourceStats.d.ts +19 -0
- package/api/types/SourceStats.js +5 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/agents/client/Client.d.ts +0 -15
- package/dist/api/resources/agents/client/Client.js +11 -86
- 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/groups/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.d.ts +15 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +81 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +2 -1
- package/dist/api/resources/blocks/resources/agents/client/Client.js +15 -3
- package/dist/api/resources/blocks/resources/agents/client/index.d.ts +1 -1
- package/dist/api/resources/blocks/resources/agents/client/index.js +15 -0
- package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +13 -0
- package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.js +5 -0
- package/dist/api/resources/blocks/resources/agents/client/requests/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/agents/client/requests/index.js +2 -0
- package/dist/api/resources/blocks/resources/index.d.ts +1 -0
- package/dist/api/resources/blocks/resources/index.js +4 -0
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.d.ts +17 -0
- package/dist/api/resources/sources/client/Client.js +80 -8
- 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/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +19 -19
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/FileMetadata.d.ts +4 -0
- package/dist/api/types/FileStats.d.ts +14 -0
- package/dist/api/types/FileStats.js +5 -0
- package/dist/api/types/LlmConfig.d.ts +2 -0
- package/dist/api/types/OrganizationSourcesStats.d.ts +17 -0
- package/dist/api/types/OrganizationSourcesStats.js +5 -0
- package/dist/api/types/SourceStats.d.ts +19 -0
- package/dist/api/types/SourceStats.js +5 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/agents/client/index.d.ts +0 -1
- package/dist/serialization/resources/agents/client/index.js +1 -2
- package/dist/serialization/resources/agents/{client/cancelAgentRun.d.ts → resources/messages/client/cancel.d.ts} +4 -4
- package/dist/serialization/resources/agents/{client/cancelAgentRun.js → resources/messages/client/cancel.js} +1 -1
- package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/client/index.js +2 -1
- package/dist/serialization/types/FileMetadata.d.ts +2 -0
- package/dist/serialization/types/FileMetadata.js +2 -0
- package/dist/serialization/types/FileStats.d.ts +14 -0
- package/dist/serialization/types/FileStats.js +45 -0
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/serialization/types/OrganizationSourcesStats.d.ts +16 -0
- package/dist/serialization/types/OrganizationSourcesStats.js +47 -0
- package/dist/serialization/types/SourceStats.d.ts +17 -0
- package/dist/serialization/types/SourceStats.js +48 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +143 -74
- package/serialization/resources/agents/client/index.d.ts +0 -1
- package/serialization/resources/agents/client/index.js +1 -2
- package/serialization/resources/agents/{client/cancelAgentRun.d.ts → resources/messages/client/cancel.d.ts} +4 -4
- package/serialization/resources/agents/{client/cancelAgentRun.js → resources/messages/client/cancel.js} +1 -1
- package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/client/index.js +2 -1
- package/serialization/types/FileMetadata.d.ts +2 -0
- package/serialization/types/FileMetadata.js +2 -0
- package/serialization/types/FileStats.d.ts +14 -0
- package/serialization/types/FileStats.js +45 -0
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/OrganizationSourcesStats.d.ts +16 -0
- package/serialization/types/OrganizationSourcesStats.js +47 -0
- package/serialization/types/SourceStats.d.ts +17 -0
- package/serialization/types/SourceStats.js +48 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -95,6 +95,7 @@ export * from "./File_";
|
|
|
95
95
|
export * from "./FileFile";
|
|
96
96
|
export * from "./FileMetadata";
|
|
97
97
|
export * from "./FileProcessingStatus";
|
|
98
|
+
export * from "./FileStats";
|
|
98
99
|
export * from "./FunctionOutput";
|
|
99
100
|
export * from "./FunctionCall";
|
|
100
101
|
export * from "./FunctionDefinitionInput";
|
|
@@ -153,6 +154,7 @@ export * from "./MessageType";
|
|
|
153
154
|
export * from "./OmittedReasoningContent";
|
|
154
155
|
export * from "./Organization";
|
|
155
156
|
export * from "./OrganizationCreate";
|
|
157
|
+
export * from "./OrganizationSourcesStats";
|
|
156
158
|
export * from "./OrganizationUpdate";
|
|
157
159
|
export * from "./ParameterProperties";
|
|
158
160
|
export * from "./ParametersSchema";
|
|
@@ -188,6 +190,7 @@ export * from "./SandboxType";
|
|
|
188
190
|
export * from "./SleeptimeManager";
|
|
189
191
|
export * from "./SleeptimeManagerUpdate";
|
|
190
192
|
export * from "./Source";
|
|
193
|
+
export * from "./SourceStats";
|
|
191
194
|
export * from "./StdioServerConfig";
|
|
192
195
|
export * from "./StepFeedback";
|
|
193
196
|
export * from "./Step";
|
package/dist/api/types/index.js
CHANGED
|
@@ -111,6 +111,7 @@ __exportStar(require("./File_"), exports);
|
|
|
111
111
|
__exportStar(require("./FileFile"), exports);
|
|
112
112
|
__exportStar(require("./FileMetadata"), exports);
|
|
113
113
|
__exportStar(require("./FileProcessingStatus"), exports);
|
|
114
|
+
__exportStar(require("./FileStats"), exports);
|
|
114
115
|
__exportStar(require("./FunctionOutput"), exports);
|
|
115
116
|
__exportStar(require("./FunctionCall"), exports);
|
|
116
117
|
__exportStar(require("./FunctionDefinitionInput"), exports);
|
|
@@ -169,6 +170,7 @@ __exportStar(require("./MessageType"), exports);
|
|
|
169
170
|
__exportStar(require("./OmittedReasoningContent"), exports);
|
|
170
171
|
__exportStar(require("./Organization"), exports);
|
|
171
172
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
173
|
+
__exportStar(require("./OrganizationSourcesStats"), exports);
|
|
172
174
|
__exportStar(require("./OrganizationUpdate"), exports);
|
|
173
175
|
__exportStar(require("./ParameterProperties"), exports);
|
|
174
176
|
__exportStar(require("./ParametersSchema"), exports);
|
|
@@ -204,6 +206,7 @@ __exportStar(require("./SandboxType"), exports);
|
|
|
204
206
|
__exportStar(require("./SleeptimeManager"), exports);
|
|
205
207
|
__exportStar(require("./SleeptimeManagerUpdate"), exports);
|
|
206
208
|
__exportStar(require("./Source"), exports);
|
|
209
|
+
__exportStar(require("./SourceStats"), exports);
|
|
207
210
|
__exportStar(require("./StdioServerConfig"), exports);
|
|
208
211
|
__exportStar(require("./StepFeedback"), exports);
|
|
209
212
|
__exportStar(require("./Step"), exports);
|
|
@@ -36,10 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.closeAllOpenFiles = exports.exportFile = exports.count = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
41
|
exports.count = __importStar(require("./count"));
|
|
42
42
|
exports.exportFile = __importStar(require("./exportFile"));
|
|
43
43
|
exports.closeAllOpenFiles = __importStar(require("./closeAllOpenFiles"));
|
|
44
|
-
exports.cancelAgentRun = __importStar(require("./cancelAgentRun"));
|
|
45
44
|
__exportStar(require("./requests"), exports);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as serializers from "
|
|
5
|
-
import * as core from "
|
|
6
|
-
export declare const Request: core.serialization.Schema<serializers.agents.
|
|
4
|
+
import * as serializers from "../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare const Request: core.serialization.Schema<serializers.agents.messages.cancel.Request.Raw, string[] | undefined>;
|
|
7
7
|
export declare namespace Request {
|
|
8
8
|
type Raw = string[] | null | undefined;
|
|
9
9
|
}
|
|
10
|
-
export declare const Response: core.serialization.Schema<serializers.agents.
|
|
10
|
+
export declare const Response: core.serialization.Schema<serializers.agents.messages.cancel.Response.Raw, Record<string, unknown>>;
|
|
11
11
|
export declare namespace Response {
|
|
12
12
|
type Raw = Record<string, unknown>;
|
|
13
13
|
}
|
|
@@ -37,6 +37,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Response = exports.Request = void 0;
|
|
40
|
-
const core = __importStar(require("
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
41
|
exports.Request = core.serialization.list(core.serialization.string()).optional();
|
|
42
42
|
exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
|
|
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.list = void 0;
|
|
39
|
+
exports.cancel = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
exports.cancel = __importStar(require("./cancel"));
|
|
41
42
|
__exportStar(require("./requests"), exports);
|
|
@@ -19,6 +19,8 @@ export declare namespace FileMetadata {
|
|
|
19
19
|
file_last_modified_date?: string | null;
|
|
20
20
|
processing_status?: FileProcessingStatus.Raw | null;
|
|
21
21
|
error_message?: string | null;
|
|
22
|
+
total_chunks?: number | null;
|
|
23
|
+
chunks_embedded?: number | null;
|
|
22
24
|
created_at?: string | null;
|
|
23
25
|
updated_at?: string | null;
|
|
24
26
|
is_deleted?: boolean | null;
|
|
@@ -51,6 +51,8 @@ exports.FileMetadata = core.serialization.object({
|
|
|
51
51
|
fileLastModifiedDate: core.serialization.property("file_last_modified_date", core.serialization.string().optional()),
|
|
52
52
|
processingStatus: core.serialization.property("processing_status", FileProcessingStatus_1.FileProcessingStatus.optional()),
|
|
53
53
|
errorMessage: core.serialization.property("error_message", core.serialization.string().optional()),
|
|
54
|
+
totalChunks: core.serialization.property("total_chunks", core.serialization.number().optional()),
|
|
55
|
+
chunksEmbedded: core.serialization.property("chunks_embedded", core.serialization.number().optional()),
|
|
54
56
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
55
57
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
56
58
|
isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
|
|
@@ -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 FileStats: core.serialization.ObjectSchema<serializers.FileStats.Raw, Letta.FileStats>;
|
|
8
|
+
export declare namespace FileStats {
|
|
9
|
+
interface Raw {
|
|
10
|
+
file_id: string;
|
|
11
|
+
file_name: string;
|
|
12
|
+
file_size?: number | 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.FileStats = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.FileStats = core.serialization.object({
|
|
42
|
+
fileId: core.serialization.property("file_id", core.serialization.string()),
|
|
43
|
+
fileName: core.serialization.property("file_name", core.serialization.string()),
|
|
44
|
+
fileSize: core.serialization.property("file_size", core.serialization.number().optional()),
|
|
45
|
+
});
|
|
@@ -56,4 +56,5 @@ exports.LlmConfig = core.serialization.object({
|
|
|
56
56
|
enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
|
|
57
57
|
reasoningEffort: core.serialization.property("reasoning_effort", LlmConfigReasoningEffort_1.LlmConfigReasoningEffort.optional()),
|
|
58
58
|
maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
|
|
59
|
+
frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()),
|
|
59
60
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { SourceStats } from "./SourceStats";
|
|
8
|
+
export declare const OrganizationSourcesStats: core.serialization.ObjectSchema<serializers.OrganizationSourcesStats.Raw, Letta.OrganizationSourcesStats>;
|
|
9
|
+
export declare namespace OrganizationSourcesStats {
|
|
10
|
+
interface Raw {
|
|
11
|
+
total_sources?: number | null;
|
|
12
|
+
total_files?: number | null;
|
|
13
|
+
total_size?: number | null;
|
|
14
|
+
sources?: SourceStats.Raw[] | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.OrganizationSourcesStats = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const SourceStats_1 = require("./SourceStats");
|
|
42
|
+
exports.OrganizationSourcesStats = core.serialization.object({
|
|
43
|
+
totalSources: core.serialization.property("total_sources", core.serialization.number().optional()),
|
|
44
|
+
totalFiles: core.serialization.property("total_files", core.serialization.number().optional()),
|
|
45
|
+
totalSize: core.serialization.property("total_size", core.serialization.number().optional()),
|
|
46
|
+
sources: core.serialization.list(SourceStats_1.SourceStats).optional(),
|
|
47
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { FileStats } from "./FileStats";
|
|
8
|
+
export declare const SourceStats: core.serialization.ObjectSchema<serializers.SourceStats.Raw, Letta.SourceStats>;
|
|
9
|
+
export declare namespace SourceStats {
|
|
10
|
+
interface Raw {
|
|
11
|
+
source_id: string;
|
|
12
|
+
source_name: string;
|
|
13
|
+
file_count?: number | null;
|
|
14
|
+
total_size?: number | null;
|
|
15
|
+
files?: FileStats.Raw[] | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.SourceStats = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const FileStats_1 = require("./FileStats");
|
|
42
|
+
exports.SourceStats = core.serialization.object({
|
|
43
|
+
sourceId: core.serialization.property("source_id", core.serialization.string()),
|
|
44
|
+
sourceName: core.serialization.property("source_name", core.serialization.string()),
|
|
45
|
+
fileCount: core.serialization.property("file_count", core.serialization.number().optional()),
|
|
46
|
+
totalSize: core.serialization.property("total_size", core.serialization.number().optional()),
|
|
47
|
+
files: core.serialization.list(FileStats_1.FileStats).optional(),
|
|
48
|
+
});
|
|
@@ -95,6 +95,7 @@ export * from "./File_";
|
|
|
95
95
|
export * from "./FileFile";
|
|
96
96
|
export * from "./FileMetadata";
|
|
97
97
|
export * from "./FileProcessingStatus";
|
|
98
|
+
export * from "./FileStats";
|
|
98
99
|
export * from "./FunctionOutput";
|
|
99
100
|
export * from "./FunctionCall";
|
|
100
101
|
export * from "./FunctionDefinitionInput";
|
|
@@ -153,6 +154,7 @@ export * from "./MessageType";
|
|
|
153
154
|
export * from "./OmittedReasoningContent";
|
|
154
155
|
export * from "./Organization";
|
|
155
156
|
export * from "./OrganizationCreate";
|
|
157
|
+
export * from "./OrganizationSourcesStats";
|
|
156
158
|
export * from "./OrganizationUpdate";
|
|
157
159
|
export * from "./ParameterProperties";
|
|
158
160
|
export * from "./ParametersSchema";
|
|
@@ -188,6 +190,7 @@ export * from "./SandboxType";
|
|
|
188
190
|
export * from "./SleeptimeManager";
|
|
189
191
|
export * from "./SleeptimeManagerUpdate";
|
|
190
192
|
export * from "./Source";
|
|
193
|
+
export * from "./SourceStats";
|
|
191
194
|
export * from "./StdioServerConfig";
|
|
192
195
|
export * from "./StepFeedback";
|
|
193
196
|
export * from "./Step";
|
|
@@ -111,6 +111,7 @@ __exportStar(require("./File_"), exports);
|
|
|
111
111
|
__exportStar(require("./FileFile"), exports);
|
|
112
112
|
__exportStar(require("./FileMetadata"), exports);
|
|
113
113
|
__exportStar(require("./FileProcessingStatus"), exports);
|
|
114
|
+
__exportStar(require("./FileStats"), exports);
|
|
114
115
|
__exportStar(require("./FunctionOutput"), exports);
|
|
115
116
|
__exportStar(require("./FunctionCall"), exports);
|
|
116
117
|
__exportStar(require("./FunctionDefinitionInput"), exports);
|
|
@@ -169,6 +170,7 @@ __exportStar(require("./MessageType"), exports);
|
|
|
169
170
|
__exportStar(require("./OmittedReasoningContent"), exports);
|
|
170
171
|
__exportStar(require("./Organization"), exports);
|
|
171
172
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
173
|
+
__exportStar(require("./OrganizationSourcesStats"), exports);
|
|
172
174
|
__exportStar(require("./OrganizationUpdate"), exports);
|
|
173
175
|
__exportStar(require("./ParameterProperties"), exports);
|
|
174
176
|
__exportStar(require("./ParametersSchema"), exports);
|
|
@@ -204,6 +206,7 @@ __exportStar(require("./SandboxType"), exports);
|
|
|
204
206
|
__exportStar(require("./SleeptimeManager"), exports);
|
|
205
207
|
__exportStar(require("./SleeptimeManagerUpdate"), exports);
|
|
206
208
|
__exportStar(require("./Source"), exports);
|
|
209
|
+
__exportStar(require("./SourceStats"), exports);
|
|
207
210
|
__exportStar(require("./StdioServerConfig"), exports);
|
|
208
211
|
__exportStar(require("./StepFeedback"), exports);
|
|
209
212
|
__exportStar(require("./Step"), 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.149";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1550,6 +1550,67 @@ await client.sources.retrieveByName("source_name");
|
|
|
1550
1550
|
</dl>
|
|
1551
1551
|
</details>
|
|
1552
1552
|
|
|
1553
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">getSourcesMetadata</a>() -> Letta.OrganizationSourcesStats</code></summary>
|
|
1554
|
+
<dl>
|
|
1555
|
+
<dd>
|
|
1556
|
+
|
|
1557
|
+
#### 📝 Description
|
|
1558
|
+
|
|
1559
|
+
<dl>
|
|
1560
|
+
<dd>
|
|
1561
|
+
|
|
1562
|
+
<dl>
|
|
1563
|
+
<dd>
|
|
1564
|
+
|
|
1565
|
+
Get aggregated metadata for all sources in an organization.
|
|
1566
|
+
|
|
1567
|
+
Returns structured metadata including:
|
|
1568
|
+
|
|
1569
|
+
- Total number of sources
|
|
1570
|
+
- Total number of files across all sources
|
|
1571
|
+
- Total size of all files
|
|
1572
|
+
- Per-source breakdown with file details (file_name, file_size per file)
|
|
1573
|
+
</dd>
|
|
1574
|
+
</dl>
|
|
1575
|
+
</dd>
|
|
1576
|
+
</dl>
|
|
1577
|
+
|
|
1578
|
+
#### 🔌 Usage
|
|
1579
|
+
|
|
1580
|
+
<dl>
|
|
1581
|
+
<dd>
|
|
1582
|
+
|
|
1583
|
+
<dl>
|
|
1584
|
+
<dd>
|
|
1585
|
+
|
|
1586
|
+
```typescript
|
|
1587
|
+
await client.sources.getSourcesMetadata();
|
|
1588
|
+
```
|
|
1589
|
+
|
|
1590
|
+
</dd>
|
|
1591
|
+
</dl>
|
|
1592
|
+
</dd>
|
|
1593
|
+
</dl>
|
|
1594
|
+
|
|
1595
|
+
#### ⚙️ Parameters
|
|
1596
|
+
|
|
1597
|
+
<dl>
|
|
1598
|
+
<dd>
|
|
1599
|
+
|
|
1600
|
+
<dl>
|
|
1601
|
+
<dd>
|
|
1602
|
+
|
|
1603
|
+
**requestOptions:** `Sources.RequestOptions`
|
|
1604
|
+
|
|
1605
|
+
</dd>
|
|
1606
|
+
</dl>
|
|
1607
|
+
</dd>
|
|
1608
|
+
</dl>
|
|
1609
|
+
|
|
1610
|
+
</dd>
|
|
1611
|
+
</dl>
|
|
1612
|
+
</details>
|
|
1613
|
+
|
|
1553
1614
|
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">list</a>() -> Letta.Source[]</code></summary>
|
|
1554
1615
|
<dl>
|
|
1555
1616
|
<dd>
|
|
@@ -2340,79 +2401,6 @@ await client.agents.closeAllOpenFiles("agent_id");
|
|
|
2340
2401
|
</dl>
|
|
2341
2402
|
</details>
|
|
2342
2403
|
|
|
2343
|
-
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">cancelAgentRun</a>(agentId, { ...params }) -> Record<string, unknown></code></summary>
|
|
2344
|
-
<dl>
|
|
2345
|
-
<dd>
|
|
2346
|
-
|
|
2347
|
-
#### 📝 Description
|
|
2348
|
-
|
|
2349
|
-
<dl>
|
|
2350
|
-
<dd>
|
|
2351
|
-
|
|
2352
|
-
<dl>
|
|
2353
|
-
<dd>
|
|
2354
|
-
|
|
2355
|
-
Cancel runs associated with an agent. If run_ids are passed in, cancel those in particular.
|
|
2356
|
-
|
|
2357
|
-
Note to cancel active runs associated with an agent, redis is required.
|
|
2358
|
-
|
|
2359
|
-
</dd>
|
|
2360
|
-
</dl>
|
|
2361
|
-
</dd>
|
|
2362
|
-
</dl>
|
|
2363
|
-
|
|
2364
|
-
#### 🔌 Usage
|
|
2365
|
-
|
|
2366
|
-
<dl>
|
|
2367
|
-
<dd>
|
|
2368
|
-
|
|
2369
|
-
<dl>
|
|
2370
|
-
<dd>
|
|
2371
|
-
|
|
2372
|
-
```typescript
|
|
2373
|
-
await client.agents.cancelAgentRun("agent_id", undefined);
|
|
2374
|
-
```
|
|
2375
|
-
|
|
2376
|
-
</dd>
|
|
2377
|
-
</dl>
|
|
2378
|
-
</dd>
|
|
2379
|
-
</dl>
|
|
2380
|
-
|
|
2381
|
-
#### ⚙️ Parameters
|
|
2382
|
-
|
|
2383
|
-
<dl>
|
|
2384
|
-
<dd>
|
|
2385
|
-
|
|
2386
|
-
<dl>
|
|
2387
|
-
<dd>
|
|
2388
|
-
|
|
2389
|
-
**agentId:** `string`
|
|
2390
|
-
|
|
2391
|
-
</dd>
|
|
2392
|
-
</dl>
|
|
2393
|
-
|
|
2394
|
-
<dl>
|
|
2395
|
-
<dd>
|
|
2396
|
-
|
|
2397
|
-
**request:** `string[]`
|
|
2398
|
-
|
|
2399
|
-
</dd>
|
|
2400
|
-
</dl>
|
|
2401
|
-
|
|
2402
|
-
<dl>
|
|
2403
|
-
<dd>
|
|
2404
|
-
|
|
2405
|
-
**requestOptions:** `Agents.RequestOptions`
|
|
2406
|
-
|
|
2407
|
-
</dd>
|
|
2408
|
-
</dl>
|
|
2409
|
-
</dd>
|
|
2410
|
-
</dl>
|
|
2411
|
-
|
|
2412
|
-
</dd>
|
|
2413
|
-
</dl>
|
|
2414
|
-
</details>
|
|
2415
|
-
|
|
2416
2404
|
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">summarizeAgentConversation</a>(agentId, { ...params }) -> Letta.AgentState</code></summary>
|
|
2417
2405
|
<dl>
|
|
2418
2406
|
<dd>
|
|
@@ -7136,6 +7124,79 @@ for await (const item of response) {
|
|
|
7136
7124
|
</dl>
|
|
7137
7125
|
</details>
|
|
7138
7126
|
|
|
7127
|
+
<details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">cancel</a>(agentId, { ...params }) -> Record<string, unknown></code></summary>
|
|
7128
|
+
<dl>
|
|
7129
|
+
<dd>
|
|
7130
|
+
|
|
7131
|
+
#### 📝 Description
|
|
7132
|
+
|
|
7133
|
+
<dl>
|
|
7134
|
+
<dd>
|
|
7135
|
+
|
|
7136
|
+
<dl>
|
|
7137
|
+
<dd>
|
|
7138
|
+
|
|
7139
|
+
Cancel runs associated with an agent. If run_ids are passed in, cancel those in particular.
|
|
7140
|
+
|
|
7141
|
+
Note to cancel active runs associated with an agent, redis is required.
|
|
7142
|
+
|
|
7143
|
+
</dd>
|
|
7144
|
+
</dl>
|
|
7145
|
+
</dd>
|
|
7146
|
+
</dl>
|
|
7147
|
+
|
|
7148
|
+
#### 🔌 Usage
|
|
7149
|
+
|
|
7150
|
+
<dl>
|
|
7151
|
+
<dd>
|
|
7152
|
+
|
|
7153
|
+
<dl>
|
|
7154
|
+
<dd>
|
|
7155
|
+
|
|
7156
|
+
```typescript
|
|
7157
|
+
await client.agents.messages.cancel("agent_id", undefined);
|
|
7158
|
+
```
|
|
7159
|
+
|
|
7160
|
+
</dd>
|
|
7161
|
+
</dl>
|
|
7162
|
+
</dd>
|
|
7163
|
+
</dl>
|
|
7164
|
+
|
|
7165
|
+
#### ⚙️ Parameters
|
|
7166
|
+
|
|
7167
|
+
<dl>
|
|
7168
|
+
<dd>
|
|
7169
|
+
|
|
7170
|
+
<dl>
|
|
7171
|
+
<dd>
|
|
7172
|
+
|
|
7173
|
+
**agentId:** `string`
|
|
7174
|
+
|
|
7175
|
+
</dd>
|
|
7176
|
+
</dl>
|
|
7177
|
+
|
|
7178
|
+
<dl>
|
|
7179
|
+
<dd>
|
|
7180
|
+
|
|
7181
|
+
**request:** `string[]`
|
|
7182
|
+
|
|
7183
|
+
</dd>
|
|
7184
|
+
</dl>
|
|
7185
|
+
|
|
7186
|
+
<dl>
|
|
7187
|
+
<dd>
|
|
7188
|
+
|
|
7189
|
+
**requestOptions:** `Messages.RequestOptions`
|
|
7190
|
+
|
|
7191
|
+
</dd>
|
|
7192
|
+
</dl>
|
|
7193
|
+
</dd>
|
|
7194
|
+
</dl>
|
|
7195
|
+
|
|
7196
|
+
</dd>
|
|
7197
|
+
</dl>
|
|
7198
|
+
</details>
|
|
7199
|
+
|
|
7139
7200
|
<details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">createAsync</a>(agentId, { ...params }) -> Letta.Run</code></summary>
|
|
7140
7201
|
<dl>
|
|
7141
7202
|
<dd>
|
|
@@ -7660,7 +7721,7 @@ await client.agents.memoryVariables.list("agent_id");
|
|
|
7660
7721
|
|
|
7661
7722
|
## Blocks Agents
|
|
7662
7723
|
|
|
7663
|
-
<details><summary><code>client.blocks.agents.<a href="/src/api/resources/blocks/resources/agents/client/Client.ts">list</a>(blockId) -> Letta.AgentState[]</code></summary>
|
|
7724
|
+
<details><summary><code>client.blocks.agents.<a href="/src/api/resources/blocks/resources/agents/client/Client.ts">list</a>(blockId, { ...params }) -> Letta.AgentState[]</code></summary>
|
|
7664
7725
|
<dl>
|
|
7665
7726
|
<dd>
|
|
7666
7727
|
|
|
@@ -7713,6 +7774,14 @@ await client.blocks.agents.list("block_id");
|
|
|
7713
7774
|
<dl>
|
|
7714
7775
|
<dd>
|
|
7715
7776
|
|
|
7777
|
+
**request:** `Letta.blocks.AgentsListRequest`
|
|
7778
|
+
|
|
7779
|
+
</dd>
|
|
7780
|
+
</dl>
|
|
7781
|
+
|
|
7782
|
+
<dl>
|
|
7783
|
+
<dd>
|
|
7784
|
+
|
|
7716
7785
|
**requestOptions:** `Agents.RequestOptions`
|
|
7717
7786
|
|
|
7718
7787
|
</dd>
|