@letta-ai/letta-client 0.1.123 → 0.1.124
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/README.md +1 -1
- package/api/resources/agents/client/Client.d.ts +18 -0
- package/api/resources/agents/client/Client.js +84 -9
- package/api/resources/agents/client/requests/SummarizeAgentConversationRequest.d.ts +15 -0
- package/api/resources/agents/client/requests/SummarizeAgentConversationRequest.js +5 -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/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 +6 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -0
- 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 +2 -2
- 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.d.ts +2 -1
- package/api/resources/jobs/client/Client.js +13 -6
- package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +13 -0
- package/api/resources/jobs/client/requests/JobsListActiveRequest.js +5 -0
- package/api/resources/jobs/client/requests/index.d.ts +1 -0
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +7 -7
- package/api/resources/sources/resources/files/client/Client.js +7 -4
- package/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +4 -0
- package/api/resources/sources/resources/index.d.ts +1 -0
- package/api/resources/sources/resources/index.js +1 -0
- package/api/resources/sources/resources/passages/client/Client.d.ts +2 -1
- package/api/resources/sources/resources/passages/client/Client.js +16 -3
- package/api/resources/sources/resources/passages/client/index.d.ts +1 -1
- package/api/resources/sources/resources/passages/client/index.js +15 -0
- package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
- package/api/resources/sources/resources/passages/client/requests/PassagesListRequest.js +5 -0
- package/api/resources/sources/resources/passages/client/requests/index.d.ts +1 -0
- package/api/resources/sources/resources/passages/client/requests/index.js +2 -0
- package/api/resources/steps/client/Client.js +11 -3
- package/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
- 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 +17 -17
- package/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
- package/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentType.d.ts +2 -1
- package/api/types/AgentType.js +1 -0
- package/api/types/Block.d.ts +2 -0
- package/api/types/BlockUpdate.d.ts +2 -0
- package/api/types/CreateBlock.d.ts +2 -0
- package/api/types/FileMetadata.d.ts +7 -0
- package/api/types/FileProcessingStatus.d.ts +11 -0
- package/api/types/FileProcessingStatus.js +13 -0
- package/api/types/LettaBatchRequest.d.ts +2 -0
- package/api/types/LettaRequest.d.ts +2 -0
- package/api/types/LettaStreamingRequest.d.ts +2 -0
- package/api/types/Memory.d.ts +2 -0
- package/api/types/MessageType.d.ts +13 -0
- package/api/types/MessageType.js +15 -0
- package/api/types/Passage.d.ts +2 -0
- package/api/types/ToolType.d.ts +2 -1
- package/api/types/ToolType.js +1 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/agents/client/Client.d.ts +18 -0
- package/dist/api/resources/agents/client/Client.js +84 -9
- package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.d.ts +15 -0
- package/dist/api/resources/agents/client/requests/SummarizeAgentConversationRequest.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/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 +6 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +2 -0
- 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 +2 -2
- 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.d.ts +2 -1
- package/dist/api/resources/jobs/client/Client.js +13 -6
- package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +13 -0
- package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.js +5 -0
- package/dist/api/resources/jobs/client/requests/index.d.ts +1 -0
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +7 -7
- package/dist/api/resources/sources/resources/files/client/Client.js +7 -4
- package/dist/api/resources/sources/resources/files/client/requests/FilesListRequest.d.ts +4 -0
- package/dist/api/resources/sources/resources/index.d.ts +1 -0
- package/dist/api/resources/sources/resources/index.js +1 -0
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +2 -1
- package/dist/api/resources/sources/resources/passages/client/Client.js +16 -3
- package/dist/api/resources/sources/resources/passages/client/index.d.ts +1 -1
- package/dist/api/resources/sources/resources/passages/client/index.js +15 -0
- package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.d.ts +21 -0
- package/dist/api/resources/sources/resources/passages/client/requests/PassagesListRequest.js +5 -0
- package/dist/api/resources/sources/resources/passages/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sources/resources/passages/client/requests/index.js +2 -0
- package/dist/api/resources/steps/client/Client.js +11 -3
- package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
- 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 +17 -17
- package/dist/api/resources/tools/types/AddMcpServerResponseItem.d.ts +1 -1
- package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +1 -1
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentType.d.ts +2 -1
- package/dist/api/types/AgentType.js +1 -0
- package/dist/api/types/Block.d.ts +2 -0
- package/dist/api/types/BlockUpdate.d.ts +2 -0
- package/dist/api/types/CreateBlock.d.ts +2 -0
- package/dist/api/types/FileMetadata.d.ts +7 -0
- package/dist/api/types/FileProcessingStatus.d.ts +11 -0
- package/dist/api/types/FileProcessingStatus.js +13 -0
- package/dist/api/types/LettaBatchRequest.d.ts +2 -0
- package/dist/api/types/LettaRequest.d.ts +2 -0
- package/dist/api/types/LettaStreamingRequest.d.ts +2 -0
- package/dist/api/types/Memory.d.ts +2 -0
- package/dist/api/types/MessageType.d.ts +13 -0
- package/dist/api/types/MessageType.js +15 -0
- package/dist/api/types/Passage.d.ts +2 -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 +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -0
- package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -2
- package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -2
- package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -2
- package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -2
- package/dist/serialization/types/AgentType.d.ts +1 -1
- package/dist/serialization/types/AgentType.js +1 -0
- package/dist/serialization/types/Block.d.ts +1 -0
- package/dist/serialization/types/Block.js +1 -0
- package/dist/serialization/types/BlockUpdate.d.ts +1 -0
- package/dist/serialization/types/BlockUpdate.js +1 -0
- package/dist/serialization/types/CreateBlock.d.ts +1 -0
- package/dist/serialization/types/CreateBlock.js +1 -0
- package/dist/serialization/types/FileMetadata.d.ts +4 -0
- package/dist/serialization/types/FileMetadata.js +4 -0
- package/dist/serialization/types/FileProcessingStatus.d.ts +10 -0
- package/dist/serialization/types/FileProcessingStatus.js +41 -0
- package/dist/serialization/types/LettaBatchRequest.d.ts +2 -0
- package/dist/serialization/types/LettaBatchRequest.js +2 -0
- package/dist/serialization/types/LettaRequest.d.ts +2 -0
- package/dist/serialization/types/LettaRequest.js +2 -0
- package/dist/serialization/types/LettaStreamingRequest.d.ts +2 -0
- package/dist/serialization/types/LettaStreamingRequest.js +2 -0
- package/dist/serialization/types/Memory.d.ts +1 -0
- package/dist/serialization/types/Memory.js +1 -0
- package/dist/serialization/types/MessageType.d.ts +10 -0
- package/dist/serialization/types/MessageType.js +49 -0
- package/dist/serialization/types/Passage.d.ts +1 -0
- package/dist/serialization/types/Passage.js +1 -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 +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +94 -2
- package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +1 -0
- package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +1 -0
- package/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +2 -2
- package/serialization/resources/tools/types/AddMcpServerResponseItem.js +2 -2
- package/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +2 -2
- package/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +2 -2
- package/serialization/types/AgentType.d.ts +1 -1
- package/serialization/types/AgentType.js +1 -0
- package/serialization/types/Block.d.ts +1 -0
- package/serialization/types/Block.js +1 -0
- package/serialization/types/BlockUpdate.d.ts +1 -0
- package/serialization/types/BlockUpdate.js +1 -0
- package/serialization/types/CreateBlock.d.ts +1 -0
- package/serialization/types/CreateBlock.js +1 -0
- package/serialization/types/FileMetadata.d.ts +4 -0
- package/serialization/types/FileMetadata.js +4 -0
- package/serialization/types/FileProcessingStatus.d.ts +10 -0
- package/serialization/types/FileProcessingStatus.js +41 -0
- package/serialization/types/LettaBatchRequest.d.ts +2 -0
- package/serialization/types/LettaBatchRequest.js +2 -0
- package/serialization/types/LettaRequest.d.ts +2 -0
- package/serialization/types/LettaRequest.js +2 -0
- package/serialization/types/LettaStreamingRequest.d.ts +2 -0
- package/serialization/types/LettaStreamingRequest.js +2 -0
- package/serialization/types/Memory.d.ts +1 -0
- package/serialization/types/Memory.js +1 -0
- package/serialization/types/MessageType.d.ts +10 -0
- package/serialization/types/MessageType.js +49 -0
- package/serialization/types/Passage.d.ts +1 -0
- package/serialization/types/Passage.js +1 -0
- package/serialization/types/ToolType.d.ts +1 -1
- package/serialization/types/ToolType.js +1 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export type AddMcpServerResponseItem = Letta.
|
|
5
|
+
export type AddMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../../../index";
|
|
5
|
-
export type DeleteMcpServerResponseItem = Letta.
|
|
5
|
+
export type DeleteMcpServerResponseItem = Letta.StdioServerConfig | Letta.SseServerConfig;
|
|
@@ -84,7 +84,7 @@ class Voice {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
|
|
86
86
|
method: "POST",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
requestType: "json",
|
|
90
90
|
body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Enum to represent the type of agent.
|
|
6
6
|
*/
|
|
7
|
-
export type AgentType = "memgpt_agent" | "split_thread_agent" | "sleeptime_agent" | "voice_convo_agent" | "voice_sleeptime_agent";
|
|
7
|
+
export type AgentType = "memgpt_agent" | "memgpt_v2_agent" | "split_thread_agent" | "sleeptime_agent" | "voice_convo_agent" | "voice_sleeptime_agent";
|
|
8
8
|
export declare const AgentType: {
|
|
9
9
|
readonly MemgptAgent: "memgpt_agent";
|
|
10
|
+
readonly MemgptV2Agent: "memgpt_v2_agent";
|
|
10
11
|
readonly SplitThreadAgent: "split_thread_agent";
|
|
11
12
|
readonly SleeptimeAgent: "sleeptime_agent";
|
|
12
13
|
readonly VoiceConvoAgent: "voice_convo_agent";
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.AgentType = void 0;
|
|
7
7
|
exports.AgentType = {
|
|
8
8
|
MemgptAgent: "memgpt_agent",
|
|
9
|
+
MemgptV2Agent: "memgpt_v2_agent",
|
|
9
10
|
SplitThreadAgent: "split_thread_agent",
|
|
10
11
|
SleeptimeAgent: "sleeptime_agent",
|
|
11
12
|
VoiceConvoAgent: "voice_convo_agent",
|
|
@@ -24,6 +24,8 @@ export interface Block {
|
|
|
24
24
|
name?: string;
|
|
25
25
|
/** Whether the block is a template (e.g. saved human/persona options). */
|
|
26
26
|
isTemplate?: boolean;
|
|
27
|
+
/** Preserve the block on template migration. */
|
|
28
|
+
preserveOnMigration?: boolean;
|
|
27
29
|
/** Label of the block (e.g. 'human', 'persona') in the context window. */
|
|
28
30
|
label?: string;
|
|
29
31
|
/** Whether the agent has read-only access to the block. */
|
|
@@ -13,6 +13,8 @@ export interface BlockUpdate {
|
|
|
13
13
|
name?: string;
|
|
14
14
|
/** Whether the block is a template (e.g. saved human/persona options). */
|
|
15
15
|
isTemplate?: boolean;
|
|
16
|
+
/** Preserve the block on template migration. */
|
|
17
|
+
preserveOnMigration?: boolean;
|
|
16
18
|
/** Label of the block (e.g. 'human', 'persona') in the context window. */
|
|
17
19
|
label?: string;
|
|
18
20
|
/** Whether the agent has read-only access to the block. */
|
|
@@ -12,6 +12,8 @@ export interface CreateBlock {
|
|
|
12
12
|
/** Name of the block if it is a template. */
|
|
13
13
|
name?: string;
|
|
14
14
|
isTemplate?: boolean;
|
|
15
|
+
/** Preserve the block on template migration. */
|
|
16
|
+
preserveOnMigration?: boolean;
|
|
15
17
|
/** Label of the block. */
|
|
16
18
|
label: string;
|
|
17
19
|
/** Whether the agent has read-only access to the block. */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
4
5
|
/**
|
|
5
6
|
* Representation of a single FileMetadata
|
|
6
7
|
*/
|
|
@@ -21,10 +22,16 @@ export interface FileMetadata {
|
|
|
21
22
|
fileCreationDate?: string;
|
|
22
23
|
/** The last modified date of the file. */
|
|
23
24
|
fileLastModifiedDate?: string;
|
|
25
|
+
/** The current processing status of the file (e.g. pending, parsing, embedding, completed, error). */
|
|
26
|
+
processingStatus?: Letta.FileProcessingStatus;
|
|
27
|
+
/** Optional error message if the file failed processing. */
|
|
28
|
+
errorMessage?: string;
|
|
24
29
|
/** The creation date of the file. */
|
|
25
30
|
createdAt?: Date;
|
|
26
31
|
/** The update date of the file. */
|
|
27
32
|
updatedAt?: Date;
|
|
28
33
|
/** Whether this file is deleted or not. */
|
|
29
34
|
isDeleted?: boolean;
|
|
35
|
+
/** Optional full-text content of the file; only populated on demand due to its size. */
|
|
36
|
+
content?: string;
|
|
30
37
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type FileProcessingStatus = "pending" | "parsing" | "embedding" | "completed" | "error";
|
|
5
|
+
export declare const FileProcessingStatus: {
|
|
6
|
+
readonly Pending: "pending";
|
|
7
|
+
readonly Parsing: "parsing";
|
|
8
|
+
readonly Embedding: "embedding";
|
|
9
|
+
readonly Completed: "completed";
|
|
10
|
+
readonly Error: "error";
|
|
11
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.FileProcessingStatus = void 0;
|
|
7
|
+
exports.FileProcessingStatus = {
|
|
8
|
+
Pending: "pending",
|
|
9
|
+
Parsing: "parsing",
|
|
10
|
+
Embedding: "embedding",
|
|
11
|
+
Completed: "completed",
|
|
12
|
+
Error: "error",
|
|
13
|
+
};
|
|
@@ -11,6 +11,8 @@ export interface LettaBatchRequest {
|
|
|
11
11
|
assistantMessageToolName?: string;
|
|
12
12
|
/** The name of the message argument in the designated message tool. */
|
|
13
13
|
assistantMessageToolKwarg?: string;
|
|
14
|
+
/** Only return specified message types in the response. If `None` (default) returns all messages. */
|
|
15
|
+
includeReturnMessageTypes?: Letta.MessageType[];
|
|
14
16
|
/** The ID of the agent to send this batch request for */
|
|
15
17
|
agentId: string;
|
|
16
18
|
}
|
|
@@ -11,4 +11,6 @@ export interface LettaRequest {
|
|
|
11
11
|
assistantMessageToolName?: string;
|
|
12
12
|
/** The name of the message argument in the designated message tool. */
|
|
13
13
|
assistantMessageToolKwarg?: string;
|
|
14
|
+
/** Only return specified message types in the response. If `None` (default) returns all messages. */
|
|
15
|
+
includeReturnMessageTypes?: Letta.MessageType[];
|
|
14
16
|
}
|
|
@@ -11,6 +11,8 @@ export interface LettaStreamingRequest {
|
|
|
11
11
|
assistantMessageToolName?: string;
|
|
12
12
|
/** The name of the message argument in the designated message tool. */
|
|
13
13
|
assistantMessageToolKwarg?: string;
|
|
14
|
+
/** Only return specified message types in the response. If `None` (default) returns all messages. */
|
|
15
|
+
includeReturnMessageTypes?: Letta.MessageType[];
|
|
14
16
|
/** Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True). */
|
|
15
17
|
streamTokens?: boolean;
|
|
16
18
|
}
|
|
@@ -8,6 +8,8 @@ import * as Letta from "../index";
|
|
|
8
8
|
export interface Memory {
|
|
9
9
|
/** Memory blocks contained in the agent's in-context memory */
|
|
10
10
|
blocks: Letta.Block[];
|
|
11
|
+
/** Blocks representing the agent's in-context memory of an attached file */
|
|
12
|
+
fileBlocks?: Letta.Block[];
|
|
11
13
|
/** Jinja2 template for compiling memory blocks into a prompt string */
|
|
12
14
|
promptTemplate?: string;
|
|
13
15
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type MessageType = "system_message" | "user_message" | "assistant_message" | "reasoning_message" | "hidden_reasoning_message" | "tool_call_message" | "tool_return_message";
|
|
5
|
+
export declare const MessageType: {
|
|
6
|
+
readonly SystemMessage: "system_message";
|
|
7
|
+
readonly UserMessage: "user_message";
|
|
8
|
+
readonly AssistantMessage: "assistant_message";
|
|
9
|
+
readonly ReasoningMessage: "reasoning_message";
|
|
10
|
+
readonly HiddenReasoningMessage: "hidden_reasoning_message";
|
|
11
|
+
readonly ToolCallMessage: "tool_call_message";
|
|
12
|
+
readonly ToolReturnMessage: "tool_return_message";
|
|
13
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MessageType = void 0;
|
|
7
|
+
exports.MessageType = {
|
|
8
|
+
SystemMessage: "system_message",
|
|
9
|
+
UserMessage: "user_message",
|
|
10
|
+
AssistantMessage: "assistant_message",
|
|
11
|
+
ReasoningMessage: "reasoning_message",
|
|
12
|
+
HiddenReasoningMessage: "hidden_reasoning_message",
|
|
13
|
+
ToolCallMessage: "tool_call_message",
|
|
14
|
+
ToolReturnMessage: "tool_return_message",
|
|
15
|
+
};
|
|
@@ -32,6 +32,8 @@ export interface Passage {
|
|
|
32
32
|
sourceId?: string;
|
|
33
33
|
/** The unique identifier of the file associated with the passage. */
|
|
34
34
|
fileId?: string;
|
|
35
|
+
/** The name of the file (only for source passages). */
|
|
36
|
+
fileName?: string;
|
|
35
37
|
/** The metadata of the passage. */
|
|
36
38
|
metadata?: Record<string, unknown>;
|
|
37
39
|
/** The human-friendly ID of the Passage */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "external_composio" | "external_langchain" | "external_mcp";
|
|
4
|
+
export type ToolType = "custom" | "letta_core" | "letta_memory_core" | "letta_multi_agent_core" | "letta_sleeptime_core" | "letta_voice_sleeptime_core" | "letta_builtin" | "letta_files_core" | "external_composio" | "external_langchain" | "external_mcp";
|
|
5
5
|
export declare const ToolType: {
|
|
6
6
|
readonly Custom: "custom";
|
|
7
7
|
readonly LettaCore: "letta_core";
|
|
@@ -10,6 +10,7 @@ export declare const ToolType: {
|
|
|
10
10
|
readonly LettaSleeptimeCore: "letta_sleeptime_core";
|
|
11
11
|
readonly LettaVoiceSleeptimeCore: "letta_voice_sleeptime_core";
|
|
12
12
|
readonly LettaBuiltin: "letta_builtin";
|
|
13
|
+
readonly LettaFilesCore: "letta_files_core";
|
|
13
14
|
readonly ExternalComposio: "external_composio";
|
|
14
15
|
readonly ExternalLangchain: "external_langchain";
|
|
15
16
|
readonly ExternalMcp: "external_mcp";
|
|
@@ -12,6 +12,7 @@ exports.ToolType = {
|
|
|
12
12
|
LettaSleeptimeCore: "letta_sleeptime_core",
|
|
13
13
|
LettaVoiceSleeptimeCore: "letta_voice_sleeptime_core",
|
|
14
14
|
LettaBuiltin: "letta_builtin",
|
|
15
|
+
LettaFilesCore: "letta_files_core",
|
|
15
16
|
ExternalComposio: "external_composio",
|
|
16
17
|
ExternalLangchain: "external_langchain",
|
|
17
18
|
ExternalMcp: "external_mcp",
|
|
@@ -91,6 +91,7 @@ export * from "./EmbeddingConfig";
|
|
|
91
91
|
export * from "./File_";
|
|
92
92
|
export * from "./FileFile";
|
|
93
93
|
export * from "./FileMetadata";
|
|
94
|
+
export * from "./FileProcessingStatus";
|
|
94
95
|
export * from "./FunctionOutput";
|
|
95
96
|
export * from "./FunctionCall";
|
|
96
97
|
export * from "./FunctionDefinitionInput";
|
|
@@ -141,6 +142,7 @@ export * from "./MessageCreateContent";
|
|
|
141
142
|
export * from "./MessageCreate";
|
|
142
143
|
export * from "./MessageRole";
|
|
143
144
|
export * from "./MessageSchema";
|
|
145
|
+
export * from "./MessageType";
|
|
144
146
|
export * from "./OmittedReasoningContent";
|
|
145
147
|
export * from "./Organization";
|
|
146
148
|
export * from "./OrganizationCreate";
|
package/dist/api/types/index.js
CHANGED
|
@@ -107,6 +107,7 @@ __exportStar(require("./EmbeddingConfig"), exports);
|
|
|
107
107
|
__exportStar(require("./File_"), exports);
|
|
108
108
|
__exportStar(require("./FileFile"), exports);
|
|
109
109
|
__exportStar(require("./FileMetadata"), exports);
|
|
110
|
+
__exportStar(require("./FileProcessingStatus"), exports);
|
|
110
111
|
__exportStar(require("./FunctionOutput"), exports);
|
|
111
112
|
__exportStar(require("./FunctionCall"), exports);
|
|
112
113
|
__exportStar(require("./FunctionDefinitionInput"), exports);
|
|
@@ -157,6 +158,7 @@ __exportStar(require("./MessageCreateContent"), exports);
|
|
|
157
158
|
__exportStar(require("./MessageCreate"), exports);
|
|
158
159
|
__exportStar(require("./MessageRole"), exports);
|
|
159
160
|
__exportStar(require("./MessageSchema"), exports);
|
|
161
|
+
__exportStar(require("./MessageType"), exports);
|
|
160
162
|
__exportStar(require("./OmittedReasoningContent"), exports);
|
|
161
163
|
__exportStar(require("./Organization"), exports);
|
|
162
164
|
__exportStar(require("./OrganizationCreate"), exports);
|
package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js
CHANGED
|
@@ -48,6 +48,7 @@ exports.PassageUpdate = core.serialization.object({
|
|
|
48
48
|
passageUpdateAgentId: core.serialization.property("agent_id", core.serialization.string().optional()),
|
|
49
49
|
sourceId: core.serialization.property("source_id", core.serialization.string().optional()),
|
|
50
50
|
fileId: core.serialization.property("file_id", core.serialization.string().optional()),
|
|
51
|
+
fileName: core.serialization.property("file_name", core.serialization.string().optional()),
|
|
51
52
|
metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
|
|
52
53
|
text: core.serialization.string().optional(),
|
|
53
54
|
embedding: core.serialization.list(core.serialization.number()).optional(),
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Letta from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { SseServerConfig } from "../../../types/SseServerConfig";
|
|
8
7
|
import { StdioServerConfig } from "../../../types/StdioServerConfig";
|
|
8
|
+
import { SseServerConfig } from "../../../types/SseServerConfig";
|
|
9
9
|
export declare const AddMcpServerResponseItem: core.serialization.Schema<serializers.AddMcpServerResponseItem.Raw, Letta.AddMcpServerResponseItem>;
|
|
10
10
|
export declare namespace AddMcpServerResponseItem {
|
|
11
|
-
type Raw =
|
|
11
|
+
type Raw = StdioServerConfig.Raw | SseServerConfig.Raw;
|
|
12
12
|
}
|
|
@@ -38,6 +38,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.AddMcpServerResponseItem = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const SseServerConfig_1 = require("../../../types/SseServerConfig");
|
|
42
41
|
const StdioServerConfig_1 = require("../../../types/StdioServerConfig");
|
|
43
|
-
|
|
42
|
+
const SseServerConfig_1 = require("../../../types/SseServerConfig");
|
|
43
|
+
exports.AddMcpServerResponseItem = core.serialization.undiscriminatedUnion([StdioServerConfig_1.StdioServerConfig, SseServerConfig_1.SseServerConfig]);
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
import * as serializers from "../../../index";
|
|
5
5
|
import * as Letta from "../../../../api/index";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
import { SseServerConfig } from "../../../types/SseServerConfig";
|
|
8
7
|
import { StdioServerConfig } from "../../../types/StdioServerConfig";
|
|
8
|
+
import { SseServerConfig } from "../../../types/SseServerConfig";
|
|
9
9
|
export declare const DeleteMcpServerResponseItem: core.serialization.Schema<serializers.DeleteMcpServerResponseItem.Raw, Letta.DeleteMcpServerResponseItem>;
|
|
10
10
|
export declare namespace DeleteMcpServerResponseItem {
|
|
11
|
-
type Raw =
|
|
11
|
+
type Raw = StdioServerConfig.Raw | SseServerConfig.Raw;
|
|
12
12
|
}
|
|
@@ -38,6 +38,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.DeleteMcpServerResponseItem = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../core"));
|
|
41
|
-
const SseServerConfig_1 = require("../../../types/SseServerConfig");
|
|
42
41
|
const StdioServerConfig_1 = require("../../../types/StdioServerConfig");
|
|
43
|
-
|
|
42
|
+
const SseServerConfig_1 = require("../../../types/SseServerConfig");
|
|
43
|
+
exports.DeleteMcpServerResponseItem = core.serialization.undiscriminatedUnion([StdioServerConfig_1.StdioServerConfig, SseServerConfig_1.SseServerConfig]);
|
|
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const AgentType: core.serialization.Schema<serializers.AgentType.Raw, Letta.AgentType>;
|
|
8
8
|
export declare namespace AgentType {
|
|
9
|
-
type Raw = "memgpt_agent" | "split_thread_agent" | "sleeptime_agent" | "voice_convo_agent" | "voice_sleeptime_agent";
|
|
9
|
+
type Raw = "memgpt_agent" | "memgpt_v2_agent" | "split_thread_agent" | "sleeptime_agent" | "voice_convo_agent" | "voice_sleeptime_agent";
|
|
10
10
|
}
|
|
@@ -43,6 +43,7 @@ exports.Block = core.serialization.object({
|
|
|
43
43
|
limit: core.serialization.number().optional(),
|
|
44
44
|
name: core.serialization.string().optional(),
|
|
45
45
|
isTemplate: core.serialization.property("is_template", core.serialization.boolean().optional()),
|
|
46
|
+
preserveOnMigration: core.serialization.property("preserve_on_migration", core.serialization.boolean().optional()),
|
|
46
47
|
label: core.serialization.string().optional(),
|
|
47
48
|
readOnly: core.serialization.property("read_only", core.serialization.boolean().optional()),
|
|
48
49
|
description: core.serialization.string().optional(),
|
|
@@ -43,6 +43,7 @@ exports.BlockUpdate = core.serialization.object({
|
|
|
43
43
|
limit: core.serialization.number().optional(),
|
|
44
44
|
name: core.serialization.string().optional(),
|
|
45
45
|
isTemplate: core.serialization.property("is_template", core.serialization.boolean().optional()),
|
|
46
|
+
preserveOnMigration: core.serialization.property("preserve_on_migration", core.serialization.boolean().optional()),
|
|
46
47
|
label: core.serialization.string().optional(),
|
|
47
48
|
readOnly: core.serialization.property("read_only", core.serialization.boolean().optional()),
|
|
48
49
|
description: core.serialization.string().optional(),
|
|
@@ -43,6 +43,7 @@ exports.CreateBlock = core.serialization.object({
|
|
|
43
43
|
limit: core.serialization.number().optional(),
|
|
44
44
|
name: core.serialization.string().optional(),
|
|
45
45
|
isTemplate: core.serialization.property("is_template", core.serialization.boolean().optional()),
|
|
46
|
+
preserveOnMigration: core.serialization.property("preserve_on_migration", core.serialization.boolean().optional()),
|
|
46
47
|
label: core.serialization.string(),
|
|
47
48
|
readOnly: core.serialization.property("read_only", core.serialization.boolean().optional()),
|
|
48
49
|
description: 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 { FileProcessingStatus } from "./FileProcessingStatus";
|
|
7
8
|
export declare const FileMetadata: core.serialization.ObjectSchema<serializers.FileMetadata.Raw, Letta.FileMetadata>;
|
|
8
9
|
export declare namespace FileMetadata {
|
|
9
10
|
interface Raw {
|
|
@@ -15,8 +16,11 @@ export declare namespace FileMetadata {
|
|
|
15
16
|
file_size?: number | null;
|
|
16
17
|
file_creation_date?: string | null;
|
|
17
18
|
file_last_modified_date?: string | null;
|
|
19
|
+
processing_status?: FileProcessingStatus.Raw | null;
|
|
20
|
+
error_message?: string | null;
|
|
18
21
|
created_at?: string | null;
|
|
19
22
|
updated_at?: string | null;
|
|
20
23
|
is_deleted?: boolean | null;
|
|
24
|
+
content?: string | null;
|
|
21
25
|
}
|
|
22
26
|
}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.FileMetadata = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const FileProcessingStatus_1 = require("./FileProcessingStatus");
|
|
41
42
|
exports.FileMetadata = core.serialization.object({
|
|
42
43
|
id: core.serialization.string().optional(),
|
|
43
44
|
sourceId: core.serialization.property("source_id", core.serialization.string()),
|
|
@@ -47,7 +48,10 @@ exports.FileMetadata = core.serialization.object({
|
|
|
47
48
|
fileSize: core.serialization.property("file_size", core.serialization.number().optional()),
|
|
48
49
|
fileCreationDate: core.serialization.property("file_creation_date", core.serialization.string().optional()),
|
|
49
50
|
fileLastModifiedDate: core.serialization.property("file_last_modified_date", core.serialization.string().optional()),
|
|
51
|
+
processingStatus: core.serialization.property("processing_status", FileProcessingStatus_1.FileProcessingStatus.optional()),
|
|
52
|
+
errorMessage: core.serialization.property("error_message", core.serialization.string().optional()),
|
|
50
53
|
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
|
51
54
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
|
52
55
|
isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
|
|
56
|
+
content: core.serialization.string().optional(),
|
|
53
57
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const FileProcessingStatus: core.serialization.Schema<serializers.FileProcessingStatus.Raw, Letta.FileProcessingStatus>;
|
|
8
|
+
export declare namespace FileProcessingStatus {
|
|
9
|
+
type Raw = "pending" | "parsing" | "embedding" | "completed" | "error";
|
|
10
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.FileProcessingStatus = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.FileProcessingStatus = core.serialization.enum_(["pending", "parsing", "embedding", "completed", "error"]);
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { MessageCreate } from "./MessageCreate";
|
|
8
|
+
import { MessageType } from "./MessageType";
|
|
8
9
|
export declare const LettaBatchRequest: core.serialization.ObjectSchema<serializers.LettaBatchRequest.Raw, Letta.LettaBatchRequest>;
|
|
9
10
|
export declare namespace LettaBatchRequest {
|
|
10
11
|
interface Raw {
|
|
@@ -12,6 +13,7 @@ export declare namespace LettaBatchRequest {
|
|
|
12
13
|
use_assistant_message?: boolean | null;
|
|
13
14
|
assistant_message_tool_name?: string | null;
|
|
14
15
|
assistant_message_tool_kwarg?: string | null;
|
|
16
|
+
include_return_message_types?: MessageType.Raw[] | null;
|
|
15
17
|
agent_id: string;
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -39,10 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LettaBatchRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const MessageCreate_1 = require("./MessageCreate");
|
|
42
|
+
const MessageType_1 = require("./MessageType");
|
|
42
43
|
exports.LettaBatchRequest = core.serialization.object({
|
|
43
44
|
messages: core.serialization.list(MessageCreate_1.MessageCreate),
|
|
44
45
|
useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
|
|
45
46
|
assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
|
|
46
47
|
assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
|
|
48
|
+
includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
|
|
47
49
|
agentId: core.serialization.property("agent_id", core.serialization.string()),
|
|
48
50
|
});
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { MessageCreate } from "./MessageCreate";
|
|
8
|
+
import { MessageType } from "./MessageType";
|
|
8
9
|
export declare const LettaRequest: core.serialization.ObjectSchema<serializers.LettaRequest.Raw, Letta.LettaRequest>;
|
|
9
10
|
export declare namespace LettaRequest {
|
|
10
11
|
interface Raw {
|
|
@@ -12,5 +13,6 @@ export declare namespace LettaRequest {
|
|
|
12
13
|
use_assistant_message?: boolean | null;
|
|
13
14
|
assistant_message_tool_name?: string | null;
|
|
14
15
|
assistant_message_tool_kwarg?: string | null;
|
|
16
|
+
include_return_message_types?: MessageType.Raw[] | null;
|
|
15
17
|
}
|
|
16
18
|
}
|
|
@@ -39,9 +39,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LettaRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const MessageCreate_1 = require("./MessageCreate");
|
|
42
|
+
const MessageType_1 = require("./MessageType");
|
|
42
43
|
exports.LettaRequest = core.serialization.object({
|
|
43
44
|
messages: core.serialization.list(MessageCreate_1.MessageCreate),
|
|
44
45
|
useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
|
|
45
46
|
assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
|
|
46
47
|
assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
|
|
48
|
+
includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
|
|
47
49
|
});
|
|
@@ -5,6 +5,7 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { MessageCreate } from "./MessageCreate";
|
|
8
|
+
import { MessageType } from "./MessageType";
|
|
8
9
|
export declare const LettaStreamingRequest: core.serialization.ObjectSchema<serializers.LettaStreamingRequest.Raw, Letta.LettaStreamingRequest>;
|
|
9
10
|
export declare namespace LettaStreamingRequest {
|
|
10
11
|
interface Raw {
|
|
@@ -12,6 +13,7 @@ export declare namespace LettaStreamingRequest {
|
|
|
12
13
|
use_assistant_message?: boolean | null;
|
|
13
14
|
assistant_message_tool_name?: string | null;
|
|
14
15
|
assistant_message_tool_kwarg?: string | null;
|
|
16
|
+
include_return_message_types?: MessageType.Raw[] | null;
|
|
15
17
|
stream_tokens?: boolean | null;
|
|
16
18
|
}
|
|
17
19
|
}
|
|
@@ -39,10 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.LettaStreamingRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
const MessageCreate_1 = require("./MessageCreate");
|
|
42
|
+
const MessageType_1 = require("./MessageType");
|
|
42
43
|
exports.LettaStreamingRequest = core.serialization.object({
|
|
43
44
|
messages: core.serialization.list(MessageCreate_1.MessageCreate),
|
|
44
45
|
useAssistantMessage: core.serialization.property("use_assistant_message", core.serialization.boolean().optional()),
|
|
45
46
|
assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
|
|
46
47
|
assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
|
|
48
|
+
includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
|
|
47
49
|
streamTokens: core.serialization.property("stream_tokens", core.serialization.boolean().optional()),
|
|
48
50
|
});
|
|
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const Block_1 = require("./Block");
|
|
42
42
|
exports.Memory = core.serialization.object({
|
|
43
43
|
blocks: core.serialization.list(Block_1.Block),
|
|
44
|
+
fileBlocks: core.serialization.property("file_blocks", core.serialization.list(Block_1.Block).optional()),
|
|
44
45
|
promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
|
|
45
46
|
});
|