@letta-ai/letta-client 0.1.57 → 0.1.59
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 +13 -13
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- 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/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/blocks/client/Client.js +18 -7
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- package/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +3 -2
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- 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 +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/api/resources/tools/client/Client.d.ts +36 -0
- package/api/resources/tools/client/Client.js +206 -11
- package/api/resources/tools/index.d.ts +1 -0
- package/api/resources/tools/index.js +1 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/api/resources/tools/types/index.d.ts +1 -0
- package/api/resources/tools/types/index.js +17 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/Identity.d.ts +2 -0
- package/api/types/IdentityCreate.d.ts +2 -0
- package/api/types/LocalServerConfig.d.ts +13 -0
- package/api/types/LocalServerConfig.js +5 -0
- package/api/types/McpServerType.d.ts +8 -0
- package/api/types/McpServerType.js +10 -0
- package/api/types/McpTool.d.ts +13 -0
- package/api/types/McpTool.js +5 -0
- package/api/types/SseServerConfig.d.ts +11 -0
- package/api/types/SseServerConfig.js +5 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/api/resources/agents/client/Client.js +13 -13
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +1 -1
- 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/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/blocks/client/Client.js +18 -7
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +8 -0
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +2 -0
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +3 -2
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- 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 +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +2 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/api/resources/tools/client/Client.d.ts +36 -0
- package/dist/api/resources/tools/client/Client.js +206 -11
- package/dist/api/resources/tools/index.d.ts +1 -0
- package/dist/api/resources/tools/index.js +1 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +5 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.js +5 -0
- package/dist/api/resources/tools/types/index.d.ts +1 -0
- package/dist/api/resources/tools/types/index.js +17 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/Identity.d.ts +2 -0
- package/dist/api/types/IdentityCreate.d.ts +2 -0
- package/dist/api/types/LocalServerConfig.d.ts +13 -0
- package/dist/api/types/LocalServerConfig.js +5 -0
- package/dist/api/types/McpServerType.d.ts +8 -0
- package/dist/api/types/McpServerType.js +10 -0
- package/dist/api/types/McpTool.d.ts +13 -0
- package/dist/api/types/McpTool.js +5 -0
- package/dist/api/types/SseServerConfig.d.ts +11 -0
- package/dist/api/types/SseServerConfig.js +5 -0
- package/dist/api/types/ToolType.d.ts +2 -1
- package/dist/api/types/ToolType.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -1
- package/dist/serialization/resources/index.js +3 -2
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/dist/serialization/resources/tools/client/index.d.ts +2 -0
- package/dist/serialization/resources/tools/client/index.js +3 -1
- package/dist/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/dist/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/dist/serialization/resources/tools/index.d.ts +1 -0
- package/dist/serialization/resources/tools/index.js +1 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/dist/serialization/resources/tools/types/index.d.ts +1 -0
- package/dist/serialization/resources/tools/types/index.js +17 -0
- package/dist/serialization/types/Identity.d.ts +1 -0
- package/dist/serialization/types/Identity.js +1 -0
- package/dist/serialization/types/IdentityCreate.d.ts +1 -0
- package/dist/serialization/types/IdentityCreate.js +1 -0
- package/dist/serialization/types/LocalServerConfig.d.ts +16 -0
- package/dist/serialization/types/LocalServerConfig.js +47 -0
- package/dist/serialization/types/McpServerType.d.ts +10 -0
- package/dist/serialization/types/McpServerType.js +41 -0
- package/dist/serialization/types/McpTool.d.ts +15 -0
- package/dist/serialization/types/McpTool.js +47 -0
- package/dist/serialization/types/SseServerConfig.d.ts +15 -0
- package/dist/serialization/types/SseServerConfig.js +46 -0
- package/dist/serialization/types/ToolType.d.ts +1 -1
- package/dist/serialization/types/ToolType.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +189 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +1 -0
- package/serialization/resources/identities/client/requests/IdentityUpdate.js +1 -0
- package/serialization/resources/index.d.ts +2 -1
- package/serialization/resources/index.js +3 -2
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.d.ts +1 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemToolType.js +1 -0
- package/serialization/resources/tools/client/index.d.ts +2 -0
- package/serialization/resources/tools/client/index.js +3 -1
- package/serialization/resources/tools/client/listMcpServers.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpServers.js +42 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.d.ts +11 -0
- package/serialization/resources/tools/client/listMcpToolsByServer.js +42 -0
- package/serialization/resources/tools/index.d.ts +1 -0
- package/serialization/resources/tools/index.js +1 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +12 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.js +43 -0
- package/serialization/resources/tools/types/index.d.ts +1 -0
- package/serialization/resources/tools/types/index.js +17 -0
- package/serialization/types/Identity.d.ts +1 -0
- package/serialization/types/Identity.js +1 -0
- package/serialization/types/IdentityCreate.d.ts +1 -0
- package/serialization/types/IdentityCreate.js +1 -0
- package/serialization/types/LocalServerConfig.d.ts +16 -0
- package/serialization/types/LocalServerConfig.js +47 -0
- package/serialization/types/McpServerType.d.ts +10 -0
- package/serialization/types/McpServerType.js +41 -0
- package/serialization/types/McpTool.d.ts +15 -0
- package/serialization/types/McpTool.js +47 -0
- package/serialization/types/SseServerConfig.d.ts +15 -0
- package/serialization/types/SseServerConfig.js +46 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
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 McpTool: core.serialization.ObjectSchema<serializers.McpTool.Raw, Letta.McpTool>;
|
|
8
|
+
export declare namespace McpTool {
|
|
9
|
+
interface Raw {
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string | null;
|
|
12
|
+
inputSchema: Record<string, unknown>;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -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.McpTool = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.McpTool = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
name: core.serialization.string(),
|
|
44
|
+
description: core.serialization.string().optional(),
|
|
45
|
+
inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
46
|
+
})
|
|
47
|
+
.passthrough();
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { McpServerType } from "./McpServerType";
|
|
8
|
+
export declare const SseServerConfig: core.serialization.ObjectSchema<serializers.SseServerConfig.Raw, Letta.SseServerConfig>;
|
|
9
|
+
export declare namespace SseServerConfig {
|
|
10
|
+
interface Raw {
|
|
11
|
+
server_name: string;
|
|
12
|
+
type?: McpServerType.Raw | null;
|
|
13
|
+
server_url: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.SseServerConfig = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const McpServerType_1 = require("./McpServerType");
|
|
42
|
+
exports.SseServerConfig = core.serialization.object({
|
|
43
|
+
serverName: core.serialization.property("server_name", core.serialization.string()),
|
|
44
|
+
type: McpServerType_1.McpServerType.optional(),
|
|
45
|
+
serverUrl: core.serialization.property("server_url", core.serialization.string()),
|
|
46
|
+
});
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ToolType: core.serialization.Schema<serializers.ToolType.Raw, Letta.ToolType>;
|
|
8
8
|
export declare namespace ToolType {
|
|
9
|
-
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain";
|
|
9
|
+
type Raw = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
10
10
|
}
|
|
@@ -108,6 +108,9 @@ export * from "./LettaRequestConfig";
|
|
|
108
108
|
export * from "./LettaResponse";
|
|
109
109
|
export * from "./LettaUsageStatistics";
|
|
110
110
|
export * from "./LocalSandboxConfig";
|
|
111
|
+
export * from "./LocalServerConfig";
|
|
112
|
+
export * from "./McpServerType";
|
|
113
|
+
export * from "./McpTool";
|
|
111
114
|
export * from "./Memory";
|
|
112
115
|
export * from "./Message";
|
|
113
116
|
export * from "./MessageCreateRole";
|
|
@@ -124,6 +127,7 @@ export * from "./ResponseFormatJsonObject";
|
|
|
124
127
|
export * from "./ResponseFormatJsonSchema";
|
|
125
128
|
export * from "./ResponseFormatText";
|
|
126
129
|
export * from "./Run";
|
|
130
|
+
export * from "./SseServerConfig";
|
|
127
131
|
export * from "./SandboxConfig";
|
|
128
132
|
export * from "./SandboxConfigCreateConfig";
|
|
129
133
|
export * from "./SandboxConfigCreate";
|
|
@@ -124,6 +124,9 @@ __exportStar(require("./LettaRequestConfig"), exports);
|
|
|
124
124
|
__exportStar(require("./LettaResponse"), exports);
|
|
125
125
|
__exportStar(require("./LettaUsageStatistics"), exports);
|
|
126
126
|
__exportStar(require("./LocalSandboxConfig"), exports);
|
|
127
|
+
__exportStar(require("./LocalServerConfig"), exports);
|
|
128
|
+
__exportStar(require("./McpServerType"), exports);
|
|
129
|
+
__exportStar(require("./McpTool"), exports);
|
|
127
130
|
__exportStar(require("./Memory"), exports);
|
|
128
131
|
__exportStar(require("./Message"), exports);
|
|
129
132
|
__exportStar(require("./MessageCreateRole"), exports);
|
|
@@ -140,6 +143,7 @@ __exportStar(require("./ResponseFormatJsonObject"), exports);
|
|
|
140
143
|
__exportStar(require("./ResponseFormatJsonSchema"), exports);
|
|
141
144
|
__exportStar(require("./ResponseFormatText"), exports);
|
|
142
145
|
__exportStar(require("./Run"), exports);
|
|
146
|
+
__exportStar(require("./SseServerConfig"), exports);
|
|
143
147
|
__exportStar(require("./SandboxConfig"), exports);
|
|
144
148
|
__exportStar(require("./SandboxConfigCreateConfig"), exports);
|
|
145
149
|
__exportStar(require("./SandboxConfigCreate"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.
|
|
1
|
+
export declare const SDK_VERSION = "0.1.59";
|
package/version.js
CHANGED