@letta-ai/letta-client 0.1.174 → 0.1.176
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.js +10 -10
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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/files/client/Client.js +3 -3
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- 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.js +8 -8
- 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.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/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.js +10 -10
- 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 +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/BatchJob.d.ts +4 -0
- package/api/types/Job.d.ts +4 -0
- package/api/types/Run.d.ts +4 -0
- package/api/types/Step.d.ts +6 -0
- package/api/types/StepStatus.d.ts +13 -0
- package/api/types/StepStatus.js +12 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- 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/files/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- 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.js +8 -8
- 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.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/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.js +10 -10
- 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 +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/BatchJob.d.ts +4 -0
- package/dist/api/types/Job.d.ts +4 -0
- package/dist/api/types/Run.d.ts +4 -0
- package/dist/api/types/Step.d.ts +6 -0
- package/dist/api/types/StepStatus.d.ts +13 -0
- package/dist/api/types/StepStatus.js +12 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/dist/serialization/types/BatchJob.d.ts +2 -0
- package/dist/serialization/types/BatchJob.js +2 -0
- package/dist/serialization/types/Job.d.ts +2 -0
- package/dist/serialization/types/Job.js +2 -0
- package/dist/serialization/types/Run.d.ts +2 -0
- package/dist/serialization/types/Run.js +2 -0
- package/dist/serialization/types/Step.d.ts +4 -0
- package/dist/serialization/types/Step.js +4 -0
- package/dist/serialization/types/StepStatus.d.ts +10 -0
- package/dist/serialization/types/StepStatus.js +41 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/serialization/types/BatchJob.d.ts +2 -0
- package/serialization/types/BatchJob.js +2 -0
- package/serialization/types/Job.d.ts +2 -0
- package/serialization/types/Job.js +2 -0
- package/serialization/types/Run.d.ts +2 -0
- package/serialization/types/Run.js +2 -0
- package/serialization/types/Step.d.ts +4 -0
- package/serialization/types/Step.js +4 -0
- package/serialization/types/StepStatus.d.ts +10 -0
- package/serialization/types/StepStatus.js +41 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -53,5 +53,7 @@ exports.Job = core.serialization.object({
|
|
|
53
53
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
54
54
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
55
55
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
56
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
57
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
56
58
|
id: core.serialization.string().optional(),
|
|
57
59
|
});
|
|
@@ -22,6 +22,8 @@ export declare namespace Run {
|
|
|
22
22
|
callback_sent_at?: string | null;
|
|
23
23
|
callback_status_code?: number | null;
|
|
24
24
|
callback_error?: string | null;
|
|
25
|
+
ttft_ns?: number | null;
|
|
26
|
+
total_duration_ns?: number | null;
|
|
25
27
|
id?: string | null;
|
|
26
28
|
request_config?: LettaRequestConfig.Raw | null;
|
|
27
29
|
}
|
|
@@ -54,6 +54,8 @@ exports.Run = core.serialization.object({
|
|
|
54
54
|
callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
|
|
55
55
|
callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
|
|
56
56
|
callbackError: core.serialization.property("callback_error", core.serialization.string().optional()),
|
|
57
|
+
ttftNs: core.serialization.property("ttft_ns", core.serialization.number().optional()),
|
|
58
|
+
totalDurationNs: core.serialization.property("total_duration_ns", core.serialization.number().optional()),
|
|
57
59
|
id: core.serialization.string().optional(),
|
|
58
60
|
requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
|
|
59
61
|
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
import { StopReasonType } from "./StopReasonType";
|
|
8
8
|
import { Message } from "./Message";
|
|
9
9
|
import { StepFeedback } from "./StepFeedback";
|
|
10
|
+
import { StepStatus } from "./StepStatus";
|
|
10
11
|
export declare const Step: core.serialization.ObjectSchema<serializers.Step.Raw, Letta.Step>;
|
|
11
12
|
export declare namespace Step {
|
|
12
13
|
interface Raw {
|
|
@@ -31,5 +32,8 @@ export declare namespace Step {
|
|
|
31
32
|
messages?: Message.Raw[] | null;
|
|
32
33
|
feedback?: StepFeedback.Raw | null;
|
|
33
34
|
project_id?: string | null;
|
|
35
|
+
error_type?: string | null;
|
|
36
|
+
error_data?: Record<string, unknown> | null;
|
|
37
|
+
status?: StepStatus.Raw | null;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const StopReasonType_1 = require("./StopReasonType");
|
|
42
42
|
const Message_1 = require("./Message");
|
|
43
43
|
const StepFeedback_1 = require("./StepFeedback");
|
|
44
|
+
const StepStatus_1 = require("./StepStatus");
|
|
44
45
|
exports.Step = core.serialization.object({
|
|
45
46
|
id: core.serialization.string(),
|
|
46
47
|
origin: core.serialization.string().optional(),
|
|
@@ -63,4 +64,7 @@ exports.Step = core.serialization.object({
|
|
|
63
64
|
messages: core.serialization.list(Message_1.Message).optional(),
|
|
64
65
|
feedback: StepFeedback_1.StepFeedback.optional(),
|
|
65
66
|
projectId: core.serialization.property("project_id", core.serialization.string().optional()),
|
|
67
|
+
errorType: core.serialization.property("error_type", core.serialization.string().optional()),
|
|
68
|
+
errorData: core.serialization.property("error_data", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
69
|
+
status: StepStatus_1.StepStatus.optional(),
|
|
66
70
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const StepStatus: core.serialization.Schema<serializers.StepStatus.Raw, Letta.StepStatus>;
|
|
8
|
+
export declare namespace StepStatus {
|
|
9
|
+
type Raw = "pending" | "success" | "failed" | "cancelled";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.StepStatus = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.StepStatus = core.serialization.enum_(["pending", "success", "failed", "cancelled"]);
|
|
@@ -205,6 +205,7 @@ export * from "./SourceUpdate";
|
|
|
205
205
|
export * from "./StdioServerConfig";
|
|
206
206
|
export * from "./StepFeedback";
|
|
207
207
|
export * from "./Step";
|
|
208
|
+
export * from "./StepStatus";
|
|
208
209
|
export * from "./StopReasonType";
|
|
209
210
|
export * from "./StreamableHttpServerConfig";
|
|
210
211
|
export * from "./SupervisorManager";
|
|
@@ -221,6 +221,7 @@ __exportStar(require("./SourceUpdate"), exports);
|
|
|
221
221
|
__exportStar(require("./StdioServerConfig"), exports);
|
|
222
222
|
__exportStar(require("./StepFeedback"), exports);
|
|
223
223
|
__exportStar(require("./Step"), exports);
|
|
224
|
+
__exportStar(require("./StepStatus"), exports);
|
|
224
225
|
__exportStar(require("./StopReasonType"), exports);
|
|
225
226
|
__exportStar(require("./StreamableHttpServerConfig"), exports);
|
|
226
227
|
__exportStar(require("./SupervisorManager"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.176";
|
package/version.js
CHANGED