@letta-ai/letta-client 0.1.93 → 0.1.94
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/Client.d.ts +3 -0
- package/Client.js +13 -8
- package/api/resources/agents/client/Client.d.ts +0 -34
- package/api/resources/agents/client/Client.js +11 -154
- 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/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +4 -4
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/messages/client/Client.d.ts +46 -0
- package/api/resources/messages/client/Client.js +133 -0
- package/api/resources/messages/client/index.d.ts +1 -0
- package/api/resources/messages/client/index.js +2 -0
- package/api/resources/messages/index.d.ts +2 -0
- package/api/resources/messages/index.js +18 -0
- package/api/resources/messages/resources/batches/client/Client.d.ts +87 -0
- package/api/resources/messages/resources/batches/client/Client.js +320 -0
- package/api/resources/messages/resources/batches/client/index.d.ts +1 -0
- package/api/resources/messages/resources/batches/client/index.js +17 -0
- package/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +23 -0
- package/api/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
- package/api/resources/messages/resources/batches/client/requests/index.js +2 -0
- package/api/resources/messages/resources/batches/index.d.ts +1 -0
- package/api/resources/messages/resources/batches/index.js +17 -0
- package/api/resources/messages/resources/index.d.ts +2 -0
- package/api/resources/messages/resources/index.js +41 -0
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/projects/client/Client.js +1 -1
- 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 +2 -2
- package/api/resources/tools/client/Client.js +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/BatchJob.d.ts +23 -0
- package/api/types/JobType.d.ts +2 -1
- package/api/types/JobType.js +1 -0
- package/api/types/index.d.ts +1 -1
- package/api/types/index.js +1 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- package/dist/api/resources/agents/client/Client.d.ts +0 -34
- package/dist/api/resources/agents/client/Client.js +11 -154
- 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/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/messages/client/Client.d.ts +46 -0
- package/dist/api/resources/messages/client/Client.js +133 -0
- package/dist/api/resources/messages/client/index.d.ts +1 -0
- package/dist/api/resources/messages/client/index.js +2 -0
- package/dist/api/resources/messages/index.d.ts +2 -0
- package/dist/api/resources/messages/index.js +18 -0
- package/dist/api/resources/messages/resources/batches/client/Client.d.ts +87 -0
- package/dist/api/resources/messages/resources/batches/client/Client.js +320 -0
- package/dist/api/resources/messages/resources/batches/client/index.d.ts +1 -0
- package/dist/api/resources/messages/resources/batches/client/index.js +17 -0
- package/dist/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +23 -0
- package/dist/api/resources/messages/resources/batches/client/requests/CreateBatch.js +5 -0
- package/dist/api/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
- package/dist/api/resources/messages/resources/batches/client/requests/index.js +2 -0
- package/dist/api/resources/messages/resources/batches/index.d.ts +1 -0
- package/dist/api/resources/messages/resources/batches/index.js +17 -0
- package/dist/api/resources/messages/resources/index.d.ts +2 -0
- package/dist/api/resources/messages/resources/index.js +41 -0
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/projects/client/Client.js +1 -1
- 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 +2 -2
- package/dist/api/resources/tools/client/Client.js +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/BatchJob.d.ts +23 -0
- package/dist/api/types/BatchJob.js +5 -0
- package/dist/api/types/JobType.d.ts +2 -1
- package/dist/api/types/JobType.js +1 -0
- package/dist/api/types/index.d.ts +1 -1
- package/dist/api/types/index.js +1 -1
- 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/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/messages/index.d.ts +1 -0
- package/dist/serialization/resources/messages/index.js +17 -0
- package/dist/serialization/resources/messages/resources/batches/client/index.d.ts +2 -0
- package/dist/serialization/resources/messages/resources/batches/client/index.js +41 -0
- package/dist/serialization/resources/messages/resources/batches/client/list.d.ts +11 -0
- package/dist/serialization/resources/{agents/client/createBatchMessageRequest.js → messages/resources/batches/client/list.js} +4 -4
- package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +13 -0
- package/dist/serialization/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +5 -9
- package/dist/serialization/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/messages/resources/batches/client/requests/index.js +5 -0
- package/dist/serialization/resources/messages/resources/batches/index.d.ts +1 -0
- package/dist/serialization/resources/messages/resources/batches/index.js +17 -0
- package/dist/serialization/resources/messages/resources/index.d.ts +2 -0
- package/dist/serialization/resources/messages/resources/index.js +41 -0
- package/dist/serialization/types/BatchJob.d.ts +22 -0
- package/dist/serialization/types/BatchJob.js +53 -0
- package/dist/serialization/types/JobType.d.ts +1 -1
- package/dist/serialization/types/JobType.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -1
- package/dist/serialization/types/index.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +314 -142
- package/serialization/resources/agents/client/index.d.ts +0 -1
- package/serialization/resources/agents/client/index.js +1 -2
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/messages/index.d.ts +1 -0
- package/serialization/resources/messages/index.js +17 -0
- package/serialization/resources/messages/resources/batches/client/index.d.ts +2 -0
- package/serialization/resources/messages/resources/batches/client/index.js +41 -0
- package/serialization/resources/messages/resources/batches/client/list.d.ts +11 -0
- package/serialization/resources/{agents/client/createBatchMessageRequest.js → messages/resources/batches/client/list.js} +4 -4
- package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +13 -0
- package/serialization/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +5 -9
- package/serialization/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
- package/serialization/resources/messages/resources/batches/client/requests/index.js +5 -0
- package/serialization/resources/messages/resources/batches/index.d.ts +1 -0
- package/serialization/resources/messages/resources/batches/index.js +17 -0
- package/serialization/resources/messages/resources/index.d.ts +2 -0
- package/serialization/resources/messages/resources/index.js +41 -0
- package/serialization/types/BatchJob.d.ts +22 -0
- package/serialization/types/BatchJob.js +53 -0
- package/serialization/types/JobType.d.ts +1 -1
- package/serialization/types/JobType.js +1 -0
- package/serialization/types/index.d.ts +1 -1
- package/serialization/types/index.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/LettaBatchResponse.d.ts +0 -16
- package/dist/api/types/LettaBatchResponse.d.ts +0 -16
- package/dist/serialization/resources/agents/client/createBatchMessageRequest.d.ts +0 -11
- package/dist/serialization/types/LettaBatchResponse.d.ts +0 -17
- package/serialization/resources/agents/client/createBatchMessageRequest.d.ts +0 -11
- package/serialization/types/LettaBatchResponse.d.ts +0 -17
- /package/api/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +0 -0
- /package/{dist/api/types/LettaBatchResponse.js → api/types/BatchJob.js} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type JobType = "job" | "run";
|
|
4
|
+
export type JobType = "job" | "run" | "batch";
|
|
5
5
|
export declare const JobType: {
|
|
6
6
|
readonly Job: "job";
|
|
7
7
|
readonly Run: "run";
|
|
8
|
+
readonly Batch: "batch";
|
|
8
9
|
};
|
|
@@ -22,6 +22,7 @@ export * from "./AuthRequest";
|
|
|
22
22
|
export * from "./AuthResponse";
|
|
23
23
|
export * from "./AuthSchemeField";
|
|
24
24
|
export * from "./BaseToolRuleSchema";
|
|
25
|
+
export * from "./BatchJob";
|
|
25
26
|
export * from "./Block";
|
|
26
27
|
export * from "./BlockUpdate";
|
|
27
28
|
export * from "./ChatCompletionAssistantMessageParamContentItem";
|
|
@@ -116,7 +117,6 @@ export * from "./LlmConfigModelEndpointType";
|
|
|
116
117
|
export * from "./LlmConfigReasoningEffort";
|
|
117
118
|
export * from "./LlmConfig";
|
|
118
119
|
export * from "./LettaBatchRequest";
|
|
119
|
-
export * from "./LettaBatchResponse";
|
|
120
120
|
export * from "./LettaRequest";
|
|
121
121
|
export * from "./LettaRequestConfig";
|
|
122
122
|
export * from "./LettaResponse";
|
package/dist/api/types/index.js
CHANGED
|
@@ -38,6 +38,7 @@ __exportStar(require("./AuthRequest"), exports);
|
|
|
38
38
|
__exportStar(require("./AuthResponse"), exports);
|
|
39
39
|
__exportStar(require("./AuthSchemeField"), exports);
|
|
40
40
|
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
41
|
+
__exportStar(require("./BatchJob"), exports);
|
|
41
42
|
__exportStar(require("./Block"), exports);
|
|
42
43
|
__exportStar(require("./BlockUpdate"), exports);
|
|
43
44
|
__exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
|
|
@@ -132,7 +133,6 @@ __exportStar(require("./LlmConfigModelEndpointType"), exports);
|
|
|
132
133
|
__exportStar(require("./LlmConfigReasoningEffort"), exports);
|
|
133
134
|
__exportStar(require("./LlmConfig"), exports);
|
|
134
135
|
__exportStar(require("./LettaBatchRequest"), exports);
|
|
135
|
-
__exportStar(require("./LettaBatchResponse"), exports);
|
|
136
136
|
__exportStar(require("./LettaRequest"), exports);
|
|
137
137
|
__exportStar(require("./LettaRequestConfig"), exports);
|
|
138
138
|
__exportStar(require("./LettaResponse"), exports);
|
|
@@ -2,5 +2,4 @@ export * as list from "./list";
|
|
|
2
2
|
export * as exportAgentSerialized from "./exportAgentSerialized";
|
|
3
3
|
export * as modifyPassage from "./modifyPassage";
|
|
4
4
|
export * as listAgentGroups from "./listAgentGroups";
|
|
5
|
-
export * as createBatchMessageRequest from "./createBatchMessageRequest";
|
|
6
5
|
export * from "./requests";
|
|
@@ -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.listAgentGroups = exports.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
41
|
exports.exportAgentSerialized = __importStar(require("./exportAgentSerialized"));
|
|
42
42
|
exports.modifyPassage = __importStar(require("./modifyPassage"));
|
|
43
43
|
exports.listAgentGroups = __importStar(require("./listAgentGroups"));
|
|
44
|
-
exports.createBatchMessageRequest = __importStar(require("./createBatchMessageRequest"));
|
|
45
44
|
__exportStar(require("./requests"), exports);
|
|
@@ -21,6 +21,7 @@ export * as providers from "./providers";
|
|
|
21
21
|
export * as runs from "./runs";
|
|
22
22
|
export * as steps from "./steps";
|
|
23
23
|
export * as tag from "./tag";
|
|
24
|
+
export * as messages from "./messages";
|
|
24
25
|
export * from "./tools/client/requests";
|
|
25
26
|
export * from "./sources/client/requests";
|
|
26
27
|
export * from "./agents/client/requests";
|
|
@@ -36,7 +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.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
|
|
39
|
+
exports.messages = exports.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
|
|
40
40
|
exports.tools = __importStar(require("./tools"));
|
|
41
41
|
__exportStar(require("./tools/types"), exports);
|
|
42
42
|
exports.agents = __importStar(require("./agents"));
|
|
@@ -60,6 +60,7 @@ exports.providers = __importStar(require("./providers"));
|
|
|
60
60
|
exports.runs = __importStar(require("./runs"));
|
|
61
61
|
exports.steps = __importStar(require("./steps"));
|
|
62
62
|
exports.tag = __importStar(require("./tag"));
|
|
63
|
+
exports.messages = __importStar(require("./messages"));
|
|
63
64
|
__exportStar(require("./tools/client/requests"), exports);
|
|
64
65
|
__exportStar(require("./sources/client/requests"), exports);
|
|
65
66
|
__exportStar(require("./agents/client/requests"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resources";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.list = void 0;
|
|
40
|
+
exports.list = __importStar(require("./list"));
|
|
41
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { BatchJob } from "../../../../../types/BatchJob";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.messages.batches.list.Response.Raw, Letta.BatchJob[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = BatchJob.Raw[];
|
|
11
|
+
}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const
|
|
42
|
-
exports.
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../core"));
|
|
41
|
+
const BatchJob_1 = require("../../../../../types/BatchJob");
|
|
42
|
+
exports.Response = core.serialization.list(BatchJob_1.BatchJob);
|
package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts
ADDED
|
@@ -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 Letta from "../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../core";
|
|
7
|
+
import { LettaBatchRequest } from "../../../../../../types/LettaBatchRequest";
|
|
8
|
+
export declare const CreateBatch: core.serialization.Schema<serializers.messages.CreateBatch.Raw, Letta.messages.CreateBatch>;
|
|
9
|
+
export declare namespace CreateBatch {
|
|
10
|
+
interface Raw {
|
|
11
|
+
requests: LettaBatchRequest.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -36,13 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
const core = __importStar(require("
|
|
41
|
-
const
|
|
42
|
-
exports.
|
|
43
|
-
|
|
44
|
-
status: JobStatus_1.JobStatus,
|
|
45
|
-
agentCount: core.serialization.property("agent_count", core.serialization.number()),
|
|
46
|
-
lastPolledAt: core.serialization.property("last_polled_at", core.serialization.date()),
|
|
47
|
-
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
39
|
+
exports.CreateBatch = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../core"));
|
|
41
|
+
const LettaBatchRequest_1 = require("../../../../../../types/LettaBatchRequest");
|
|
42
|
+
exports.CreateBatch = core.serialization.object({
|
|
43
|
+
requests: core.serialization.list(LettaBatchRequest_1.LettaBatchRequest),
|
|
48
44
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CreateBatch } from "./CreateBatch";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateBatch = void 0;
|
|
4
|
+
var CreateBatch_1 = require("./CreateBatch");
|
|
5
|
+
Object.defineProperty(exports, "CreateBatch", { enumerable: true, get: function () { return CreateBatch_1.CreateBatch; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.batches = void 0;
|
|
40
|
+
exports.batches = __importStar(require("./batches"));
|
|
41
|
+
__exportStar(require("./batches/client/requests"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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 { JobStatus } from "./JobStatus";
|
|
8
|
+
import { JobType } from "./JobType";
|
|
9
|
+
export declare const BatchJob: core.serialization.ObjectSchema<serializers.BatchJob.Raw, Letta.BatchJob>;
|
|
10
|
+
export declare namespace BatchJob {
|
|
11
|
+
interface Raw {
|
|
12
|
+
created_by_id?: string | null;
|
|
13
|
+
last_updated_by_id?: string | null;
|
|
14
|
+
created_at?: string | null;
|
|
15
|
+
updated_at?: string | null;
|
|
16
|
+
status?: JobStatus.Raw | null;
|
|
17
|
+
completed_at?: string | null;
|
|
18
|
+
metadata?: Record<string, unknown> | null;
|
|
19
|
+
job_type?: JobType.Raw | null;
|
|
20
|
+
id?: string | null;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.BatchJob = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const JobStatus_1 = require("./JobStatus");
|
|
42
|
+
const JobType_1 = require("./JobType");
|
|
43
|
+
exports.BatchJob = core.serialization.object({
|
|
44
|
+
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
45
|
+
lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
|
|
46
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
47
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
48
|
+
status: JobStatus_1.JobStatus.optional(),
|
|
49
|
+
completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
|
|
50
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
51
|
+
jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
|
|
52
|
+
id: core.serialization.string().optional(),
|
|
53
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const JobType: core.serialization.Schema<serializers.JobType.Raw, Letta.JobType>;
|
|
8
8
|
export declare namespace JobType {
|
|
9
|
-
type Raw = "job" | "run";
|
|
9
|
+
type Raw = "job" | "run" | "batch";
|
|
10
10
|
}
|
|
@@ -22,6 +22,7 @@ export * from "./AuthRequest";
|
|
|
22
22
|
export * from "./AuthResponse";
|
|
23
23
|
export * from "./AuthSchemeField";
|
|
24
24
|
export * from "./BaseToolRuleSchema";
|
|
25
|
+
export * from "./BatchJob";
|
|
25
26
|
export * from "./Block";
|
|
26
27
|
export * from "./BlockUpdate";
|
|
27
28
|
export * from "./ChatCompletionAssistantMessageParamContentItem";
|
|
@@ -116,7 +117,6 @@ export * from "./LlmConfigModelEndpointType";
|
|
|
116
117
|
export * from "./LlmConfigReasoningEffort";
|
|
117
118
|
export * from "./LlmConfig";
|
|
118
119
|
export * from "./LettaBatchRequest";
|
|
119
|
-
export * from "./LettaBatchResponse";
|
|
120
120
|
export * from "./LettaRequest";
|
|
121
121
|
export * from "./LettaRequestConfig";
|
|
122
122
|
export * from "./LettaResponse";
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./AuthRequest"), exports);
|
|
|
38
38
|
__exportStar(require("./AuthResponse"), exports);
|
|
39
39
|
__exportStar(require("./AuthSchemeField"), exports);
|
|
40
40
|
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
41
|
+
__exportStar(require("./BatchJob"), exports);
|
|
41
42
|
__exportStar(require("./Block"), exports);
|
|
42
43
|
__exportStar(require("./BlockUpdate"), exports);
|
|
43
44
|
__exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
|
|
@@ -132,7 +133,6 @@ __exportStar(require("./LlmConfigModelEndpointType"), exports);
|
|
|
132
133
|
__exportStar(require("./LlmConfigReasoningEffort"), exports);
|
|
133
134
|
__exportStar(require("./LlmConfig"), exports);
|
|
134
135
|
__exportStar(require("./LettaBatchRequest"), exports);
|
|
135
|
-
__exportStar(require("./LettaBatchResponse"), exports);
|
|
136
136
|
__exportStar(require("./LettaRequest"), exports);
|
|
137
137
|
__exportStar(require("./LettaRequestConfig"), exports);
|
|
138
138
|
__exportStar(require("./LettaResponse"), 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.94";
|
package/dist/version.js
CHANGED