@letta-ai/letta-client 0.1.63 → 0.1.65
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 +7 -7
- package/api/resources/agents/client/Client.js +28 -22
- package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
- package/api/resources/agents/client/requests/index.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.d.ts +9 -6
- package/api/resources/agents/resources/messages/client/Client.js +14 -11
- 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/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.d.ts +8 -2
- package/api/resources/groups/client/Client.js +15 -9
- package/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +6 -6
- 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/tools/client/Client.js +16 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentSchema.d.ts +27 -0
- package/api/types/AssistantMessage.d.ts +3 -1
- package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
- package/api/types/LettaMessageContentUnion.d.ts +5 -0
- package/api/types/Message.d.ts +1 -1
- package/api/types/MessageContentItem.d.ts +5 -0
- package/api/types/MessageCreateContent.d.ts +1 -1
- package/api/types/MessageSchema.d.ts +17 -0
- package/api/types/OmittedReasoningContent.d.ts +8 -0
- package/api/types/OmittedReasoningContent.js +5 -0
- package/api/types/ParameterProperties.d.ts +7 -0
- package/api/types/ParameterProperties.js +5 -0
- package/api/types/ParametersSchema.d.ts +9 -0
- package/api/types/ParametersSchema.js +5 -0
- package/api/types/ReasoningContent.d.ts +12 -0
- package/api/types/ReasoningContent.js +5 -0
- package/api/types/ReasoningMessage.d.ts +6 -0
- package/api/types/ReasoningMessageSource.d.ts +8 -0
- package/api/types/ReasoningMessageSource.js +10 -0
- package/api/types/RedactedReasoningContent.d.ts +8 -0
- package/api/types/RedactedReasoningContent.js +5 -0
- package/api/types/SystemMessage.d.ts +5 -4
- package/api/types/TagSchema.d.ts +6 -0
- package/api/types/TagSchema.js +5 -0
- package/api/types/ToolCallContent.d.ts +12 -0
- package/api/types/ToolCallContent.js +5 -0
- package/api/types/ToolCallMessage.d.ts +2 -0
- package/api/types/ToolEnvVarSchema.d.ts +11 -0
- package/api/types/ToolEnvVarSchema.js +5 -0
- package/api/types/ToolJsonSchema.d.ts +11 -0
- package/api/types/ToolJsonSchema.js +5 -0
- package/api/types/ToolReturnContent.d.ts +12 -0
- package/api/types/ToolReturnContent.js +5 -0
- package/api/types/ToolReturnMessage.d.ts +2 -0
- package/api/types/ToolRuleSchema.d.ts +7 -0
- package/api/types/ToolRuleSchema.js +5 -0
- package/api/types/ToolSchema.d.ts +18 -0
- package/api/types/ToolSchema.js +5 -0
- package/api/types/UpdateSystemMessage.d.ts +2 -3
- package/api/types/UpdateUserMessage.d.ts +1 -1
- package/api/types/UpdateUserMessageContent.d.ts +1 -1
- package/api/types/UserMessage.d.ts +4 -2
- package/api/types/UserMessageContent.d.ts +1 -1
- package/api/types/index.d.ts +18 -2
- package/api/types/index.js +18 -2
- package/dist/api/resources/agents/client/Client.d.ts +7 -7
- package/dist/api/resources/agents/client/Client.js +28 -22
- package/dist/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
- package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js +5 -0
- package/dist/api/resources/agents/client/requests/index.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.d.ts +9 -6
- package/dist/api/resources/agents/resources/messages/client/Client.js +14 -11
- 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/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.d.ts +8 -2
- package/dist/api/resources/groups/client/Client.js +15 -9
- package/dist/api/resources/groups/client/requests/SendGroupMessageRequest.d.ts +4 -1
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +6 -6
- 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/tools/client/Client.js +16 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/AgentSchema.d.ts +27 -0
- package/dist/api/types/AgentSchema.js +5 -0
- package/dist/api/types/AssistantMessage.d.ts +3 -1
- package/dist/api/types/CoreMemoryBlockSchema.d.ts +16 -0
- package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
- package/dist/api/types/LettaMessageContentUnion.d.ts +5 -0
- package/dist/api/types/LettaMessageContentUnion.js +5 -0
- package/dist/api/types/Message.d.ts +1 -1
- package/dist/api/types/MessageContentItem.d.ts +5 -0
- package/dist/api/types/MessageContentItem.js +5 -0
- package/dist/api/types/MessageCreateContent.d.ts +1 -1
- package/dist/api/types/MessageSchema.d.ts +17 -0
- package/dist/api/types/MessageSchema.js +5 -0
- package/dist/api/types/OmittedReasoningContent.d.ts +8 -0
- package/dist/api/types/OmittedReasoningContent.js +5 -0
- package/dist/api/types/ParameterProperties.d.ts +7 -0
- package/dist/api/types/ParameterProperties.js +5 -0
- package/dist/api/types/ParametersSchema.d.ts +9 -0
- package/dist/api/types/ParametersSchema.js +5 -0
- package/dist/api/types/ReasoningContent.d.ts +12 -0
- package/dist/api/types/ReasoningContent.js +5 -0
- package/dist/api/types/ReasoningMessage.d.ts +6 -0
- package/dist/api/types/ReasoningMessageSource.d.ts +8 -0
- package/dist/api/types/ReasoningMessageSource.js +10 -0
- package/dist/api/types/RedactedReasoningContent.d.ts +8 -0
- package/dist/api/types/RedactedReasoningContent.js +5 -0
- package/dist/api/types/SystemMessage.d.ts +5 -4
- package/dist/api/types/TagSchema.d.ts +6 -0
- package/dist/api/types/TagSchema.js +5 -0
- package/dist/api/types/ToolCallContent.d.ts +12 -0
- package/dist/api/types/ToolCallContent.js +5 -0
- package/dist/api/types/ToolCallMessage.d.ts +2 -0
- package/dist/api/types/ToolEnvVarSchema.d.ts +11 -0
- package/dist/api/types/ToolEnvVarSchema.js +5 -0
- package/dist/api/types/ToolJsonSchema.d.ts +11 -0
- package/dist/api/types/ToolJsonSchema.js +5 -0
- package/dist/api/types/ToolReturnContent.d.ts +12 -0
- package/dist/api/types/ToolReturnContent.js +5 -0
- package/dist/api/types/ToolReturnMessage.d.ts +2 -0
- package/dist/api/types/ToolRuleSchema.d.ts +7 -0
- package/dist/api/types/ToolRuleSchema.js +5 -0
- package/dist/api/types/ToolSchema.d.ts +18 -0
- package/dist/api/types/ToolSchema.js +5 -0
- package/dist/api/types/UpdateSystemMessage.d.ts +2 -3
- package/dist/api/types/UpdateUserMessage.d.ts +1 -1
- package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
- package/dist/api/types/UserMessage.d.ts +4 -2
- package/dist/api/types/UserMessageContent.d.ts +1 -1
- package/dist/api/types/index.d.ts +18 -2
- package/dist/api/types/index.js +18 -2
- package/dist/serialization/types/AgentSchema.d.ts +40 -0
- package/dist/serialization/types/AgentSchema.js +71 -0
- package/dist/serialization/types/AssistantMessage.d.ts +1 -0
- package/dist/serialization/types/AssistantMessage.js +1 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/dist/serialization/types/LettaMessageContentUnion.d.ts +15 -0
- package/dist/serialization/types/LettaMessageContentUnion.js +52 -0
- package/dist/serialization/types/Message.d.ts +2 -2
- package/dist/serialization/types/Message.js +2 -2
- package/dist/serialization/types/MessageContentItem.d.ts +16 -0
- package/dist/serialization/types/MessageContentItem.js +54 -0
- package/dist/serialization/types/MessageCreateContent.d.ts +2 -2
- package/dist/serialization/types/MessageCreateContent.js +5 -2
- package/dist/serialization/types/MessageSchema.d.ts +23 -0
- package/dist/serialization/types/MessageSchema.js +54 -0
- package/dist/serialization/types/OmittedReasoningContent.d.ts +13 -0
- package/dist/serialization/types/{SystemMessageContent.js → OmittedReasoningContent.js} +5 -6
- package/dist/serialization/types/ParameterProperties.d.ts +13 -0
- package/{serialization/types/SystemMessageContent.js → dist/serialization/types/ParameterProperties.js} +5 -6
- package/dist/serialization/types/ParametersSchema.d.ts +15 -0
- package/dist/serialization/types/ParametersSchema.js +46 -0
- package/dist/serialization/types/ReasoningContent.d.ts +15 -0
- package/dist/serialization/types/ReasoningContent.js +46 -0
- package/dist/serialization/types/ReasoningMessage.d.ts +3 -0
- package/dist/serialization/types/ReasoningMessage.js +3 -0
- package/dist/serialization/types/ReasoningMessageSource.d.ts +10 -0
- package/dist/serialization/types/{UpdateSystemMessageContent.js → ReasoningMessageSource.js} +2 -6
- package/dist/serialization/types/RedactedReasoningContent.d.ts +13 -0
- package/{serialization/types/UpdateSystemMessageContent.js → dist/serialization/types/RedactedReasoningContent.js} +5 -6
- package/dist/serialization/types/SystemMessage.d.ts +2 -2
- package/dist/serialization/types/SystemMessage.js +2 -2
- package/dist/serialization/types/TagSchema.d.ts +12 -0
- package/dist/serialization/types/TagSchema.js +43 -0
- package/dist/serialization/types/ToolCallContent.d.ts +15 -0
- package/dist/serialization/types/ToolCallContent.js +46 -0
- package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
- package/dist/serialization/types/ToolCallMessage.js +1 -0
- package/dist/serialization/types/ToolEnvVarSchema.d.ts +17 -0
- package/dist/serialization/types/ToolEnvVarSchema.js +48 -0
- package/dist/serialization/types/ToolJsonSchema.d.ts +17 -0
- package/dist/serialization/types/ToolJsonSchema.js +48 -0
- package/dist/serialization/types/ToolReturnContent.d.ts +15 -0
- package/dist/serialization/types/ToolReturnContent.js +46 -0
- package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/dist/serialization/types/ToolReturnMessage.js +1 -0
- package/dist/serialization/types/ToolRuleSchema.d.ts +13 -0
- package/dist/serialization/types/ToolRuleSchema.js +44 -0
- package/dist/serialization/types/ToolSchema.d.ts +24 -0
- package/dist/serialization/types/ToolSchema.js +55 -0
- package/dist/serialization/types/UpdateSystemMessage.d.ts +1 -2
- package/dist/serialization/types/UpdateSystemMessage.js +1 -2
- package/dist/serialization/types/UserMessage.d.ts +1 -0
- package/dist/serialization/types/UserMessage.js +1 -0
- package/dist/serialization/types/index.d.ts +18 -2
- package/dist/serialization/types/index.js +18 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +38 -18
- package/serialization/types/AgentSchema.d.ts +40 -0
- package/serialization/types/AgentSchema.js +71 -0
- package/serialization/types/AssistantMessage.d.ts +1 -0
- package/serialization/types/AssistantMessage.js +1 -0
- package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/serialization/types/LettaMessageContentUnion.d.ts +15 -0
- package/serialization/types/LettaMessageContentUnion.js +52 -0
- package/serialization/types/Message.d.ts +2 -2
- package/serialization/types/Message.js +2 -2
- package/serialization/types/MessageContentItem.d.ts +16 -0
- package/serialization/types/MessageContentItem.js +54 -0
- package/serialization/types/MessageCreateContent.d.ts +2 -2
- package/serialization/types/MessageCreateContent.js +5 -2
- package/serialization/types/MessageSchema.d.ts +23 -0
- package/serialization/types/MessageSchema.js +54 -0
- package/serialization/types/OmittedReasoningContent.d.ts +13 -0
- package/serialization/types/OmittedReasoningContent.js +44 -0
- package/serialization/types/ParameterProperties.d.ts +13 -0
- package/serialization/types/ParameterProperties.js +44 -0
- package/serialization/types/ParametersSchema.d.ts +15 -0
- package/serialization/types/ParametersSchema.js +46 -0
- package/serialization/types/ReasoningContent.d.ts +15 -0
- package/serialization/types/ReasoningContent.js +46 -0
- package/serialization/types/ReasoningMessage.d.ts +3 -0
- package/serialization/types/ReasoningMessage.js +3 -0
- package/serialization/types/ReasoningMessageSource.d.ts +10 -0
- package/serialization/types/ReasoningMessageSource.js +41 -0
- package/serialization/types/RedactedReasoningContent.d.ts +13 -0
- package/serialization/types/RedactedReasoningContent.js +44 -0
- package/serialization/types/SystemMessage.d.ts +2 -2
- package/serialization/types/SystemMessage.js +2 -2
- package/serialization/types/TagSchema.d.ts +12 -0
- package/serialization/types/TagSchema.js +43 -0
- package/serialization/types/ToolCallContent.d.ts +15 -0
- package/serialization/types/ToolCallContent.js +46 -0
- package/serialization/types/ToolCallMessage.d.ts +1 -0
- package/serialization/types/ToolCallMessage.js +1 -0
- package/serialization/types/ToolEnvVarSchema.d.ts +17 -0
- package/serialization/types/ToolEnvVarSchema.js +48 -0
- package/serialization/types/ToolJsonSchema.d.ts +17 -0
- package/serialization/types/ToolJsonSchema.js +48 -0
- package/serialization/types/ToolReturnContent.d.ts +15 -0
- package/serialization/types/ToolReturnContent.js +46 -0
- package/serialization/types/ToolReturnMessage.d.ts +1 -0
- package/serialization/types/ToolReturnMessage.js +1 -0
- package/serialization/types/ToolRuleSchema.d.ts +13 -0
- package/serialization/types/ToolRuleSchema.js +44 -0
- package/serialization/types/ToolSchema.d.ts +24 -0
- package/serialization/types/ToolSchema.js +55 -0
- package/serialization/types/UpdateSystemMessage.d.ts +1 -2
- package/serialization/types/UpdateSystemMessage.js +1 -2
- package/serialization/types/UserMessage.d.ts +1 -0
- package/serialization/types/UserMessage.js +1 -0
- package/serialization/types/index.d.ts +18 -2
- package/serialization/types/index.js +18 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/SystemMessageContent.d.ts +0 -8
- package/api/types/UpdateSystemMessageContent.d.ts +0 -8
- package/dist/api/types/SystemMessageContent.d.ts +0 -8
- package/dist/api/types/UpdateSystemMessageContent.d.ts +0 -8
- package/dist/serialization/types/SystemMessageContent.d.ts +0 -11
- package/dist/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
- package/serialization/types/SystemMessageContent.d.ts +0 -11
- package/serialization/types/UpdateSystemMessageContent.d.ts +0 -11
- /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
- /package/api/types/{SystemMessageContent.js → AgentSchema.js} +0 -0
- /package/api/types/{UpdateSystemMessageContent.js → CoreMemoryBlockSchema.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/types/LettaMessageContentUnion.js} +0 -0
- /package/{dist/api/types/SystemMessageContent.js → api/types/MessageContentItem.js} +0 -0
- /package/{dist/api/types/UpdateSystemMessageContent.js → api/types/MessageSchema.js} +0 -0
|
@@ -8,11 +8,13 @@ import * as Letta from "../index";
|
|
|
8
8
|
* Args:
|
|
9
9
|
* id (str): The ID of the message
|
|
10
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
-
*
|
|
11
|
+
* name (Optional[str]): The name of the sender of the message
|
|
12
|
+
* content (Union[str, List[LettaAssistantMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
|
|
12
13
|
*/
|
|
13
14
|
export interface AssistantMessage {
|
|
14
15
|
id: string;
|
|
15
16
|
date: Date;
|
|
17
|
+
name?: string;
|
|
16
18
|
messageType: "assistant_message";
|
|
17
19
|
/** The message content sent by the agent (can be a string or an array of content parts) */
|
|
18
20
|
content: Letta.AssistantMessageContent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface CoreMemoryBlockSchema {
|
|
5
|
+
createdAt: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
identities: unknown[];
|
|
8
|
+
isDeleted: boolean;
|
|
9
|
+
isTemplate: boolean;
|
|
10
|
+
label: string;
|
|
11
|
+
limit: number;
|
|
12
|
+
metadata?: Record<string, unknown>;
|
|
13
|
+
templateName?: string;
|
|
14
|
+
updatedAt: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export type LettaMessageContentUnion = Letta.TextContent | Letta.ToolCallContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.OmittedReasoningContent;
|
|
@@ -31,7 +31,7 @@ export interface Message {
|
|
|
31
31
|
/** The role of the participant. */
|
|
32
32
|
role: Letta.MessageRole;
|
|
33
33
|
/** The content of the message. */
|
|
34
|
-
content?: Letta.
|
|
34
|
+
content?: Letta.MessageContentItem[];
|
|
35
35
|
/** The unique identifier of the agent. */
|
|
36
36
|
agentId?: string;
|
|
37
37
|
/** The model used to make the function call. */
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export type MessageContentItem = Letta.OmittedReasoningContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.TextContent | Letta.ToolCallContent | Letta.ToolReturnContent;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface MessageSchema {
|
|
6
|
+
createdAt: string;
|
|
7
|
+
groupId?: string;
|
|
8
|
+
inContext: boolean;
|
|
9
|
+
model?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
role: string;
|
|
12
|
+
content: Letta.TextContent[];
|
|
13
|
+
toolCallId?: string;
|
|
14
|
+
toolCalls: unknown[];
|
|
15
|
+
toolReturns: unknown[];
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ReasoningContent {
|
|
5
|
+
type: "reasoning";
|
|
6
|
+
/** Whether the reasoning content was generated by a reasoner model that processed this step. */
|
|
7
|
+
isNative: boolean;
|
|
8
|
+
/** The intermediate reasoning or thought process content. */
|
|
9
|
+
reasoning: string;
|
|
10
|
+
/** A unique identifier for this reasoning step. */
|
|
11
|
+
signature?: string;
|
|
12
|
+
}
|
|
@@ -1,17 +1,23 @@
|
|
|
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 an agent's internal reasoning.
|
|
6
7
|
*
|
|
7
8
|
* Args:
|
|
8
9
|
* id (str): The ID of the message
|
|
9
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* name (Optional[str]): The name of the sender of the message
|
|
12
|
+
* source (Literal["reasoner_model", "non_reasoner_model"]): Whether the reasoning
|
|
13
|
+
* content was generated natively by a reasoner model or derived via prompting
|
|
10
14
|
* reasoning (str): The internal reasoning of the agent
|
|
11
15
|
*/
|
|
12
16
|
export interface ReasoningMessage {
|
|
13
17
|
id: string;
|
|
14
18
|
date: Date;
|
|
19
|
+
name?: string;
|
|
15
20
|
messageType: "reasoning_message";
|
|
21
|
+
source?: Letta.ReasoningMessageSource;
|
|
16
22
|
reasoning: string;
|
|
17
23
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type ReasoningMessageSource = "reasoner_model" | "non_reasoner_model";
|
|
5
|
+
export declare const ReasoningMessageSource: {
|
|
6
|
+
readonly ReasonerModel: "reasoner_model";
|
|
7
|
+
readonly NonReasonerModel: "non_reasoner_model";
|
|
8
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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.ReasoningMessageSource = void 0;
|
|
7
|
+
exports.ReasoningMessageSource = {
|
|
8
|
+
ReasonerModel: "reasoner_model",
|
|
9
|
+
NonReasonerModel: "non_reasoner_model",
|
|
10
|
+
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
4
|
/**
|
|
6
5
|
* A message generated by the system. Never streamed back on a response, only used for cursor pagination.
|
|
7
6
|
*
|
|
8
7
|
* Args:
|
|
9
8
|
* id (str): The ID of the message
|
|
10
9
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
-
*
|
|
10
|
+
* name (Optional[str]): The name of the sender of the message
|
|
11
|
+
* content (str): The message content sent by the system
|
|
12
12
|
*/
|
|
13
13
|
export interface SystemMessage {
|
|
14
14
|
id: string;
|
|
15
15
|
date: Date;
|
|
16
|
+
name?: string;
|
|
16
17
|
messageType: "system_message";
|
|
17
|
-
/** The message content sent by the system
|
|
18
|
-
content:
|
|
18
|
+
/** The message content sent by the system */
|
|
19
|
+
content: string;
|
|
19
20
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ToolCallContent {
|
|
5
|
+
type: "tool_return";
|
|
6
|
+
/** A unique identifier for this specific tool call instance. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** The name of the tool being called. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** The parameters being passed to the tool, structured as a dictionary of parameter names to values. */
|
|
11
|
+
input: Record<string, unknown>;
|
|
12
|
+
}
|
|
@@ -8,11 +8,13 @@ import * as Letta from "../index";
|
|
|
8
8
|
* Args:
|
|
9
9
|
* id (str): The ID of the message
|
|
10
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* name (Optional[str]): The name of the sender of the message
|
|
11
12
|
* tool_call (Union[ToolCall, ToolCallDelta]): The tool call
|
|
12
13
|
*/
|
|
13
14
|
export interface ToolCallMessage {
|
|
14
15
|
id: string;
|
|
15
16
|
date: Date;
|
|
17
|
+
name?: string;
|
|
16
18
|
messageType: "tool_call_message";
|
|
17
19
|
toolCall: Letta.ToolCallMessageToolCall;
|
|
18
20
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ToolJsonSchema {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
parameters: Letta.ParametersSchema;
|
|
9
|
+
type?: string;
|
|
10
|
+
required?: string[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ToolReturnContent {
|
|
5
|
+
type: "tool_return";
|
|
6
|
+
/** References the ID of the ToolCallContent that initiated this tool call. */
|
|
7
|
+
toolCallId: string;
|
|
8
|
+
/** The content returned by the tool execution. */
|
|
9
|
+
content: string;
|
|
10
|
+
/** Indicates whether the tool execution resulted in an error. */
|
|
11
|
+
isError: boolean;
|
|
12
|
+
}
|
|
@@ -8,6 +8,7 @@ import * as Letta from "../index";
|
|
|
8
8
|
* Args:
|
|
9
9
|
* id (str): The ID of the message
|
|
10
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
+
* name (Optional[str]): The name of the sender of the message
|
|
11
12
|
* tool_return (str): The return value of the tool
|
|
12
13
|
* status (Literal["success", "error"]): The status of the tool call
|
|
13
14
|
* tool_call_id (str): A unique identifier for the tool call that generated this message
|
|
@@ -17,6 +18,7 @@ import * as Letta from "../index";
|
|
|
17
18
|
export interface ToolReturnMessage {
|
|
18
19
|
id: string;
|
|
19
20
|
date: Date;
|
|
21
|
+
name?: string;
|
|
20
22
|
messageType: "tool_return_message";
|
|
21
23
|
toolReturn: string;
|
|
22
24
|
status: Letta.ToolReturnMessageStatus;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface ToolSchema {
|
|
6
|
+
argsJsonSchema?: unknown;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
description: string;
|
|
9
|
+
isDeleted: boolean;
|
|
10
|
+
jsonSchema: Letta.ToolJsonSchema;
|
|
11
|
+
name: string;
|
|
12
|
+
returnCharLimit: number;
|
|
13
|
+
sourceCode?: string;
|
|
14
|
+
sourceType: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
toolType: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Letta from "../index";
|
|
5
4
|
export interface UpdateSystemMessage {
|
|
6
5
|
messageType?: "system_message";
|
|
7
|
-
/** The message content sent by the system (can be a string or an array of content parts) */
|
|
8
|
-
content:
|
|
6
|
+
/** The message content sent by the system (can be a string or an array of multi-modal content parts) */
|
|
7
|
+
content: string;
|
|
9
8
|
}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
import * as Letta from "../index";
|
|
5
5
|
export interface UpdateUserMessage {
|
|
6
6
|
messageType?: "user_message";
|
|
7
|
-
/** The message content sent by the user (can be a string or an array of content parts) */
|
|
7
|
+
/** The message content sent by the user (can be a string or an array of multi-modal content parts) */
|
|
8
8
|
content: Letta.UpdateUserMessageContent;
|
|
9
9
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
5
|
/**
|
|
6
|
-
* The message content sent by the user (can be a string or an array of content parts)
|
|
6
|
+
* The message content sent by the user (can be a string or an array of multi-modal content parts)
|
|
7
7
|
*/
|
|
8
8
|
export type UpdateUserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
|
@@ -8,12 +8,14 @@ import * as Letta from "../index";
|
|
|
8
8
|
* Args:
|
|
9
9
|
* id (str): The ID of the message
|
|
10
10
|
* date (datetime): The date the message was created in ISO format
|
|
11
|
-
*
|
|
11
|
+
* name (Optional[str]): The name of the sender of the message
|
|
12
|
+
* content (Union[str, List[LettaUserMessageContentUnion]]): The message content sent by the user (can be a string or an array of multi-modal content parts)
|
|
12
13
|
*/
|
|
13
14
|
export interface UserMessage {
|
|
14
15
|
id: string;
|
|
15
16
|
date: Date;
|
|
17
|
+
name?: string;
|
|
16
18
|
messageType: "user_message";
|
|
17
|
-
/** The message content sent by the user (can be a string or an array of content parts) */
|
|
19
|
+
/** The message content sent by the user (can be a string or an array of multi-modal content parts) */
|
|
18
20
|
content: Letta.UserMessageContent;
|
|
19
21
|
}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Letta from "../index";
|
|
5
5
|
/**
|
|
6
|
-
* The message content sent by the user (can be a string or an array of content parts)
|
|
6
|
+
* The message content sent by the user (can be a string or an array of multi-modal content parts)
|
|
7
7
|
*/
|
|
8
8
|
export type UserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
|
|
@@ -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 "./AgentSchema";
|
|
9
10
|
export * from "./AgentStateToolRulesItem";
|
|
10
11
|
export * from "./AgentState";
|
|
11
12
|
export * from "./AgentType";
|
|
@@ -72,6 +73,7 @@ export * from "./CompletionCreateParamsStreaming";
|
|
|
72
73
|
export * from "./ConditionalToolRule";
|
|
73
74
|
export * from "./ContextWindowOverview";
|
|
74
75
|
export * from "./ContinueToolRule";
|
|
76
|
+
export * from "./CoreMemoryBlockSchema";
|
|
75
77
|
export * from "./CreateBlock";
|
|
76
78
|
export * from "./DynamicManager";
|
|
77
79
|
export * from "./E2BSandboxConfig";
|
|
@@ -117,17 +119,25 @@ export * from "./McpServerType";
|
|
|
117
119
|
export * from "./McpTool";
|
|
118
120
|
export * from "./ManagerType";
|
|
119
121
|
export * from "./Memory";
|
|
122
|
+
export * from "./MessageContentItem";
|
|
120
123
|
export * from "./Message";
|
|
121
124
|
export * from "./MessageCreateRole";
|
|
122
125
|
export * from "./MessageCreateContent";
|
|
123
126
|
export * from "./MessageCreate";
|
|
124
127
|
export * from "./MessageRole";
|
|
128
|
+
export * from "./MessageSchema";
|
|
129
|
+
export * from "./OmittedReasoningContent";
|
|
125
130
|
export * from "./Organization";
|
|
126
131
|
export * from "./OrganizationCreate";
|
|
132
|
+
export * from "./ParameterProperties";
|
|
133
|
+
export * from "./ParametersSchema";
|
|
127
134
|
export * from "./Passage";
|
|
128
135
|
export * from "./PipRequirement";
|
|
129
136
|
export * from "./Provider";
|
|
137
|
+
export * from "./ReasoningContent";
|
|
138
|
+
export * from "./ReasoningMessageSource";
|
|
130
139
|
export * from "./ReasoningMessage";
|
|
140
|
+
export * from "./RedactedReasoningContent";
|
|
131
141
|
export * from "./ResponseFormatJsonObject";
|
|
132
142
|
export * from "./ResponseFormatJsonSchema";
|
|
133
143
|
export * from "./ResponseFormatText";
|
|
@@ -147,25 +157,30 @@ export * from "./Source";
|
|
|
147
157
|
export * from "./StdioServerConfig";
|
|
148
158
|
export * from "./Step";
|
|
149
159
|
export * from "./SupervisorManager";
|
|
150
|
-
export * from "./SystemMessageContent";
|
|
151
160
|
export * from "./SystemMessage";
|
|
161
|
+
export * from "./TagSchema";
|
|
152
162
|
export * from "./TerminalToolRule";
|
|
153
163
|
export * from "./TextContent";
|
|
154
164
|
export * from "./Tool";
|
|
155
165
|
export * from "./ToolCall";
|
|
166
|
+
export * from "./ToolCallContent";
|
|
156
167
|
export * from "./ToolCallDelta";
|
|
157
168
|
export * from "./ToolCallMessageToolCall";
|
|
158
169
|
export * from "./ToolCallMessage";
|
|
159
170
|
export * from "./ToolCreate";
|
|
171
|
+
export * from "./ToolEnvVarSchema";
|
|
172
|
+
export * from "./ToolJsonSchema";
|
|
160
173
|
export * from "./ToolReturnStatus";
|
|
161
174
|
export * from "./ToolReturn";
|
|
175
|
+
export * from "./ToolReturnContent";
|
|
162
176
|
export * from "./ToolReturnMessageStatus";
|
|
163
177
|
export * from "./ToolReturnMessage";
|
|
178
|
+
export * from "./ToolRuleSchema";
|
|
179
|
+
export * from "./ToolSchema";
|
|
164
180
|
export * from "./ToolType";
|
|
165
181
|
export * from "./UpdateAssistantMessageContent";
|
|
166
182
|
export * from "./UpdateAssistantMessage";
|
|
167
183
|
export * from "./UpdateReasoningMessage";
|
|
168
|
-
export * from "./UpdateSystemMessageContent";
|
|
169
184
|
export * from "./UpdateSystemMessage";
|
|
170
185
|
export * from "./UpdateUserMessageContent";
|
|
171
186
|
export * from "./UpdateUserMessage";
|
|
@@ -185,4 +200,5 @@ export * from "./OpenaiTypesChatChatCompletionMessageToolCallParamFunction";
|
|
|
185
200
|
export * from "./OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction";
|
|
186
201
|
export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
|
|
187
202
|
export * from "./LettaMessageUnion";
|
|
203
|
+
export * from "./LettaMessageContentUnion";
|
|
188
204
|
export * from "./ComponentsSchemasTextContent";
|