@letta-ai/letta-client 0.1.123 → 0.1.125
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/Base64Image.d.ts +12 -0
- package/api/types/Base64Image.js +5 -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/ImageContent.d.ts +9 -0
- package/api/types/ImageContent.js +5 -0
- package/api/types/ImageContentSource.d.ts +8 -0
- package/api/types/ImageContentSource.js +5 -0
- package/api/types/LettaBatchRequest.d.ts +2 -0
- package/api/types/LettaImage.d.ts +14 -0
- package/api/types/LettaImage.js +5 -0
- package/api/types/LettaMessageContentUnion.d.ts +1 -1
- package/api/types/LettaRequest.d.ts +2 -0
- package/api/types/LettaStreamingRequest.d.ts +2 -0
- package/api/types/LettaUserMessageContentUnion.d.ts +5 -0
- package/api/types/LettaUserMessageContentUnion.js +5 -0
- package/api/types/Memory.d.ts +2 -0
- package/api/types/MessageContentItem.d.ts +1 -1
- 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/UpdateUserMessageContent.d.ts +1 -1
- package/api/types/UrlImage.d.ts +8 -0
- package/api/types/UrlImage.js +5 -0
- package/api/types/UserMessageContent.d.ts +1 -1
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -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/Base64Image.d.ts +12 -0
- package/dist/api/types/Base64Image.js +5 -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/ImageContent.d.ts +9 -0
- package/dist/api/types/ImageContent.js +5 -0
- package/dist/api/types/ImageContentSource.d.ts +8 -0
- package/dist/api/types/ImageContentSource.js +5 -0
- package/dist/api/types/LettaBatchRequest.d.ts +2 -0
- package/dist/api/types/LettaImage.d.ts +14 -0
- package/dist/api/types/LettaImage.js +5 -0
- package/dist/api/types/LettaMessageContentUnion.d.ts +1 -1
- package/dist/api/types/LettaRequest.d.ts +2 -0
- package/dist/api/types/LettaStreamingRequest.d.ts +2 -0
- package/dist/api/types/LettaUserMessageContentUnion.d.ts +5 -0
- package/dist/api/types/LettaUserMessageContentUnion.js +5 -0
- package/dist/api/types/Memory.d.ts +2 -0
- package/dist/api/types/MessageContentItem.d.ts +1 -1
- 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/UpdateUserMessageContent.d.ts +1 -1
- package/dist/api/types/UrlImage.d.ts +8 -0
- package/dist/api/types/UrlImage.js +5 -0
- package/dist/api/types/UserMessageContent.d.ts +1 -1
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -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/Base64Image.d.ts +15 -0
- package/dist/serialization/types/Base64Image.js +46 -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/ImageContent.d.ts +14 -0
- package/dist/serialization/types/ImageContent.js +45 -0
- package/dist/serialization/types/ImageContentSource.d.ts +13 -0
- package/dist/serialization/types/ImageContentSource.js +44 -0
- package/dist/serialization/types/LettaBatchRequest.d.ts +2 -0
- package/dist/serialization/types/LettaBatchRequest.js +2 -0
- package/dist/serialization/types/LettaImage.d.ts +16 -0
- package/dist/serialization/types/LettaImage.js +47 -0
- package/dist/serialization/types/LettaMessageContentUnion.d.ts +2 -1
- package/dist/serialization/types/LettaMessageContentUnion.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/LettaUserMessageContentUnion.d.ts +12 -0
- package/dist/serialization/types/LettaUserMessageContentUnion.js +43 -0
- package/dist/serialization/types/Memory.d.ts +1 -0
- package/dist/serialization/types/Memory.js +1 -0
- package/dist/serialization/types/MessageContentItem.d.ts +2 -1
- package/dist/serialization/types/MessageContentItem.js +2 -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/UpdateUserMessageContent.d.ts +2 -2
- package/dist/serialization/types/UpdateUserMessageContent.js +2 -2
- package/dist/serialization/types/UrlImage.d.ts +13 -0
- package/dist/serialization/types/UrlImage.js +44 -0
- package/dist/serialization/types/UserMessageContent.d.ts +2 -2
- package/dist/serialization/types/UserMessageContent.js +2 -2
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -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/Base64Image.d.ts +15 -0
- package/serialization/types/Base64Image.js +46 -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/ImageContent.d.ts +14 -0
- package/serialization/types/ImageContent.js +45 -0
- package/serialization/types/ImageContentSource.d.ts +13 -0
- package/serialization/types/ImageContentSource.js +44 -0
- package/serialization/types/LettaBatchRequest.d.ts +2 -0
- package/serialization/types/LettaBatchRequest.js +2 -0
- package/serialization/types/LettaImage.d.ts +16 -0
- package/serialization/types/LettaImage.js +47 -0
- package/serialization/types/LettaMessageContentUnion.d.ts +2 -1
- package/serialization/types/LettaMessageContentUnion.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/LettaUserMessageContentUnion.d.ts +12 -0
- package/serialization/types/LettaUserMessageContentUnion.js +43 -0
- package/serialization/types/Memory.d.ts +1 -0
- package/serialization/types/Memory.js +1 -0
- package/serialization/types/MessageContentItem.d.ts +2 -1
- package/serialization/types/MessageContentItem.js +2 -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/UpdateUserMessageContent.d.ts +2 -2
- package/serialization/types/UpdateUserMessageContent.js +2 -2
- package/serialization/types/UrlImage.d.ts +13 -0
- package/serialization/types/UrlImage.js +44 -0
- package/serialization/types/UserMessageContent.d.ts +2 -2
- package/serialization/types/UserMessageContent.js +2 -2
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/api/types/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from "./Audio";
|
|
|
23
23
|
export * from "./AuthRequest";
|
|
24
24
|
export * from "./AuthResponse";
|
|
25
25
|
export * from "./AuthSchemeField";
|
|
26
|
+
export * from "./Base64Image";
|
|
26
27
|
export * from "./BaseToolRuleSchema";
|
|
27
28
|
export * from "./BatchJob";
|
|
28
29
|
export * from "./Block";
|
|
@@ -91,6 +92,7 @@ export * from "./EmbeddingConfig";
|
|
|
91
92
|
export * from "./File_";
|
|
92
93
|
export * from "./FileFile";
|
|
93
94
|
export * from "./FileMetadata";
|
|
95
|
+
export * from "./FileProcessingStatus";
|
|
94
96
|
export * from "./FunctionOutput";
|
|
95
97
|
export * from "./FunctionCall";
|
|
96
98
|
export * from "./FunctionDefinitionInput";
|
|
@@ -106,6 +108,8 @@ export * from "./IdentityPropertyValue";
|
|
|
106
108
|
export * from "./IdentityProperty";
|
|
107
109
|
export * from "./IdentityPropertyType";
|
|
108
110
|
export * from "./IdentityType";
|
|
111
|
+
export * from "./ImageContentSource";
|
|
112
|
+
export * from "./ImageContent";
|
|
109
113
|
export * from "./ImageUrlDetail";
|
|
110
114
|
export * from "./ImageUrl";
|
|
111
115
|
export * from "./InitToolRule";
|
|
@@ -122,6 +126,7 @@ export * from "./LlmConfigReasoningEffort";
|
|
|
122
126
|
export * from "./LlmConfig";
|
|
123
127
|
export * from "./LettaBatchMessages";
|
|
124
128
|
export * from "./LettaBatchRequest";
|
|
129
|
+
export * from "./LettaImage";
|
|
125
130
|
export * from "./LettaRequest";
|
|
126
131
|
export * from "./LettaRequestConfig";
|
|
127
132
|
export * from "./LettaResponse";
|
|
@@ -141,6 +146,7 @@ export * from "./MessageCreateContent";
|
|
|
141
146
|
export * from "./MessageCreate";
|
|
142
147
|
export * from "./MessageRole";
|
|
143
148
|
export * from "./MessageSchema";
|
|
149
|
+
export * from "./MessageType";
|
|
144
150
|
export * from "./OmittedReasoningContent";
|
|
145
151
|
export * from "./Organization";
|
|
146
152
|
export * from "./OrganizationCreate";
|
|
@@ -208,6 +214,7 @@ export * from "./UpdateReasoningMessage";
|
|
|
208
214
|
export * from "./UpdateSystemMessage";
|
|
209
215
|
export * from "./UpdateUserMessageContent";
|
|
210
216
|
export * from "./UpdateUserMessage";
|
|
217
|
+
export * from "./UrlImage";
|
|
211
218
|
export * from "./UsageStatistics";
|
|
212
219
|
export * from "./UsageStatisticsCompletionTokenDetails";
|
|
213
220
|
export * from "./UsageStatisticsPromptTokenDetails";
|
|
@@ -230,3 +237,4 @@ export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
|
|
|
230
237
|
export * from "./LettaMessageUnion";
|
|
231
238
|
export * from "./LettaMessageContentUnion";
|
|
232
239
|
export * from "./ComponentsSchemasTextContent";
|
|
240
|
+
export * from "./LettaUserMessageContentUnion";
|
package/api/types/index.js
CHANGED
|
@@ -39,6 +39,7 @@ __exportStar(require("./Audio"), exports);
|
|
|
39
39
|
__exportStar(require("./AuthRequest"), exports);
|
|
40
40
|
__exportStar(require("./AuthResponse"), exports);
|
|
41
41
|
__exportStar(require("./AuthSchemeField"), exports);
|
|
42
|
+
__exportStar(require("./Base64Image"), exports);
|
|
42
43
|
__exportStar(require("./BaseToolRuleSchema"), exports);
|
|
43
44
|
__exportStar(require("./BatchJob"), exports);
|
|
44
45
|
__exportStar(require("./Block"), exports);
|
|
@@ -107,6 +108,7 @@ __exportStar(require("./EmbeddingConfig"), exports);
|
|
|
107
108
|
__exportStar(require("./File_"), exports);
|
|
108
109
|
__exportStar(require("./FileFile"), exports);
|
|
109
110
|
__exportStar(require("./FileMetadata"), exports);
|
|
111
|
+
__exportStar(require("./FileProcessingStatus"), exports);
|
|
110
112
|
__exportStar(require("./FunctionOutput"), exports);
|
|
111
113
|
__exportStar(require("./FunctionCall"), exports);
|
|
112
114
|
__exportStar(require("./FunctionDefinitionInput"), exports);
|
|
@@ -122,6 +124,8 @@ __exportStar(require("./IdentityPropertyValue"), exports);
|
|
|
122
124
|
__exportStar(require("./IdentityProperty"), exports);
|
|
123
125
|
__exportStar(require("./IdentityPropertyType"), exports);
|
|
124
126
|
__exportStar(require("./IdentityType"), exports);
|
|
127
|
+
__exportStar(require("./ImageContentSource"), exports);
|
|
128
|
+
__exportStar(require("./ImageContent"), exports);
|
|
125
129
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
126
130
|
__exportStar(require("./ImageUrl"), exports);
|
|
127
131
|
__exportStar(require("./InitToolRule"), exports);
|
|
@@ -138,6 +142,7 @@ __exportStar(require("./LlmConfigReasoningEffort"), exports);
|
|
|
138
142
|
__exportStar(require("./LlmConfig"), exports);
|
|
139
143
|
__exportStar(require("./LettaBatchMessages"), exports);
|
|
140
144
|
__exportStar(require("./LettaBatchRequest"), exports);
|
|
145
|
+
__exportStar(require("./LettaImage"), exports);
|
|
141
146
|
__exportStar(require("./LettaRequest"), exports);
|
|
142
147
|
__exportStar(require("./LettaRequestConfig"), exports);
|
|
143
148
|
__exportStar(require("./LettaResponse"), exports);
|
|
@@ -157,6 +162,7 @@ __exportStar(require("./MessageCreateContent"), exports);
|
|
|
157
162
|
__exportStar(require("./MessageCreate"), exports);
|
|
158
163
|
__exportStar(require("./MessageRole"), exports);
|
|
159
164
|
__exportStar(require("./MessageSchema"), exports);
|
|
165
|
+
__exportStar(require("./MessageType"), exports);
|
|
160
166
|
__exportStar(require("./OmittedReasoningContent"), exports);
|
|
161
167
|
__exportStar(require("./Organization"), exports);
|
|
162
168
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
@@ -224,6 +230,7 @@ __exportStar(require("./UpdateReasoningMessage"), exports);
|
|
|
224
230
|
__exportStar(require("./UpdateSystemMessage"), exports);
|
|
225
231
|
__exportStar(require("./UpdateUserMessageContent"), exports);
|
|
226
232
|
__exportStar(require("./UpdateUserMessage"), exports);
|
|
233
|
+
__exportStar(require("./UrlImage"), exports);
|
|
227
234
|
__exportStar(require("./UsageStatistics"), exports);
|
|
228
235
|
__exportStar(require("./UsageStatisticsCompletionTokenDetails"), exports);
|
|
229
236
|
__exportStar(require("./UsageStatisticsPromptTokenDetails"), exports);
|
|
@@ -246,3 +253,4 @@ __exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports
|
|
|
246
253
|
__exportStar(require("./LettaMessageUnion"), exports);
|
|
247
254
|
__exportStar(require("./LettaMessageContentUnion"), exports);
|
|
248
255
|
__exportStar(require("./ComponentsSchemasTextContent"), exports);
|
|
256
|
+
__exportStar(require("./LettaUserMessageContentUnion"), exports);
|
|
@@ -158,6 +158,24 @@ export declare class Agents {
|
|
|
158
158
|
* await client.agents.modify("agent_id")
|
|
159
159
|
*/
|
|
160
160
|
modify(agentId: string, request?: Letta.UpdateAgent, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
161
|
+
/**
|
|
162
|
+
* Summarize an agent's conversation history to a target message length.
|
|
163
|
+
*
|
|
164
|
+
* This endpoint summarizes the current message history for a given agent,
|
|
165
|
+
* truncating and compressing it down to the specified `max_message_length`.
|
|
166
|
+
*
|
|
167
|
+
* @param {string} agentId
|
|
168
|
+
* @param {Letta.SummarizeAgentConversationRequest} request
|
|
169
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
170
|
+
*
|
|
171
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* await client.agents.summarizeAgentConversation("agent_id", {
|
|
175
|
+
* maxMessageLength: 1
|
|
176
|
+
* })
|
|
177
|
+
*/
|
|
178
|
+
summarizeAgentConversation(agentId: string, request: Letta.SummarizeAgentConversationRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
161
179
|
/**
|
|
162
180
|
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
163
181
|
*
|
|
@@ -199,7 +199,7 @@ class Agents {
|
|
|
199
199
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
200
200
|
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/agents/"),
|
|
201
201
|
method: "GET",
|
|
202
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
202
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
203
203
|
contentType: "application/json",
|
|
204
204
|
queryParameters: _queryParams,
|
|
205
205
|
requestType: "json",
|
|
@@ -266,7 +266,7 @@ class Agents {
|
|
|
266
266
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
267
267
|
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/agents/"),
|
|
268
268
|
method: "POST",
|
|
269
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
269
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
270
270
|
contentType: "application/json",
|
|
271
271
|
requestType: "json",
|
|
272
272
|
body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -331,7 +331,7 @@ class Agents {
|
|
|
331
331
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
332
332
|
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/agents/count"),
|
|
333
333
|
method: "GET",
|
|
334
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
334
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
335
335
|
contentType: "application/json",
|
|
336
336
|
requestType: "json",
|
|
337
337
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -396,7 +396,7 @@ class Agents {
|
|
|
396
396
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
397
397
|
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/agents/${encodeURIComponent(agentId)}/export`),
|
|
398
398
|
method: "GET",
|
|
399
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
399
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
400
400
|
contentType: "application/json",
|
|
401
401
|
requestType: "json",
|
|
402
402
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -478,7 +478,7 @@ class Agents {
|
|
|
478
478
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
479
479
|
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/agents/import"),
|
|
480
480
|
method: "POST",
|
|
481
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
481
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
482
482
|
queryParameters: _queryParams,
|
|
483
483
|
requestType: "file",
|
|
484
484
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -545,7 +545,7 @@ class Agents {
|
|
|
545
545
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
546
546
|
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/agents/${encodeURIComponent(agentId)}`),
|
|
547
547
|
method: "GET",
|
|
548
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
548
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
549
549
|
contentType: "application/json",
|
|
550
550
|
requestType: "json",
|
|
551
551
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -610,7 +610,7 @@ class Agents {
|
|
|
610
610
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
611
611
|
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/agents/${encodeURIComponent(agentId)}`),
|
|
612
612
|
method: "DELETE",
|
|
613
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
613
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
614
614
|
contentType: "application/json",
|
|
615
615
|
requestType: "json",
|
|
616
616
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -670,7 +670,7 @@ class Agents {
|
|
|
670
670
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
671
671
|
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/agents/${encodeURIComponent(agentId)}`),
|
|
672
672
|
method: "PATCH",
|
|
673
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
673
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
674
674
|
contentType: "application/json",
|
|
675
675
|
requestType: "json",
|
|
676
676
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -719,6 +719,81 @@ class Agents {
|
|
|
719
719
|
}
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
|
+
/**
|
|
723
|
+
* Summarize an agent's conversation history to a target message length.
|
|
724
|
+
*
|
|
725
|
+
* This endpoint summarizes the current message history for a given agent,
|
|
726
|
+
* truncating and compressing it down to the specified `max_message_length`.
|
|
727
|
+
*
|
|
728
|
+
* @param {string} agentId
|
|
729
|
+
* @param {Letta.SummarizeAgentConversationRequest} request
|
|
730
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
731
|
+
*
|
|
732
|
+
* @throws {@link Letta.UnprocessableEntityError}
|
|
733
|
+
*
|
|
734
|
+
* @example
|
|
735
|
+
* await client.agents.summarizeAgentConversation("agent_id", {
|
|
736
|
+
* maxMessageLength: 1
|
|
737
|
+
* })
|
|
738
|
+
*/
|
|
739
|
+
summarizeAgentConversation(agentId, request, requestOptions) {
|
|
740
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
741
|
+
var _a, _b, _c;
|
|
742
|
+
const { maxMessageLength } = request;
|
|
743
|
+
const _queryParams = {};
|
|
744
|
+
_queryParams["max_message_length"] = maxMessageLength.toString();
|
|
745
|
+
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
746
|
+
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/agents/${encodeURIComponent(agentId)}/summarize`),
|
|
747
|
+
method: "POST",
|
|
748
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
749
|
+
contentType: "application/json",
|
|
750
|
+
queryParameters: _queryParams,
|
|
751
|
+
requestType: "json",
|
|
752
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
753
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
754
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
755
|
+
});
|
|
756
|
+
if (_response.ok) {
|
|
757
|
+
return serializers.AgentState.parseOrThrow(_response.body, {
|
|
758
|
+
unrecognizedObjectKeys: "passthrough",
|
|
759
|
+
allowUnrecognizedUnionMembers: true,
|
|
760
|
+
allowUnrecognizedEnumValues: true,
|
|
761
|
+
skipValidation: true,
|
|
762
|
+
breadcrumbsPrefix: ["response"],
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
if (_response.error.reason === "status-code") {
|
|
766
|
+
switch (_response.error.statusCode) {
|
|
767
|
+
case 422:
|
|
768
|
+
throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
769
|
+
unrecognizedObjectKeys: "passthrough",
|
|
770
|
+
allowUnrecognizedUnionMembers: true,
|
|
771
|
+
allowUnrecognizedEnumValues: true,
|
|
772
|
+
skipValidation: true,
|
|
773
|
+
breadcrumbsPrefix: ["response"],
|
|
774
|
+
}));
|
|
775
|
+
default:
|
|
776
|
+
throw new errors.LettaError({
|
|
777
|
+
statusCode: _response.error.statusCode,
|
|
778
|
+
body: _response.error.body,
|
|
779
|
+
});
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
switch (_response.error.reason) {
|
|
783
|
+
case "non-json":
|
|
784
|
+
throw new errors.LettaError({
|
|
785
|
+
statusCode: _response.error.statusCode,
|
|
786
|
+
body: _response.error.rawBody,
|
|
787
|
+
});
|
|
788
|
+
case "timeout":
|
|
789
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/{agent_id}/summarize.");
|
|
790
|
+
case "unknown":
|
|
791
|
+
throw new errors.LettaError({
|
|
792
|
+
message: _response.error.errorMessage,
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
}
|
|
722
797
|
/**
|
|
723
798
|
* <Note>This endpoint is only available on Letta Cloud.</Note>
|
|
724
799
|
*
|
|
@@ -736,7 +811,7 @@ class Agents {
|
|
|
736
811
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
737
812
|
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/agents/search"),
|
|
738
813
|
method: "POST",
|
|
739
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
814
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
740
815
|
contentType: "application/json",
|
|
741
816
|
requestType: "json",
|
|
742
817
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* maxMessageLength: 1
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface SummarizeAgentConversationRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Maximum number of messages to retain after summarization.
|
|
13
|
+
*/
|
|
14
|
+
maxMessageLength: number;
|
|
15
|
+
}
|
|
@@ -2,4 +2,5 @@ export { type AgentsListRequest } from "./AgentsListRequest";
|
|
|
2
2
|
export { type CreateAgentRequest } from "./CreateAgentRequest";
|
|
3
3
|
export { type BodyImportAgentSerialized } from "./BodyImportAgentSerialized";
|
|
4
4
|
export { type UpdateAgent } from "./UpdateAgent";
|
|
5
|
+
export { type SummarizeAgentConversationRequest } from "./SummarizeAgentConversationRequest";
|
|
5
6
|
export { type AgentsSearchRequest } from "./AgentsSearchRequest";
|
|
@@ -77,7 +77,7 @@ class Blocks {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -144,7 +144,7 @@ class Blocks {
|
|
|
144
144
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
145
145
|
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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/${encodeURIComponent(blockLabel)}`),
|
|
146
146
|
method: "PATCH",
|
|
147
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
147
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
148
148
|
contentType: "application/json",
|
|
149
149
|
requestType: "json",
|
|
150
150
|
body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -210,7 +210,7 @@ class Blocks {
|
|
|
210
210
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
211
211
|
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/agents/${encodeURIComponent(agentId)}/core-memory/blocks`),
|
|
212
212
|
method: "GET",
|
|
213
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
213
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
214
214
|
contentType: "application/json",
|
|
215
215
|
requestType: "json",
|
|
216
216
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -276,7 +276,7 @@ class Blocks {
|
|
|
276
276
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
277
277
|
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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/attach/${encodeURIComponent(blockId)}`),
|
|
278
278
|
method: "PATCH",
|
|
279
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
279
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
280
280
|
contentType: "application/json",
|
|
281
281
|
requestType: "json",
|
|
282
282
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -342,7 +342,7 @@ class Blocks {
|
|
|
342
342
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
343
343
|
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/agents/${encodeURIComponent(agentId)}/core-memory/blocks/detach/${encodeURIComponent(blockId)}`),
|
|
344
344
|
method: "PATCH",
|
|
345
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
345
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
346
346
|
contentType: "application/json",
|
|
347
347
|
requestType: "json",
|
|
348
348
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -76,7 +76,7 @@ class Context {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
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/agents/${encodeURIComponent(agentId)}/context`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -77,7 +77,7 @@ class CoreMemory {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
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/agents/${encodeURIComponent(agentId)}/core-memory`),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -82,7 +82,7 @@ class Groups {
|
|
|
82
82
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
83
83
|
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/agents/${encodeURIComponent(agentId)}/groups`),
|
|
84
84
|
method: "GET",
|
|
85
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
85
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
86
86
|
contentType: "application/json",
|
|
87
87
|
queryParameters: _queryParams,
|
|
88
88
|
requestType: "json",
|
|
@@ -78,7 +78,7 @@ class MemoryVariables {
|
|
|
78
78
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
79
79
|
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/agents/${encodeURIComponent(agentId)}/core-memory/variables`),
|
|
80
80
|
method: "GET",
|
|
81
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
81
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -100,7 +100,7 @@ class Messages {
|
|
|
100
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
101
|
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/agents/${encodeURIComponent(agentId)}/messages`),
|
|
102
102
|
method: "GET",
|
|
103
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
103
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
104
|
contentType: "application/json",
|
|
105
105
|
queryParameters: _queryParams,
|
|
106
106
|
requestType: "json",
|
|
@@ -176,7 +176,7 @@ class Messages {
|
|
|
176
176
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
177
177
|
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/agents/${encodeURIComponent(agentId)}/messages`),
|
|
178
178
|
method: "POST",
|
|
179
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
179
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
180
180
|
contentType: "application/json",
|
|
181
181
|
requestType: "json",
|
|
182
182
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -246,7 +246,7 @@ class Messages {
|
|
|
246
246
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
247
247
|
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/agents/${encodeURIComponent(agentId)}/messages/${encodeURIComponent(messageId)}`),
|
|
248
248
|
method: "PATCH",
|
|
249
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
249
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
250
250
|
contentType: "application/json",
|
|
251
251
|
requestType: "json",
|
|
252
252
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -306,7 +306,7 @@ class Messages {
|
|
|
306
306
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
307
307
|
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/agents/${encodeURIComponent(agentId)}/messages/stream`),
|
|
308
308
|
method: "POST",
|
|
309
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
309
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
310
310
|
contentType: "application/json",
|
|
311
311
|
requestType: "json",
|
|
312
312
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -393,7 +393,7 @@ class Messages {
|
|
|
393
393
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
394
394
|
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/agents/${encodeURIComponent(agentId)}/messages/async`),
|
|
395
395
|
method: "POST",
|
|
396
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
396
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
397
397
|
contentType: "application/json",
|
|
398
398
|
requestType: "json",
|
|
399
399
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -465,7 +465,7 @@ class Messages {
|
|
|
465
465
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
466
466
|
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/agents/${encodeURIComponent(agentId)}/reset-messages`),
|
|
467
467
|
method: "PATCH",
|
|
468
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
468
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
469
469
|
contentType: "application/json",
|
|
470
470
|
queryParameters: _queryParams,
|
|
471
471
|
requestType: "json",
|
|
@@ -94,7 +94,7 @@ class Passages {
|
|
|
94
94
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
95
95
|
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/agents/${encodeURIComponent(agentId)}/archival-memory`),
|
|
96
96
|
method: "GET",
|
|
97
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
97
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
98
98
|
contentType: "application/json",
|
|
99
99
|
queryParameters: _queryParams,
|
|
100
100
|
requestType: "json",
|
|
@@ -163,7 +163,7 @@ class Passages {
|
|
|
163
163
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
164
164
|
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/agents/${encodeURIComponent(agentId)}/archival-memory`),
|
|
165
165
|
method: "POST",
|
|
166
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
166
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -230,7 +230,7 @@ class Passages {
|
|
|
230
230
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
231
231
|
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/agents/${encodeURIComponent(agentId)}/archival-memory/${encodeURIComponent(memoryId)}`),
|
|
232
232
|
method: "DELETE",
|
|
233
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
233
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
234
234
|
contentType: "application/json",
|
|
235
235
|
requestType: "json",
|
|
236
236
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -293,7 +293,7 @@ class Passages {
|
|
|
293
293
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
294
294
|
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/agents/${encodeURIComponent(agentId)}/archival-memory/${encodeURIComponent(memoryId)}`),
|
|
295
295
|
method: "PATCH",
|
|
296
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
296
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
297
297
|
contentType: "application/json",
|
|
298
298
|
requestType: "json",
|
|
299
299
|
body: serializers.agents.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -25,6 +25,8 @@ export interface PassageUpdate {
|
|
|
25
25
|
sourceId?: string;
|
|
26
26
|
/** The unique identifier of the file associated with the passage. */
|
|
27
27
|
fileId?: string;
|
|
28
|
+
/** The name of the file (only for source passages). */
|
|
29
|
+
fileName?: string;
|
|
28
30
|
/** The metadata of the passage. */
|
|
29
31
|
metadata?: Record<string, unknown>;
|
|
30
32
|
/** The text of the passage. */
|
|
@@ -77,7 +77,7 @@ class Sources {
|
|
|
77
77
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
78
78
|
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/agents/${encodeURIComponent(agentId)}/sources/attach/${encodeURIComponent(sourceId)}`),
|
|
79
79
|
method: "PATCH",
|
|
80
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
80
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -143,7 +143,7 @@ class Sources {
|
|
|
143
143
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
144
144
|
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/agents/${encodeURIComponent(agentId)}/sources/detach/${encodeURIComponent(sourceId)}`),
|
|
145
145
|
method: "PATCH",
|
|
146
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
146
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
147
147
|
contentType: "application/json",
|
|
148
148
|
requestType: "json",
|
|
149
149
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -208,7 +208,7 @@ class Sources {
|
|
|
208
208
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
209
209
|
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/agents/${encodeURIComponent(agentId)}/sources`),
|
|
210
210
|
method: "GET",
|
|
211
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
211
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
212
212
|
contentType: "application/json",
|
|
213
213
|
requestType: "json",
|
|
214
214
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|