@letta-ai/letta-client 0.1.181 → 0.1.183
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.d.ts +14 -0
- package/api/resources/agents/client/Client.js +99 -10
- package/api/resources/agents/client/requests/ListAgentFilesRequest.d.ts +21 -0
- package/api/resources/agents/client/requests/index.d.ts +1 -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.d.ts +9 -0
- package/api/resources/agents/resources/files/client/Client.js +55 -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 +6 -3
- package/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -0
- 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 +6 -6
- 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 +6 -3
- package/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -0
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +3 -3
- 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 +8 -8
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentFileAttachment.d.ts +28 -0
- package/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
- package/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
- package/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +1 -1
- package/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
- package/api/types/DuplicateFileHandling.d.ts +2 -1
- package/api/types/DuplicateFileHandling.js +1 -0
- package/api/types/LettaSchemasAgentFileMessageSchema.d.ts +8 -0
- package/api/types/Message.d.ts +1 -1
- package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
- package/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
- package/api/types/PaginatedAgentFiles.d.ts +15 -0
- package/api/types/PaginatedAgentFiles.js +5 -0
- package/api/types/index.d.ts +5 -1
- package/api/types/index.js +5 -1
- package/dist/api/resources/agents/client/Client.d.ts +14 -0
- package/dist/api/resources/agents/client/Client.js +99 -10
- package/dist/api/resources/agents/client/requests/ListAgentFilesRequest.d.ts +21 -0
- package/dist/api/resources/agents/client/requests/ListAgentFilesRequest.js +5 -0
- package/dist/api/resources/agents/client/requests/index.d.ts +1 -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.d.ts +9 -0
- package/dist/api/resources/agents/resources/files/client/Client.js +55 -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 +6 -3
- package/dist/api/resources/folders/resources/files/client/requests/BodyUploadFileToFolder.d.ts +4 -0
- 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 +6 -6
- 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 +6 -3
- package/dist/api/resources/sources/resources/files/client/requests/BodyUploadFileToSource.d.ts +4 -0
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +3 -3
- 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 +8 -8
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentFileAttachment.d.ts +28 -0
- package/dist/api/types/AgentFileAttachment.js +5 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.d.ts +11 -0
- package/dist/api/types/ChatCompletionMessageFunctionToolCallInput.js +5 -0
- package/dist/api/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +1 -1
- package/dist/api/types/ChatCompletionMessageFunctionToolCallOutput.js +5 -0
- package/dist/api/types/DuplicateFileHandling.d.ts +2 -1
- package/dist/api/types/DuplicateFileHandling.js +1 -0
- package/dist/api/types/LettaSchemasAgentFileMessageSchema.d.ts +8 -0
- package/dist/api/types/Message.d.ts +1 -1
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +9 -0
- package/dist/api/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +5 -0
- package/dist/api/types/PaginatedAgentFiles.d.ts +15 -0
- package/dist/api/types/PaginatedAgentFiles.js +5 -0
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/index.js +5 -1
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +2 -0
- package/dist/serialization/types/AgentFileAttachment.d.ts +21 -0
- package/dist/serialization/types/AgentFileAttachment.js +52 -0
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
- package/dist/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
- package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
- package/dist/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +2 -2
- package/dist/serialization/types/DuplicateFileHandling.d.ts +1 -1
- package/dist/serialization/types/DuplicateFileHandling.js +1 -1
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +6 -0
- package/dist/serialization/types/LettaSchemasAgentFileMessageSchema.js +6 -0
- package/dist/serialization/types/Message.d.ts +2 -2
- package/dist/serialization/types/Message.js +2 -2
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
- package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
- package/dist/serialization/types/PaginatedAgentFiles.d.ts +15 -0
- package/dist/serialization/types/PaginatedAgentFiles.js +46 -0
- package/dist/serialization/types/index.d.ts +5 -1
- package/dist/serialization/types/index.js +5 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +119 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesGetTemplateSnapshotResponseAgentsItemProperties.js +2 -0
- package/serialization/types/AgentFileAttachment.d.ts +21 -0
- package/serialization/types/AgentFileAttachment.js +52 -0
- package/serialization/types/ChatCompletionMessageFunctionToolCallInput.d.ts +16 -0
- package/serialization/types/ChatCompletionMessageFunctionToolCallInput.js +48 -0
- package/serialization/types/{ChatCompletionMessageFunctionToolCall.d.ts → ChatCompletionMessageFunctionToolCallOutput.d.ts} +2 -2
- package/serialization/types/{ChatCompletionMessageFunctionToolCall.js → ChatCompletionMessageFunctionToolCallOutput.js} +2 -2
- package/serialization/types/DuplicateFileHandling.d.ts +1 -1
- package/serialization/types/DuplicateFileHandling.js +1 -1
- package/serialization/types/LettaSchemasAgentFileMessageSchema.d.ts +6 -0
- package/serialization/types/LettaSchemasAgentFileMessageSchema.js +6 -0
- package/serialization/types/Message.d.ts +2 -2
- package/serialization/types/Message.js +2 -2
- package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts +14 -0
- package/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js +46 -0
- package/serialization/types/PaginatedAgentFiles.d.ts +15 -0
- package/serialization/types/PaginatedAgentFiles.js +46 -0
- package/serialization/types/index.d.ts +5 -1
- package/serialization/types/index.js +5 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/{types/ChatCompletionMessageFunctionToolCall.js → resources/agents/client/requests/ListAgentFilesRequest.js} +0 -0
- /package/{dist/api/types/ChatCompletionMessageFunctionToolCall.js → api/types/AgentFileAttachment.js} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
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.AgentFileAttachment = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.AgentFileAttachment = core.serialization.object({
|
|
42
|
+
id: core.serialization.string(),
|
|
43
|
+
fileId: core.serialization.property("file_id", core.serialization.string()),
|
|
44
|
+
fileName: core.serialization.property("file_name", core.serialization.string()),
|
|
45
|
+
folderId: core.serialization.property("folder_id", core.serialization.string()),
|
|
46
|
+
folderName: core.serialization.property("folder_name", core.serialization.string()),
|
|
47
|
+
isOpen: core.serialization.property("is_open", core.serialization.boolean()),
|
|
48
|
+
lastAccessedAt: core.serialization.property("last_accessed_at", core.serialization.date().optional()),
|
|
49
|
+
visibleContent: core.serialization.property("visible_content", core.serialization.string().optional()),
|
|
50
|
+
startLine: core.serialization.property("start_line", core.serialization.number().optional()),
|
|
51
|
+
endLine: core.serialization.property("end_line", core.serialization.number().optional()),
|
|
52
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction } from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction";
|
|
8
|
+
export declare const ChatCompletionMessageFunctionToolCallInput: core.serialization.ObjectSchema<serializers.ChatCompletionMessageFunctionToolCallInput.Raw, Letta.ChatCompletionMessageFunctionToolCallInput>;
|
|
9
|
+
export declare namespace ChatCompletionMessageFunctionToolCallInput {
|
|
10
|
+
interface Raw {
|
|
11
|
+
id: string;
|
|
12
|
+
function: OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.Raw;
|
|
13
|
+
type: "function";
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ChatCompletionMessageFunctionToolCallInput = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction_1 = require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction");
|
|
42
|
+
exports.ChatCompletionMessageFunctionToolCallInput = core.serialization
|
|
43
|
+
.object({
|
|
44
|
+
id: core.serialization.string(),
|
|
45
|
+
function: OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction_1.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction,
|
|
46
|
+
type: core.serialization.stringLiteral("function"),
|
|
47
|
+
})
|
|
48
|
+
.passthrough();
|
|
@@ -5,8 +5,8 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FunctionOutput } from "./FunctionOutput";
|
|
8
|
-
export declare const
|
|
9
|
-
export declare namespace
|
|
8
|
+
export declare const ChatCompletionMessageFunctionToolCallOutput: core.serialization.ObjectSchema<serializers.ChatCompletionMessageFunctionToolCallOutput.Raw, Letta.ChatCompletionMessageFunctionToolCallOutput>;
|
|
9
|
+
export declare namespace ChatCompletionMessageFunctionToolCallOutput {
|
|
10
10
|
interface Raw {
|
|
11
11
|
id: string;
|
|
12
12
|
function: FunctionOutput.Raw;
|
|
@@ -36,10 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
39
|
+
exports.ChatCompletionMessageFunctionToolCallOutput = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const FunctionOutput_1 = require("./FunctionOutput");
|
|
42
|
-
exports.
|
|
42
|
+
exports.ChatCompletionMessageFunctionToolCallOutput = core.serialization
|
|
43
43
|
.object({
|
|
44
44
|
id: core.serialization.string(),
|
|
45
45
|
function: FunctionOutput_1.FunctionOutput,
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const DuplicateFileHandling: core.serialization.Schema<serializers.DuplicateFileHandling.Raw, Letta.DuplicateFileHandling>;
|
|
8
8
|
export declare namespace DuplicateFileHandling {
|
|
9
|
-
type Raw = "skip" | "error" | "suffix";
|
|
9
|
+
type Raw = "skip" | "error" | "suffix" | "replace";
|
|
10
10
|
}
|
|
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.DuplicateFileHandling = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
-
exports.DuplicateFileHandling = core.serialization.enum_(["skip", "error", "suffix"]);
|
|
41
|
+
exports.DuplicateFileHandling = core.serialization.enum_(["skip", "error", "suffix", "replace"]);
|
|
@@ -6,6 +6,8 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { MessageRole } from "./MessageRole";
|
|
8
8
|
import { LettaSchemasAgentFileMessageSchemaContent } from "./LettaSchemasAgentFileMessageSchemaContent";
|
|
9
|
+
import { ChatCompletionMessageFunctionToolCallInput } from "./ChatCompletionMessageFunctionToolCallInput";
|
|
10
|
+
import { ToolReturn } from "./ToolReturn";
|
|
9
11
|
export declare const LettaSchemasAgentFileMessageSchema: core.serialization.ObjectSchema<serializers.LettaSchemasAgentFileMessageSchema.Raw, Letta.LettaSchemasAgentFileMessageSchema>;
|
|
10
12
|
export declare namespace LettaSchemasAgentFileMessageSchema {
|
|
11
13
|
interface Raw {
|
|
@@ -19,5 +21,9 @@ export declare namespace LettaSchemasAgentFileMessageSchema {
|
|
|
19
21
|
id: string;
|
|
20
22
|
model?: string | null;
|
|
21
23
|
agent_id?: string | null;
|
|
24
|
+
tool_calls?: ChatCompletionMessageFunctionToolCallInput.Raw[] | null;
|
|
25
|
+
tool_call_id?: string | null;
|
|
26
|
+
tool_returns?: ToolReturn.Raw[] | null;
|
|
27
|
+
created_at?: string | null;
|
|
22
28
|
}
|
|
23
29
|
}
|
|
@@ -40,6 +40,8 @@ exports.LettaSchemasAgentFileMessageSchema = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const MessageRole_1 = require("./MessageRole");
|
|
42
42
|
const LettaSchemasAgentFileMessageSchemaContent_1 = require("./LettaSchemasAgentFileMessageSchemaContent");
|
|
43
|
+
const ChatCompletionMessageFunctionToolCallInput_1 = require("./ChatCompletionMessageFunctionToolCallInput");
|
|
44
|
+
const ToolReturn_1 = require("./ToolReturn");
|
|
43
45
|
exports.LettaSchemasAgentFileMessageSchema = core.serialization.object({
|
|
44
46
|
role: MessageRole_1.MessageRole,
|
|
45
47
|
content: LettaSchemasAgentFileMessageSchemaContent_1.LettaSchemasAgentFileMessageSchemaContent,
|
|
@@ -51,4 +53,8 @@ exports.LettaSchemasAgentFileMessageSchema = core.serialization.object({
|
|
|
51
53
|
id: core.serialization.string(),
|
|
52
54
|
model: core.serialization.string().optional(),
|
|
53
55
|
agentId: core.serialization.property("agent_id", core.serialization.string().optional()),
|
|
56
|
+
toolCalls: core.serialization.property("tool_calls", core.serialization.list(ChatCompletionMessageFunctionToolCallInput_1.ChatCompletionMessageFunctionToolCallInput).optional()),
|
|
57
|
+
toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
|
|
58
|
+
toolReturns: core.serialization.property("tool_returns", core.serialization.list(ToolReturn_1.ToolReturn).optional()),
|
|
59
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
54
60
|
});
|
|
@@ -6,7 +6,7 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { MessageRole } from "./MessageRole";
|
|
8
8
|
import { MessageContentItem } from "./MessageContentItem";
|
|
9
|
-
import {
|
|
9
|
+
import { ChatCompletionMessageFunctionToolCallOutput } from "./ChatCompletionMessageFunctionToolCallOutput";
|
|
10
10
|
import { ToolReturn } from "./ToolReturn";
|
|
11
11
|
export declare const Message: core.serialization.ObjectSchema<serializers.Message.Raw, Letta.Message>;
|
|
12
12
|
export declare namespace Message {
|
|
@@ -21,7 +21,7 @@ export declare namespace Message {
|
|
|
21
21
|
role: MessageRole.Raw;
|
|
22
22
|
content?: MessageContentItem.Raw[] | null;
|
|
23
23
|
name?: string | null;
|
|
24
|
-
tool_calls?:
|
|
24
|
+
tool_calls?: ChatCompletionMessageFunctionToolCallOutput.Raw[] | null;
|
|
25
25
|
tool_call_id?: string | null;
|
|
26
26
|
step_id?: string | null;
|
|
27
27
|
otid?: string | null;
|
|
@@ -40,7 +40,7 @@ exports.Message = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const MessageRole_1 = require("./MessageRole");
|
|
42
42
|
const MessageContentItem_1 = require("./MessageContentItem");
|
|
43
|
-
const
|
|
43
|
+
const ChatCompletionMessageFunctionToolCallOutput_1 = require("./ChatCompletionMessageFunctionToolCallOutput");
|
|
44
44
|
const ToolReturn_1 = require("./ToolReturn");
|
|
45
45
|
exports.Message = core.serialization.object({
|
|
46
46
|
createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
|
|
@@ -53,7 +53,7 @@ exports.Message = core.serialization.object({
|
|
|
53
53
|
role: MessageRole_1.MessageRole,
|
|
54
54
|
content: core.serialization.list(MessageContentItem_1.MessageContentItem).optional(),
|
|
55
55
|
name: core.serialization.string().optional(),
|
|
56
|
-
toolCalls: core.serialization.property("tool_calls", core.serialization.list(
|
|
56
|
+
toolCalls: core.serialization.property("tool_calls", core.serialization.list(ChatCompletionMessageFunctionToolCallOutput_1.ChatCompletionMessageFunctionToolCallOutput).optional()),
|
|
57
57
|
toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
|
|
58
58
|
stepId: core.serialization.property("step_id", core.serialization.string().optional()),
|
|
59
59
|
otid: core.serialization.string().optional(),
|
package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction: core.serialization.ObjectSchema<serializers.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.Raw, Letta.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction>;
|
|
8
|
+
export declare namespace OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction {
|
|
9
|
+
interface Raw {
|
|
10
|
+
arguments: string;
|
|
11
|
+
name: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/dist/serialization/types/OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction.js
ADDED
|
@@ -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.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction = core.serialization
|
|
42
|
+
.object({
|
|
43
|
+
arguments: core.serialization.string(),
|
|
44
|
+
name: core.serialization.string(),
|
|
45
|
+
})
|
|
46
|
+
.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 { AgentFileAttachment } from "./AgentFileAttachment";
|
|
8
|
+
export declare const PaginatedAgentFiles: core.serialization.ObjectSchema<serializers.PaginatedAgentFiles.Raw, Letta.PaginatedAgentFiles>;
|
|
9
|
+
export declare namespace PaginatedAgentFiles {
|
|
10
|
+
interface Raw {
|
|
11
|
+
files: AgentFileAttachment.Raw[];
|
|
12
|
+
next_cursor?: string | null;
|
|
13
|
+
has_more: boolean;
|
|
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.PaginatedAgentFiles = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const AgentFileAttachment_1 = require("./AgentFileAttachment");
|
|
42
|
+
exports.PaginatedAgentFiles = core.serialization.object({
|
|
43
|
+
files: core.serialization.list(AgentFileAttachment_1.AgentFileAttachment),
|
|
44
|
+
nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()),
|
|
45
|
+
hasMore: core.serialization.property("has_more", core.serialization.boolean()),
|
|
46
|
+
});
|
|
@@ -6,6 +6,7 @@ export * from "./ActionModel";
|
|
|
6
6
|
export * from "./ActionParametersModel";
|
|
7
7
|
export * from "./ActionResponseModel";
|
|
8
8
|
export * from "./AgentEnvironmentVariable";
|
|
9
|
+
export * from "./AgentFileAttachment";
|
|
9
10
|
export * from "./AgentFileSchema";
|
|
10
11
|
export * from "./AgentStateToolRulesItem";
|
|
11
12
|
export * from "./AgentStateResponseFormat";
|
|
@@ -48,7 +49,8 @@ export * from "./ChatCompletionFunctionCallOptionParam";
|
|
|
48
49
|
export * from "./ChatCompletionFunctionMessageParam";
|
|
49
50
|
export * from "./ChatCompletionFunctionToolParam";
|
|
50
51
|
export * from "./ChatCompletionMessageCustomToolCallParam";
|
|
51
|
-
export * from "./
|
|
52
|
+
export * from "./ChatCompletionMessageFunctionToolCallInput";
|
|
53
|
+
export * from "./ChatCompletionMessageFunctionToolCallOutput";
|
|
52
54
|
export * from "./ChatCompletionMessageFunctionToolCallParam";
|
|
53
55
|
export * from "./ChatCompletionNamedToolChoiceCustomParam";
|
|
54
56
|
export * from "./ChatCompletionNamedToolChoiceParam";
|
|
@@ -187,6 +189,7 @@ export * from "./Organization";
|
|
|
187
189
|
export * from "./OrganizationCreate";
|
|
188
190
|
export * from "./OrganizationSourcesStats";
|
|
189
191
|
export * from "./OrganizationUpdate";
|
|
192
|
+
export * from "./PaginatedAgentFiles";
|
|
190
193
|
export * from "./ParameterProperties";
|
|
191
194
|
export * from "./ParametersSchema";
|
|
192
195
|
export * from "./ParentToolRule";
|
|
@@ -293,6 +296,7 @@ export * from "./LettaSerializeSchemasPydanticAgentSchemaToolSchema";
|
|
|
293
296
|
export * from "./OpenaiTypesChatChatCompletionCustomToolParamCustomFormat";
|
|
294
297
|
export * from "./OpenaiTypesChatChatCompletionCustomToolParamCustom";
|
|
295
298
|
export * from "./OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom";
|
|
299
|
+
export * from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction";
|
|
296
300
|
export * from "./OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction";
|
|
297
301
|
export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom";
|
|
298
302
|
export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./ActionModel"), exports);
|
|
|
22
22
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
23
23
|
__exportStar(require("./ActionResponseModel"), exports);
|
|
24
24
|
__exportStar(require("./AgentEnvironmentVariable"), exports);
|
|
25
|
+
__exportStar(require("./AgentFileAttachment"), exports);
|
|
25
26
|
__exportStar(require("./AgentFileSchema"), exports);
|
|
26
27
|
__exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
27
28
|
__exportStar(require("./AgentStateResponseFormat"), exports);
|
|
@@ -64,7 +65,8 @@ __exportStar(require("./ChatCompletionFunctionCallOptionParam"), exports);
|
|
|
64
65
|
__exportStar(require("./ChatCompletionFunctionMessageParam"), exports);
|
|
65
66
|
__exportStar(require("./ChatCompletionFunctionToolParam"), exports);
|
|
66
67
|
__exportStar(require("./ChatCompletionMessageCustomToolCallParam"), exports);
|
|
67
|
-
__exportStar(require("./
|
|
68
|
+
__exportStar(require("./ChatCompletionMessageFunctionToolCallInput"), exports);
|
|
69
|
+
__exportStar(require("./ChatCompletionMessageFunctionToolCallOutput"), exports);
|
|
68
70
|
__exportStar(require("./ChatCompletionMessageFunctionToolCallParam"), exports);
|
|
69
71
|
__exportStar(require("./ChatCompletionNamedToolChoiceCustomParam"), exports);
|
|
70
72
|
__exportStar(require("./ChatCompletionNamedToolChoiceParam"), exports);
|
|
@@ -203,6 +205,7 @@ __exportStar(require("./Organization"), exports);
|
|
|
203
205
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
204
206
|
__exportStar(require("./OrganizationSourcesStats"), exports);
|
|
205
207
|
__exportStar(require("./OrganizationUpdate"), exports);
|
|
208
|
+
__exportStar(require("./PaginatedAgentFiles"), exports);
|
|
206
209
|
__exportStar(require("./ParameterProperties"), exports);
|
|
207
210
|
__exportStar(require("./ParametersSchema"), exports);
|
|
208
211
|
__exportStar(require("./ParentToolRule"), exports);
|
|
@@ -309,6 +312,7 @@ __exportStar(require("./LettaSerializeSchemasPydanticAgentSchemaToolSchema"), ex
|
|
|
309
312
|
__exportStar(require("./OpenaiTypesChatChatCompletionCustomToolParamCustomFormat"), exports);
|
|
310
313
|
__exportStar(require("./OpenaiTypesChatChatCompletionCustomToolParamCustom"), exports);
|
|
311
314
|
__exportStar(require("./OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom"), exports);
|
|
315
|
+
__exportStar(require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction"), exports);
|
|
312
316
|
__exportStar(require("./OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction"), exports);
|
|
313
317
|
__exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom"), exports);
|
|
314
318
|
__exportStar(require("./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction"), 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.183";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -3059,6 +3059,77 @@ await client.agents.modify("agent_id");
|
|
|
3059
3059
|
</dl>
|
|
3060
3060
|
</details>
|
|
3061
3061
|
|
|
3062
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">listAgentFiles</a>(agentId, { ...params }) -> Letta.PaginatedAgentFiles</code></summary>
|
|
3063
|
+
<dl>
|
|
3064
|
+
<dd>
|
|
3065
|
+
|
|
3066
|
+
#### 📝 Description
|
|
3067
|
+
|
|
3068
|
+
<dl>
|
|
3069
|
+
<dd>
|
|
3070
|
+
|
|
3071
|
+
<dl>
|
|
3072
|
+
<dd>
|
|
3073
|
+
|
|
3074
|
+
Get the files attached to an agent with their open/closed status (paginated).
|
|
3075
|
+
|
|
3076
|
+
</dd>
|
|
3077
|
+
</dl>
|
|
3078
|
+
</dd>
|
|
3079
|
+
</dl>
|
|
3080
|
+
|
|
3081
|
+
#### 🔌 Usage
|
|
3082
|
+
|
|
3083
|
+
<dl>
|
|
3084
|
+
<dd>
|
|
3085
|
+
|
|
3086
|
+
<dl>
|
|
3087
|
+
<dd>
|
|
3088
|
+
|
|
3089
|
+
```typescript
|
|
3090
|
+
await client.agents.listAgentFiles("agent_id");
|
|
3091
|
+
```
|
|
3092
|
+
|
|
3093
|
+
</dd>
|
|
3094
|
+
</dl>
|
|
3095
|
+
</dd>
|
|
3096
|
+
</dl>
|
|
3097
|
+
|
|
3098
|
+
#### ⚙️ Parameters
|
|
3099
|
+
|
|
3100
|
+
<dl>
|
|
3101
|
+
<dd>
|
|
3102
|
+
|
|
3103
|
+
<dl>
|
|
3104
|
+
<dd>
|
|
3105
|
+
|
|
3106
|
+
**agentId:** `string`
|
|
3107
|
+
|
|
3108
|
+
</dd>
|
|
3109
|
+
</dl>
|
|
3110
|
+
|
|
3111
|
+
<dl>
|
|
3112
|
+
<dd>
|
|
3113
|
+
|
|
3114
|
+
**request:** `Letta.ListAgentFilesRequest`
|
|
3115
|
+
|
|
3116
|
+
</dd>
|
|
3117
|
+
</dl>
|
|
3118
|
+
|
|
3119
|
+
<dl>
|
|
3120
|
+
<dd>
|
|
3121
|
+
|
|
3122
|
+
**requestOptions:** `Agents.RequestOptions`
|
|
3123
|
+
|
|
3124
|
+
</dd>
|
|
3125
|
+
</dl>
|
|
3126
|
+
</dd>
|
|
3127
|
+
</dl>
|
|
3128
|
+
|
|
3129
|
+
</dd>
|
|
3130
|
+
</dl>
|
|
3131
|
+
</details>
|
|
3132
|
+
|
|
3062
3133
|
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">summarizeAgentConversation</a>(agentId, { ...params }) -> void</code></summary>
|
|
3063
3134
|
<dl>
|
|
3064
3135
|
<dd>
|
|
@@ -7877,6 +7948,54 @@ await client.agents.files.close("agent_id", "file_id");
|
|
|
7877
7948
|
</dl>
|
|
7878
7949
|
</details>
|
|
7879
7950
|
|
|
7951
|
+
<details><summary><code>client.agents.files.<a href="/src/api/resources/agents/resources/files/client/Client.ts">list</a>(agentId) -> void</code></summary>
|
|
7952
|
+
<dl>
|
|
7953
|
+
<dd>
|
|
7954
|
+
|
|
7955
|
+
#### 🔌 Usage
|
|
7956
|
+
|
|
7957
|
+
<dl>
|
|
7958
|
+
<dd>
|
|
7959
|
+
|
|
7960
|
+
<dl>
|
|
7961
|
+
<dd>
|
|
7962
|
+
|
|
7963
|
+
```typescript
|
|
7964
|
+
await client.agents.files.list("agent_id");
|
|
7965
|
+
```
|
|
7966
|
+
|
|
7967
|
+
</dd>
|
|
7968
|
+
</dl>
|
|
7969
|
+
</dd>
|
|
7970
|
+
</dl>
|
|
7971
|
+
|
|
7972
|
+
#### ⚙️ Parameters
|
|
7973
|
+
|
|
7974
|
+
<dl>
|
|
7975
|
+
<dd>
|
|
7976
|
+
|
|
7977
|
+
<dl>
|
|
7978
|
+
<dd>
|
|
7979
|
+
|
|
7980
|
+
**agentId:** `string`
|
|
7981
|
+
|
|
7982
|
+
</dd>
|
|
7983
|
+
</dl>
|
|
7984
|
+
|
|
7985
|
+
<dl>
|
|
7986
|
+
<dd>
|
|
7987
|
+
|
|
7988
|
+
**requestOptions:** `Files.RequestOptions`
|
|
7989
|
+
|
|
7990
|
+
</dd>
|
|
7991
|
+
</dl>
|
|
7992
|
+
</dd>
|
|
7993
|
+
</dl>
|
|
7994
|
+
|
|
7995
|
+
</dd>
|
|
7996
|
+
</dl>
|
|
7997
|
+
</details>
|
|
7998
|
+
|
|
7880
7999
|
## Agents CoreMemory
|
|
7881
8000
|
|
|
7882
8001
|
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">retrieve</a>(agentId) -> Letta.Memory</code></summary>
|
|
@@ -7,6 +7,8 @@ import * as core from "../../../../core";
|
|
|
7
7
|
export declare const TemplatesGetTemplateSnapshotResponseAgentsItemProperties: core.serialization.ObjectSchema<serializers.TemplatesGetTemplateSnapshotResponseAgentsItemProperties.Raw, Letta.TemplatesGetTemplateSnapshotResponseAgentsItemProperties>;
|
|
8
8
|
export declare namespace TemplatesGetTemplateSnapshotResponseAgentsItemProperties {
|
|
9
9
|
interface Raw {
|
|
10
|
+
enable_reasoner?: boolean | null;
|
|
11
|
+
put_inner_thoughts_in_kwargs?: boolean | null;
|
|
10
12
|
context_window_limit?: number | null;
|
|
11
13
|
max_tokens?: number | null;
|
|
12
14
|
max_reasoning_tokens?: number | null;
|
|
@@ -39,6 +39,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.TemplatesGetTemplateSnapshotResponseAgentsItemProperties = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
41
|
exports.TemplatesGetTemplateSnapshotResponseAgentsItemProperties = core.serialization.object({
|
|
42
|
+
enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
|
|
43
|
+
putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
|
|
42
44
|
contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
|
|
43
45
|
maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
|
|
44
46
|
maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
|
|
@@ -0,0 +1,21 @@
|
|
|
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 AgentFileAttachment: core.serialization.ObjectSchema<serializers.AgentFileAttachment.Raw, Letta.AgentFileAttachment>;
|
|
8
|
+
export declare namespace AgentFileAttachment {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
file_id: string;
|
|
12
|
+
file_name: string;
|
|
13
|
+
folder_id: string;
|
|
14
|
+
folder_name: string;
|
|
15
|
+
is_open: boolean;
|
|
16
|
+
last_accessed_at?: string | null;
|
|
17
|
+
visible_content?: string | null;
|
|
18
|
+
start_line?: number | null;
|
|
19
|
+
end_line?: number | null;
|
|
20
|
+
}
|
|
21
|
+
}
|