@letta-ai/letta-client 0.1.151 → 0.1.153
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.js +12 -9
- package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- 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/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 +12 -0
- package/api/resources/sources/client/Client.js +76 -9
- 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/AssistantMessage.d.ts +1 -0
- package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +4 -1
- package/api/types/CompletionCreateParamsStreamingServiceTier.js +3 -0
- package/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/api/types/McpTool.d.ts +3 -0
- package/api/types/Message.d.ts +2 -0
- package/api/types/ReasoningMessage.d.ts +1 -0
- package/api/types/Step.d.ts +2 -0
- package/api/types/SystemMessage.d.ts +1 -0
- package/api/types/ToolCallMessage.d.ts +1 -0
- package/api/types/ToolReturnMessage.d.ts +1 -0
- package/api/types/UserMessage.d.ts +1 -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.js +12 -9
- package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
- 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/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 +12 -0
- package/dist/api/resources/sources/client/Client.js +76 -9
- 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/AssistantMessage.d.ts +1 -0
- package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +4 -1
- package/dist/api/types/CompletionCreateParamsStreamingServiceTier.js +3 -0
- package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/api/types/McpTool.d.ts +3 -0
- package/dist/api/types/Message.d.ts +2 -0
- package/dist/api/types/ReasoningMessage.d.ts +1 -0
- package/dist/api/types/Step.d.ts +2 -0
- package/dist/api/types/SystemMessage.d.ts +1 -0
- package/dist/api/types/ToolCallMessage.d.ts +1 -0
- package/dist/api/types/ToolReturnMessage.d.ts +1 -0
- package/dist/api/types/UserMessage.d.ts +1 -0
- package/dist/serialization/resources/sources/client/getAgentsForSource.d.ts +9 -0
- package/dist/serialization/resources/sources/client/getAgentsForSource.js +41 -0
- package/dist/serialization/resources/sources/client/index.d.ts +1 -0
- package/dist/serialization/resources/sources/client/index.js +2 -1
- package/dist/serialization/types/AssistantMessage.d.ts +1 -0
- package/dist/serialization/types/AssistantMessage.js +1 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +1 -0
- package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
- package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
- package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
- package/dist/serialization/types/McpTool.d.ts +3 -0
- package/dist/serialization/types/McpTool.js +3 -0
- package/dist/serialization/types/Message.d.ts +1 -0
- package/dist/serialization/types/Message.js +1 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
- package/dist/serialization/types/ReasoningMessage.js +1 -0
- package/dist/serialization/types/Step.d.ts +2 -0
- package/dist/serialization/types/Step.js +2 -0
- package/dist/serialization/types/SystemMessage.d.ts +1 -0
- package/dist/serialization/types/SystemMessage.js +1 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
- package/dist/serialization/types/ToolCallMessage.js +1 -0
- package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/dist/serialization/types/ToolReturnMessage.js +1 -0
- package/dist/serialization/types/UserMessage.d.ts +1 -0
- package/dist/serialization/types/UserMessage.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +63 -0
- package/serialization/resources/sources/client/getAgentsForSource.d.ts +9 -0
- package/serialization/resources/sources/client/getAgentsForSource.js +41 -0
- package/serialization/resources/sources/client/index.d.ts +1 -0
- package/serialization/resources/sources/client/index.js +2 -1
- package/serialization/types/AssistantMessage.d.ts +1 -0
- package/serialization/types/AssistantMessage.js +1 -0
- package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsStreamingModel.js +1 -0
- package/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
- package/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
- package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
- package/serialization/types/HiddenReasoningMessage.js +1 -0
- package/serialization/types/McpTool.d.ts +3 -0
- package/serialization/types/McpTool.js +3 -0
- package/serialization/types/Message.d.ts +1 -0
- package/serialization/types/Message.js +1 -0
- package/serialization/types/ReasoningMessage.d.ts +1 -0
- package/serialization/types/ReasoningMessage.js +1 -0
- package/serialization/types/Step.d.ts +2 -0
- package/serialization/types/Step.js +2 -0
- package/serialization/types/SystemMessage.d.ts +1 -0
- package/serialization/types/SystemMessage.js +1 -0
- package/serialization/types/ToolCallMessage.d.ts +1 -0
- package/serialization/types/ToolCallMessage.js +1 -0
- package/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/serialization/types/ToolReturnMessage.js +1 -0
- package/serialization/types/UserMessage.d.ts +1 -0
- package/serialization/types/UserMessage.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
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 Response: core.serialization.Schema<serializers.sources.getAgentsForSource.Response.Raw, string[]>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = string[];
|
|
9
|
+
}
|
|
@@ -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.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.list(core.serialization.string());
|
|
@@ -36,8 +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.list = exports.retrieveByName = exports.count = void 0;
|
|
39
|
+
exports.getAgentsForSource = exports.list = exports.retrieveByName = exports.count = void 0;
|
|
40
40
|
exports.count = __importStar(require("./count"));
|
|
41
41
|
exports.retrieveByName = __importStar(require("./retrieveByName"));
|
|
42
42
|
exports.list = __importStar(require("./list"));
|
|
43
|
+
exports.getAgentsForSource = __importStar(require("./getAgentsForSource"));
|
|
43
44
|
__exportStar(require("./requests"), exports);
|
|
@@ -47,5 +47,6 @@ exports.AssistantMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
content: AssistantMessageContent_1.AssistantMessageContent,
|
|
51
52
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
|
|
8
8
|
export declare namespace CompletionCreateParamsStreamingModel {
|
|
9
|
-
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
9
|
+
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
10
10
|
}
|
|
@@ -62,6 +62,7 @@ exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminate
|
|
|
62
62
|
core.serialization.stringLiteral("gpt-4o-search-preview-2025-03-11"),
|
|
63
63
|
core.serialization.stringLiteral("gpt-4o-mini-search-preview-2025-03-11"),
|
|
64
64
|
core.serialization.stringLiteral("chatgpt-4o-latest"),
|
|
65
|
+
core.serialization.stringLiteral("codex-mini-latest"),
|
|
65
66
|
core.serialization.stringLiteral("gpt-4o-mini"),
|
|
66
67
|
core.serialization.stringLiteral("gpt-4o-mini-2024-07-18"),
|
|
67
68
|
core.serialization.stringLiteral("gpt-4-turbo"),
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsStreamingServiceTier.Raw, Letta.CompletionCreateParamsStreamingServiceTier>;
|
|
8
8
|
export declare namespace CompletionCreateParamsStreamingServiceTier {
|
|
9
|
-
type Raw = "auto" | "default";
|
|
9
|
+
type Raw = "auto" | "default" | "flex" | "scale" | "priority";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.CompletionCreateParamsStreamingServiceTier = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
|
|
41
|
+
exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex", "scale", "priority"]);
|
|
@@ -47,6 +47,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
|
|
51
52
|
hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
|
|
52
53
|
});
|
|
@@ -9,9 +9,12 @@ export declare const McpTool: core.serialization.ObjectSchema<serializers.McpToo
|
|
|
9
9
|
export declare namespace McpTool {
|
|
10
10
|
interface Raw {
|
|
11
11
|
name: string;
|
|
12
|
+
title?: string | null;
|
|
12
13
|
description?: string | null;
|
|
13
14
|
inputSchema: Record<string, unknown>;
|
|
15
|
+
outputSchema?: Record<string, unknown> | null;
|
|
14
16
|
annotations?: ToolAnnotations.Raw | null;
|
|
17
|
+
_meta?: Record<string, unknown> | null;
|
|
15
18
|
[key: string]: any;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -42,8 +42,11 @@ const ToolAnnotations_1 = require("./ToolAnnotations");
|
|
|
42
42
|
exports.McpTool = core.serialization
|
|
43
43
|
.object({
|
|
44
44
|
name: core.serialization.string(),
|
|
45
|
+
title: core.serialization.string().optional(),
|
|
45
46
|
description: core.serialization.string().optional(),
|
|
46
47
|
inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
48
|
+
outputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
47
49
|
annotations: ToolAnnotations_1.ToolAnnotations.optional(),
|
|
50
|
+
meta: core.serialization.property("_meta", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
48
51
|
})
|
|
49
52
|
.passthrough();
|
|
@@ -61,4 +61,5 @@ exports.Message = core.serialization.object({
|
|
|
61
61
|
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
62
62
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
63
63
|
batchItemId: core.serialization.property("batch_item_id", core.serialization.string().optional()),
|
|
64
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
64
65
|
});
|
|
@@ -47,6 +47,7 @@ exports.ReasoningMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
|
|
51
52
|
reasoning: core.serialization.string(),
|
|
52
53
|
signature: core.serialization.string().optional(),
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { StopReasonType } from "./StopReasonType";
|
|
7
8
|
import { Message } from "./Message";
|
|
8
9
|
import { StepFeedback } from "./StepFeedback";
|
|
9
10
|
export declare const Step: core.serialization.ObjectSchema<serializers.Step.Raw, Letta.Step>;
|
|
@@ -23,6 +24,7 @@ export declare namespace Step {
|
|
|
23
24
|
prompt_tokens?: number | null;
|
|
24
25
|
total_tokens?: number | null;
|
|
25
26
|
completion_tokens_details?: Record<string, unknown> | null;
|
|
27
|
+
stop_reason?: StopReasonType.Raw | null;
|
|
26
28
|
tags?: string[] | null;
|
|
27
29
|
tid?: string | null;
|
|
28
30
|
trace_id?: string | null;
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.Step = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const StopReasonType_1 = require("./StopReasonType");
|
|
41
42
|
const Message_1 = require("./Message");
|
|
42
43
|
const StepFeedback_1 = require("./StepFeedback");
|
|
43
44
|
exports.Step = core.serialization.object({
|
|
@@ -55,6 +56,7 @@ exports.Step = core.serialization.object({
|
|
|
55
56
|
promptTokens: core.serialization.property("prompt_tokens", core.serialization.number().optional()),
|
|
56
57
|
totalTokens: core.serialization.property("total_tokens", core.serialization.number().optional()),
|
|
57
58
|
completionTokensDetails: core.serialization.property("completion_tokens_details", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
59
|
+
stopReason: core.serialization.property("stop_reason", StopReasonType_1.StopReasonType.optional()),
|
|
58
60
|
tags: core.serialization.list(core.serialization.string()).optional(),
|
|
59
61
|
tid: core.serialization.string().optional(),
|
|
60
62
|
traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
|
|
@@ -46,5 +46,6 @@ exports.SystemMessage = core.serialization.object({
|
|
|
46
46
|
otid: core.serialization.string().optional(),
|
|
47
47
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
48
48
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
49
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
49
50
|
content: core.serialization.string(),
|
|
50
51
|
});
|
|
@@ -47,5 +47,6 @@ exports.ToolCallMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
toolCall: core.serialization.property("tool_call", ToolCallMessageToolCall_1.ToolCallMessageToolCall),
|
|
51
52
|
});
|
|
@@ -47,6 +47,7 @@ exports.ToolReturnMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
toolReturn: core.serialization.property("tool_return", core.serialization.string()),
|
|
51
52
|
status: ToolReturnMessageStatus_1.ToolReturnMessageStatus,
|
|
52
53
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
|
|
@@ -47,5 +47,6 @@ exports.UserMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
content: UserMessageContent_1.UserMessageContent,
|
|
51
52
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.153";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1739,6 +1739,69 @@ await client.sources.create({
|
|
|
1739
1739
|
</dl>
|
|
1740
1740
|
</details>
|
|
1741
1741
|
|
|
1742
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">getAgentsForSource</a>(sourceId) -> string[]</code></summary>
|
|
1743
|
+
<dl>
|
|
1744
|
+
<dd>
|
|
1745
|
+
|
|
1746
|
+
#### 📝 Description
|
|
1747
|
+
|
|
1748
|
+
<dl>
|
|
1749
|
+
<dd>
|
|
1750
|
+
|
|
1751
|
+
<dl>
|
|
1752
|
+
<dd>
|
|
1753
|
+
|
|
1754
|
+
Get all agent IDs that have the specified source attached.
|
|
1755
|
+
|
|
1756
|
+
</dd>
|
|
1757
|
+
</dl>
|
|
1758
|
+
</dd>
|
|
1759
|
+
</dl>
|
|
1760
|
+
|
|
1761
|
+
#### 🔌 Usage
|
|
1762
|
+
|
|
1763
|
+
<dl>
|
|
1764
|
+
<dd>
|
|
1765
|
+
|
|
1766
|
+
<dl>
|
|
1767
|
+
<dd>
|
|
1768
|
+
|
|
1769
|
+
```typescript
|
|
1770
|
+
await client.sources.getAgentsForSource("source_id");
|
|
1771
|
+
```
|
|
1772
|
+
|
|
1773
|
+
</dd>
|
|
1774
|
+
</dl>
|
|
1775
|
+
</dd>
|
|
1776
|
+
</dl>
|
|
1777
|
+
|
|
1778
|
+
#### ⚙️ Parameters
|
|
1779
|
+
|
|
1780
|
+
<dl>
|
|
1781
|
+
<dd>
|
|
1782
|
+
|
|
1783
|
+
<dl>
|
|
1784
|
+
<dd>
|
|
1785
|
+
|
|
1786
|
+
**sourceId:** `string`
|
|
1787
|
+
|
|
1788
|
+
</dd>
|
|
1789
|
+
</dl>
|
|
1790
|
+
|
|
1791
|
+
<dl>
|
|
1792
|
+
<dd>
|
|
1793
|
+
|
|
1794
|
+
**requestOptions:** `Sources.RequestOptions`
|
|
1795
|
+
|
|
1796
|
+
</dd>
|
|
1797
|
+
</dl>
|
|
1798
|
+
</dd>
|
|
1799
|
+
</dl>
|
|
1800
|
+
|
|
1801
|
+
</dd>
|
|
1802
|
+
</dl>
|
|
1803
|
+
</details>
|
|
1804
|
+
|
|
1742
1805
|
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">getFileMetadata</a>(sourceId, fileId, { ...params }) -> Letta.FileMetadata</code></summary>
|
|
1743
1806
|
<dl>
|
|
1744
1807
|
<dd>
|
|
@@ -0,0 +1,9 @@
|
|
|
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 Response: core.serialization.Schema<serializers.sources.getAgentsForSource.Response.Raw, string[]>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = string[];
|
|
9
|
+
}
|
|
@@ -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.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.list(core.serialization.string());
|
|
@@ -36,8 +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.list = exports.retrieveByName = exports.count = void 0;
|
|
39
|
+
exports.getAgentsForSource = exports.list = exports.retrieveByName = exports.count = void 0;
|
|
40
40
|
exports.count = __importStar(require("./count"));
|
|
41
41
|
exports.retrieveByName = __importStar(require("./retrieveByName"));
|
|
42
42
|
exports.list = __importStar(require("./list"));
|
|
43
|
+
exports.getAgentsForSource = __importStar(require("./getAgentsForSource"));
|
|
43
44
|
__exportStar(require("./requests"), exports);
|
|
@@ -47,5 +47,6 @@ exports.AssistantMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
content: AssistantMessageContent_1.AssistantMessageContent,
|
|
51
52
|
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
|
|
8
8
|
export declare namespace CompletionCreateParamsStreamingModel {
|
|
9
|
-
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
9
|
+
type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
|
|
10
10
|
}
|
|
@@ -62,6 +62,7 @@ exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminate
|
|
|
62
62
|
core.serialization.stringLiteral("gpt-4o-search-preview-2025-03-11"),
|
|
63
63
|
core.serialization.stringLiteral("gpt-4o-mini-search-preview-2025-03-11"),
|
|
64
64
|
core.serialization.stringLiteral("chatgpt-4o-latest"),
|
|
65
|
+
core.serialization.stringLiteral("codex-mini-latest"),
|
|
65
66
|
core.serialization.stringLiteral("gpt-4o-mini"),
|
|
66
67
|
core.serialization.stringLiteral("gpt-4o-mini-2024-07-18"),
|
|
67
68
|
core.serialization.stringLiteral("gpt-4-turbo"),
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const CompletionCreateParamsStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsStreamingServiceTier.Raw, Letta.CompletionCreateParamsStreamingServiceTier>;
|
|
8
8
|
export declare namespace CompletionCreateParamsStreamingServiceTier {
|
|
9
|
-
type Raw = "auto" | "default";
|
|
9
|
+
type Raw = "auto" | "default" | "flex" | "scale" | "priority";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.CompletionCreateParamsStreamingServiceTier = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
|
|
41
|
+
exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex", "scale", "priority"]);
|
|
@@ -47,6 +47,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
|
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
49
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
50
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
50
51
|
state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
|
|
51
52
|
hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
|
|
52
53
|
});
|
|
@@ -9,9 +9,12 @@ export declare const McpTool: core.serialization.ObjectSchema<serializers.McpToo
|
|
|
9
9
|
export declare namespace McpTool {
|
|
10
10
|
interface Raw {
|
|
11
11
|
name: string;
|
|
12
|
+
title?: string | null;
|
|
12
13
|
description?: string | null;
|
|
13
14
|
inputSchema: Record<string, unknown>;
|
|
15
|
+
outputSchema?: Record<string, unknown> | null;
|
|
14
16
|
annotations?: ToolAnnotations.Raw | null;
|
|
17
|
+
_meta?: Record<string, unknown> | null;
|
|
15
18
|
[key: string]: any;
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -42,8 +42,11 @@ const ToolAnnotations_1 = require("./ToolAnnotations");
|
|
|
42
42
|
exports.McpTool = core.serialization
|
|
43
43
|
.object({
|
|
44
44
|
name: core.serialization.string(),
|
|
45
|
+
title: core.serialization.string().optional(),
|
|
45
46
|
description: core.serialization.string().optional(),
|
|
46
47
|
inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
48
|
+
outputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
47
49
|
annotations: ToolAnnotations_1.ToolAnnotations.optional(),
|
|
50
|
+
meta: core.serialization.property("_meta", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
48
51
|
})
|
|
49
52
|
.passthrough();
|
|
@@ -61,4 +61,5 @@ exports.Message = core.serialization.object({
|
|
|
61
61
|
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
62
62
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
63
63
|
batchItemId: core.serialization.property("batch_item_id", core.serialization.string().optional()),
|
|
64
|
+
isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
|
|
64
65
|
});
|