@letta-ai/letta-client 0.1.147 → 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.js +11 -11
- 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 +18 -0
- package/api/resources/agents/resources/messages/client/Client.js +84 -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.d.ts +16 -0
- package/api/resources/jobs/client/Client.js +101 -6
- package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
- 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/StopReasonType.d.ts +2 -1
- package/api/types/StopReasonType.js +1 -0
- package/api/types/UpdateSsemcpServer.d.ts +2 -0
- package/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/agents/client/Client.js +11 -11
- 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 +18 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +84 -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.d.ts +16 -0
- package/dist/api/resources/jobs/client/Client.js +101 -6
- package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
- 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/StopReasonType.d.ts +2 -1
- package/dist/api/types/StopReasonType.js +1 -0
- package/dist/api/types/UpdateSsemcpServer.d.ts +2 -0
- package/dist/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/resources/agents/resources/messages/client/cancel.d.ts +13 -0
- package/dist/serialization/resources/agents/resources/messages/client/cancel.js +42 -0
- 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/StopReasonType.d.ts +1 -1
- package/dist/serialization/types/StopReasonType.js +9 -1
- package/dist/serialization/types/UpdateSsemcpServer.d.ts +1 -0
- package/dist/serialization/types/UpdateSsemcpServer.js +1 -0
- package/dist/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
- package/dist/serialization/types/UpdateStreamableHttpmcpServer.js +1 -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 +213 -1
- package/serialization/resources/agents/resources/messages/client/cancel.d.ts +13 -0
- package/serialization/resources/agents/resources/messages/client/cancel.js +42 -0
- 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/StopReasonType.d.ts +1 -1
- package/serialization/types/StopReasonType.js +9 -1
- package/serialization/types/UpdateSsemcpServer.d.ts +1 -0
- package/serialization/types/UpdateSsemcpServer.js +1 -0
- package/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
- package/serialization/types/UpdateStreamableHttpmcpServer.js +1 -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
|
@@ -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
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const StopReasonType: core.serialization.Schema<serializers.StopReasonType.Raw, Letta.StopReasonType>;
|
|
8
8
|
export declare namespace StopReasonType {
|
|
9
|
-
type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule";
|
|
9
|
+
type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
|
|
10
10
|
}
|
|
@@ -38,4 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.StopReasonType = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.StopReasonType = core.serialization.enum_([
|
|
41
|
+
exports.StopReasonType = core.serialization.enum_([
|
|
42
|
+
"end_turn",
|
|
43
|
+
"error",
|
|
44
|
+
"invalid_tool_call",
|
|
45
|
+
"max_steps",
|
|
46
|
+
"no_tool_call",
|
|
47
|
+
"tool_rule",
|
|
48
|
+
"cancelled",
|
|
49
|
+
]);
|
|
@@ -42,4 +42,5 @@ exports.UpdateSsemcpServer = core.serialization.object({
|
|
|
42
42
|
serverName: core.serialization.property("server_name", core.serialization.string().optional()),
|
|
43
43
|
serverUrl: core.serialization.property("server_url", core.serialization.string().optional()),
|
|
44
44
|
token: core.serialization.string().optional(),
|
|
45
|
+
customHeaders: core.serialization.property("custom_headers", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
45
46
|
});
|
|
@@ -43,4 +43,5 @@ exports.UpdateStreamableHttpmcpServer = core.serialization.object({
|
|
|
43
43
|
serverUrl: core.serialization.property("server_url", core.serialization.string().optional()),
|
|
44
44
|
authHeader: core.serialization.property("auth_header", core.serialization.string().optional()),
|
|
45
45
|
authToken: core.serialization.property("auth_token", core.serialization.string().optional()),
|
|
46
|
+
customHeaders: core.serialization.property("custom_headers", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
|
|
46
47
|
});
|
|
@@ -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>
|
|
@@ -3700,6 +3761,7 @@ await client.blocks.modify("block_id", {});
|
|
|
3700
3761
|
<dd>
|
|
3701
3762
|
|
|
3702
3763
|
List all jobs.
|
|
3764
|
+
TODO (cliandy): implementation for pagination
|
|
3703
3765
|
|
|
3704
3766
|
</dd>
|
|
3705
3767
|
</dl>
|
|
@@ -3939,6 +4001,72 @@ await client.jobs.delete("job_id");
|
|
|
3939
4001
|
</dl>
|
|
3940
4002
|
</details>
|
|
3941
4003
|
|
|
4004
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">cancelJob</a>(jobId) -> Letta.Job</code></summary>
|
|
4005
|
+
<dl>
|
|
4006
|
+
<dd>
|
|
4007
|
+
|
|
4008
|
+
#### 📝 Description
|
|
4009
|
+
|
|
4010
|
+
<dl>
|
|
4011
|
+
<dd>
|
|
4012
|
+
|
|
4013
|
+
<dl>
|
|
4014
|
+
<dd>
|
|
4015
|
+
|
|
4016
|
+
Cancel a job by its job_id.
|
|
4017
|
+
|
|
4018
|
+
This endpoint marks a job as cancelled, which will cause any associated
|
|
4019
|
+
agent execution to terminate as soon as possible.
|
|
4020
|
+
|
|
4021
|
+
</dd>
|
|
4022
|
+
</dl>
|
|
4023
|
+
</dd>
|
|
4024
|
+
</dl>
|
|
4025
|
+
|
|
4026
|
+
#### 🔌 Usage
|
|
4027
|
+
|
|
4028
|
+
<dl>
|
|
4029
|
+
<dd>
|
|
4030
|
+
|
|
4031
|
+
<dl>
|
|
4032
|
+
<dd>
|
|
4033
|
+
|
|
4034
|
+
```typescript
|
|
4035
|
+
await client.jobs.cancelJob("job_id");
|
|
4036
|
+
```
|
|
4037
|
+
|
|
4038
|
+
</dd>
|
|
4039
|
+
</dl>
|
|
4040
|
+
</dd>
|
|
4041
|
+
</dl>
|
|
4042
|
+
|
|
4043
|
+
#### ⚙️ Parameters
|
|
4044
|
+
|
|
4045
|
+
<dl>
|
|
4046
|
+
<dd>
|
|
4047
|
+
|
|
4048
|
+
<dl>
|
|
4049
|
+
<dd>
|
|
4050
|
+
|
|
4051
|
+
**jobId:** `string`
|
|
4052
|
+
|
|
4053
|
+
</dd>
|
|
4054
|
+
</dl>
|
|
4055
|
+
|
|
4056
|
+
<dl>
|
|
4057
|
+
<dd>
|
|
4058
|
+
|
|
4059
|
+
**requestOptions:** `Jobs.RequestOptions`
|
|
4060
|
+
|
|
4061
|
+
</dd>
|
|
4062
|
+
</dl>
|
|
4063
|
+
</dd>
|
|
4064
|
+
</dl>
|
|
4065
|
+
|
|
4066
|
+
</dd>
|
|
4067
|
+
</dl>
|
|
4068
|
+
</details>
|
|
4069
|
+
|
|
3942
4070
|
## Health
|
|
3943
4071
|
|
|
3944
4072
|
<details><summary><code>client.health.<a href="/src/api/resources/health/client/Client.ts">check</a>() -> Letta.Health</code></summary>
|
|
@@ -6996,6 +7124,79 @@ for await (const item of response) {
|
|
|
6996
7124
|
</dl>
|
|
6997
7125
|
</details>
|
|
6998
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
|
+
|
|
6999
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>
|
|
7000
7201
|
<dl>
|
|
7001
7202
|
<dd>
|
|
@@ -7011,6 +7212,9 @@ for await (const item of response) {
|
|
|
7011
7212
|
Asynchronously process a user message and return a run object.
|
|
7012
7213
|
The actual processing happens in the background, and the status can be checked using the run ID.
|
|
7013
7214
|
|
|
7215
|
+
This is "asynchronous" in the sense that it's a background job and explicitly must be fetched by the run ID.
|
|
7216
|
+
This is more like `send_message_job`
|
|
7217
|
+
|
|
7014
7218
|
</dd>
|
|
7015
7219
|
</dl>
|
|
7016
7220
|
</dd>
|
|
@@ -7517,7 +7721,7 @@ await client.agents.memoryVariables.list("agent_id");
|
|
|
7517
7721
|
|
|
7518
7722
|
## Blocks Agents
|
|
7519
7723
|
|
|
7520
|
-
<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>
|
|
7521
7725
|
<dl>
|
|
7522
7726
|
<dd>
|
|
7523
7727
|
|
|
@@ -7570,6 +7774,14 @@ await client.blocks.agents.list("block_id");
|
|
|
7570
7774
|
<dl>
|
|
7571
7775
|
<dd>
|
|
7572
7776
|
|
|
7777
|
+
**request:** `Letta.blocks.AgentsListRequest`
|
|
7778
|
+
|
|
7779
|
+
</dd>
|
|
7780
|
+
</dl>
|
|
7781
|
+
|
|
7782
|
+
<dl>
|
|
7783
|
+
<dd>
|
|
7784
|
+
|
|
7573
7785
|
**requestOptions:** `Agents.RequestOptions`
|
|
7574
7786
|
|
|
7575
7787
|
</dd>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
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
|
+
export declare namespace Request {
|
|
8
|
+
type Raw = string[] | null | undefined;
|
|
9
|
+
}
|
|
10
|
+
export declare const Response: core.serialization.Schema<serializers.agents.messages.cancel.Response.Raw, Record<string, unknown>>;
|
|
11
|
+
export declare namespace Response {
|
|
12
|
+
type Raw = Record<string, unknown>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.Response = exports.Request = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
exports.Request = core.serialization.list(core.serialization.string()).optional();
|
|
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
|
});
|