@letta-ai/letta-client 0.1.62 → 0.1.64
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.js +5 -5
- package/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/groups/client/Client.js +7 -7
- 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.d.ts +29 -1
- package/api/resources/tools/client/Client.js +150 -15
- package/api/resources/tools/types/AddMcpServerRequest.d.ts +5 -0
- package/api/resources/tools/types/AddMcpServerResponseItem.d.ts +5 -0
- package/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +5 -0
- package/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
- package/api/resources/tools/types/index.d.ts +3 -0
- package/api/resources/tools/types/index.js +3 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/AgentSchema.d.ts +27 -0
- package/api/types/AgentSchema.js +5 -0
- package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
- package/api/types/CoreMemoryBlockSchema.js +5 -0
- package/api/types/McpServerType.d.ts +2 -2
- package/api/types/McpServerType.js +1 -1
- package/api/types/MessageSchema.d.ts +16 -0
- package/api/types/MessageSchema.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/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -1
- package/api/types/StdioServerConfig.js +5 -0
- package/api/types/TagSchema.d.ts +6 -0
- package/api/types/TagSchema.js +5 -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/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/index.d.ts +11 -1
- package/api/types/index.js +11 -1
- 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.js +5 -5
- package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/groups/client/Client.js +7 -7
- 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.d.ts +29 -1
- package/dist/api/resources/tools/client/Client.js +150 -15
- package/dist/api/resources/tools/types/AddMcpServerRequest.d.ts +5 -0
- package/dist/api/resources/tools/types/AddMcpServerRequest.js +5 -0
- package/dist/api/resources/tools/types/AddMcpServerResponseItem.d.ts +5 -0
- package/dist/api/resources/tools/types/AddMcpServerResponseItem.js +5 -0
- package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.d.ts +5 -0
- package/dist/api/resources/tools/types/DeleteMcpServerResponseItem.js +5 -0
- package/dist/api/resources/tools/types/ListMcpServersResponseValue.d.ts +1 -1
- package/dist/api/resources/tools/types/index.d.ts +3 -0
- package/dist/api/resources/tools/types/index.js +3 -0
- 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/CoreMemoryBlockSchema.d.ts +16 -0
- package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
- package/dist/api/types/McpServerType.d.ts +2 -2
- package/dist/api/types/McpServerType.js +1 -1
- package/dist/api/types/MessageSchema.d.ts +16 -0
- package/dist/api/types/MessageSchema.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/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -1
- package/dist/api/types/StdioServerConfig.js +5 -0
- package/dist/api/types/TagSchema.d.ts +6 -0
- package/dist/api/types/TagSchema.js +5 -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/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/index.d.ts +11 -1
- package/dist/api/types/index.js +11 -1
- package/dist/serialization/resources/tools/client/addMcpServer.d.ts +11 -0
- package/dist/serialization/resources/tools/client/addMcpServer.js +42 -0
- package/dist/serialization/resources/tools/client/deleteMcpServer.d.ts +11 -0
- package/dist/serialization/resources/tools/client/deleteMcpServer.js +42 -0
- package/dist/serialization/resources/tools/client/index.d.ts +2 -0
- package/dist/serialization/resources/tools/client/index.js +3 -1
- package/dist/serialization/resources/tools/types/AddMcpServerRequest.d.ts +12 -0
- package/dist/serialization/resources/tools/types/AddMcpServerRequest.js +43 -0
- package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +12 -0
- package/dist/serialization/resources/tools/types/AddMcpServerResponseItem.js +43 -0
- package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +12 -0
- package/dist/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +43 -0
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -2
- package/dist/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -2
- package/dist/serialization/resources/tools/types/index.d.ts +3 -0
- package/dist/serialization/resources/tools/types/index.js +3 -0
- package/dist/serialization/types/AgentSchema.d.ts +40 -0
- package/dist/serialization/types/AgentSchema.js +71 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/dist/serialization/types/McpServerType.d.ts +1 -1
- package/dist/serialization/types/McpServerType.js +1 -1
- package/dist/serialization/types/MessageSchema.d.ts +22 -0
- package/dist/serialization/types/MessageSchema.js +53 -0
- package/dist/serialization/types/ParameterProperties.d.ts +13 -0
- package/dist/serialization/types/ParameterProperties.js +44 -0
- package/dist/serialization/types/ParametersSchema.d.ts +15 -0
- package/dist/serialization/types/ParametersSchema.js +46 -0
- package/dist/serialization/types/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -2
- package/dist/serialization/types/{LocalServerConfig.js → StdioServerConfig.js} +3 -2
- package/dist/serialization/types/TagSchema.d.ts +12 -0
- package/dist/serialization/types/TagSchema.js +43 -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/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/index.d.ts +11 -1
- package/dist/serialization/types/index.js +11 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +138 -8
- package/serialization/resources/tools/client/addMcpServer.d.ts +11 -0
- package/serialization/resources/tools/client/addMcpServer.js +42 -0
- package/serialization/resources/tools/client/deleteMcpServer.d.ts +11 -0
- package/serialization/resources/tools/client/deleteMcpServer.js +42 -0
- package/serialization/resources/tools/client/index.d.ts +2 -0
- package/serialization/resources/tools/client/index.js +3 -1
- package/serialization/resources/tools/types/AddMcpServerRequest.d.ts +12 -0
- package/serialization/resources/tools/types/AddMcpServerRequest.js +43 -0
- package/serialization/resources/tools/types/AddMcpServerResponseItem.d.ts +12 -0
- package/serialization/resources/tools/types/AddMcpServerResponseItem.js +43 -0
- package/serialization/resources/tools/types/DeleteMcpServerResponseItem.d.ts +12 -0
- package/serialization/resources/tools/types/DeleteMcpServerResponseItem.js +43 -0
- package/serialization/resources/tools/types/ListMcpServersResponseValue.d.ts +2 -2
- package/serialization/resources/tools/types/ListMcpServersResponseValue.js +2 -2
- package/serialization/resources/tools/types/index.d.ts +3 -0
- package/serialization/resources/tools/types/index.js +3 -0
- package/serialization/types/AgentSchema.d.ts +40 -0
- package/serialization/types/AgentSchema.js +71 -0
- package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
- package/serialization/types/CoreMemoryBlockSchema.js +53 -0
- package/serialization/types/McpServerType.d.ts +1 -1
- package/serialization/types/McpServerType.js +1 -1
- package/serialization/types/MessageSchema.d.ts +22 -0
- package/serialization/types/MessageSchema.js +53 -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/{LocalServerConfig.d.ts → StdioServerConfig.d.ts} +3 -2
- package/serialization/types/{LocalServerConfig.js → StdioServerConfig.js} +3 -2
- package/serialization/types/TagSchema.d.ts +12 -0
- package/serialization/types/TagSchema.js +43 -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/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/index.d.ts +11 -1
- package/serialization/types/index.js +11 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
- /package/api/{types/LocalServerConfig.js → resources/tools/types/AddMcpServerRequest.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/resources/tools/types/AddMcpServerResponseItem.js} +0 -0
- /package/{dist/api/types/LocalServerConfig.js → api/resources/tools/types/DeleteMcpServerResponseItem.js} +0 -0
|
@@ -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
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -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";
|
|
@@ -113,7 +115,6 @@ export * from "./LettaResponse";
|
|
|
113
115
|
export * from "./LettaStreamingRequest";
|
|
114
116
|
export * from "./LettaUsageStatistics";
|
|
115
117
|
export * from "./LocalSandboxConfig";
|
|
116
|
-
export * from "./LocalServerConfig";
|
|
117
118
|
export * from "./McpServerType";
|
|
118
119
|
export * from "./McpTool";
|
|
119
120
|
export * from "./ManagerType";
|
|
@@ -123,8 +124,11 @@ export * from "./MessageCreateRole";
|
|
|
123
124
|
export * from "./MessageCreateContent";
|
|
124
125
|
export * from "./MessageCreate";
|
|
125
126
|
export * from "./MessageRole";
|
|
127
|
+
export * from "./MessageSchema";
|
|
126
128
|
export * from "./Organization";
|
|
127
129
|
export * from "./OrganizationCreate";
|
|
130
|
+
export * from "./ParameterProperties";
|
|
131
|
+
export * from "./ParametersSchema";
|
|
128
132
|
export * from "./Passage";
|
|
129
133
|
export * from "./PipRequirement";
|
|
130
134
|
export * from "./Provider";
|
|
@@ -145,10 +149,12 @@ export * from "./SandboxEnvironmentVariableCreate";
|
|
|
145
149
|
export * from "./SandboxEnvironmentVariableUpdate";
|
|
146
150
|
export * from "./SandboxType";
|
|
147
151
|
export * from "./Source";
|
|
152
|
+
export * from "./StdioServerConfig";
|
|
148
153
|
export * from "./Step";
|
|
149
154
|
export * from "./SupervisorManager";
|
|
150
155
|
export * from "./SystemMessageContent";
|
|
151
156
|
export * from "./SystemMessage";
|
|
157
|
+
export * from "./TagSchema";
|
|
152
158
|
export * from "./TerminalToolRule";
|
|
153
159
|
export * from "./TextContent";
|
|
154
160
|
export * from "./Tool";
|
|
@@ -157,10 +163,14 @@ export * from "./ToolCallDelta";
|
|
|
157
163
|
export * from "./ToolCallMessageToolCall";
|
|
158
164
|
export * from "./ToolCallMessage";
|
|
159
165
|
export * from "./ToolCreate";
|
|
166
|
+
export * from "./ToolEnvVarSchema";
|
|
167
|
+
export * from "./ToolJsonSchema";
|
|
160
168
|
export * from "./ToolReturnStatus";
|
|
161
169
|
export * from "./ToolReturn";
|
|
162
170
|
export * from "./ToolReturnMessageStatus";
|
|
163
171
|
export * from "./ToolReturnMessage";
|
|
172
|
+
export * from "./ToolRuleSchema";
|
|
173
|
+
export * from "./ToolSchema";
|
|
164
174
|
export * from "./ToolType";
|
|
165
175
|
export * from "./UpdateAssistantMessageContent";
|
|
166
176
|
export * from "./UpdateAssistantMessage";
|
package/api/types/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./ActionModel"), exports);
|
|
|
22
22
|
__exportStar(require("./ActionParametersModel"), exports);
|
|
23
23
|
__exportStar(require("./ActionResponseModel"), exports);
|
|
24
24
|
__exportStar(require("./AgentEnvironmentVariable"), exports);
|
|
25
|
+
__exportStar(require("./AgentSchema"), exports);
|
|
25
26
|
__exportStar(require("./AgentStateToolRulesItem"), exports);
|
|
26
27
|
__exportStar(require("./AgentState"), exports);
|
|
27
28
|
__exportStar(require("./AgentType"), exports);
|
|
@@ -88,6 +89,7 @@ __exportStar(require("./CompletionCreateParamsStreaming"), exports);
|
|
|
88
89
|
__exportStar(require("./ConditionalToolRule"), exports);
|
|
89
90
|
__exportStar(require("./ContextWindowOverview"), exports);
|
|
90
91
|
__exportStar(require("./ContinueToolRule"), exports);
|
|
92
|
+
__exportStar(require("./CoreMemoryBlockSchema"), exports);
|
|
91
93
|
__exportStar(require("./CreateBlock"), exports);
|
|
92
94
|
__exportStar(require("./DynamicManager"), exports);
|
|
93
95
|
__exportStar(require("./E2BSandboxConfig"), exports);
|
|
@@ -129,7 +131,6 @@ __exportStar(require("./LettaResponse"), exports);
|
|
|
129
131
|
__exportStar(require("./LettaStreamingRequest"), exports);
|
|
130
132
|
__exportStar(require("./LettaUsageStatistics"), exports);
|
|
131
133
|
__exportStar(require("./LocalSandboxConfig"), exports);
|
|
132
|
-
__exportStar(require("./LocalServerConfig"), exports);
|
|
133
134
|
__exportStar(require("./McpServerType"), exports);
|
|
134
135
|
__exportStar(require("./McpTool"), exports);
|
|
135
136
|
__exportStar(require("./ManagerType"), exports);
|
|
@@ -139,8 +140,11 @@ __exportStar(require("./MessageCreateRole"), exports);
|
|
|
139
140
|
__exportStar(require("./MessageCreateContent"), exports);
|
|
140
141
|
__exportStar(require("./MessageCreate"), exports);
|
|
141
142
|
__exportStar(require("./MessageRole"), exports);
|
|
143
|
+
__exportStar(require("./MessageSchema"), exports);
|
|
142
144
|
__exportStar(require("./Organization"), exports);
|
|
143
145
|
__exportStar(require("./OrganizationCreate"), exports);
|
|
146
|
+
__exportStar(require("./ParameterProperties"), exports);
|
|
147
|
+
__exportStar(require("./ParametersSchema"), exports);
|
|
144
148
|
__exportStar(require("./Passage"), exports);
|
|
145
149
|
__exportStar(require("./PipRequirement"), exports);
|
|
146
150
|
__exportStar(require("./Provider"), exports);
|
|
@@ -161,10 +165,12 @@ __exportStar(require("./SandboxEnvironmentVariableCreate"), exports);
|
|
|
161
165
|
__exportStar(require("./SandboxEnvironmentVariableUpdate"), exports);
|
|
162
166
|
__exportStar(require("./SandboxType"), exports);
|
|
163
167
|
__exportStar(require("./Source"), exports);
|
|
168
|
+
__exportStar(require("./StdioServerConfig"), exports);
|
|
164
169
|
__exportStar(require("./Step"), exports);
|
|
165
170
|
__exportStar(require("./SupervisorManager"), exports);
|
|
166
171
|
__exportStar(require("./SystemMessageContent"), exports);
|
|
167
172
|
__exportStar(require("./SystemMessage"), exports);
|
|
173
|
+
__exportStar(require("./TagSchema"), exports);
|
|
168
174
|
__exportStar(require("./TerminalToolRule"), exports);
|
|
169
175
|
__exportStar(require("./TextContent"), exports);
|
|
170
176
|
__exportStar(require("./Tool"), exports);
|
|
@@ -173,10 +179,14 @@ __exportStar(require("./ToolCallDelta"), exports);
|
|
|
173
179
|
__exportStar(require("./ToolCallMessageToolCall"), exports);
|
|
174
180
|
__exportStar(require("./ToolCallMessage"), exports);
|
|
175
181
|
__exportStar(require("./ToolCreate"), exports);
|
|
182
|
+
__exportStar(require("./ToolEnvVarSchema"), exports);
|
|
183
|
+
__exportStar(require("./ToolJsonSchema"), exports);
|
|
176
184
|
__exportStar(require("./ToolReturnStatus"), exports);
|
|
177
185
|
__exportStar(require("./ToolReturn"), exports);
|
|
178
186
|
__exportStar(require("./ToolReturnMessageStatus"), exports);
|
|
179
187
|
__exportStar(require("./ToolReturnMessage"), exports);
|
|
188
|
+
__exportStar(require("./ToolRuleSchema"), exports);
|
|
189
|
+
__exportStar(require("./ToolSchema"), exports);
|
|
180
190
|
__exportStar(require("./ToolType"), exports);
|
|
181
191
|
__exportStar(require("./UpdateAssistantMessageContent"), exports);
|
|
182
192
|
__exportStar(require("./UpdateAssistantMessage"), exports);
|
|
@@ -83,7 +83,7 @@ export declare class Agents {
|
|
|
83
83
|
*/
|
|
84
84
|
create(request?: Letta.CreateAgentRequest, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Export the serialized JSON representation of an agent.
|
|
87
87
|
*
|
|
88
88
|
* @param {string} agentId
|
|
89
89
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -91,22 +91,22 @@ export declare class Agents {
|
|
|
91
91
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.agents.
|
|
94
|
+
* await client.agents.exportAgentSerialized("agent_id")
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
exportAgentSerialized(agentId: string, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentSchema>;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Import a serialized agent file and recreate the agent in the system.
|
|
99
99
|
*
|
|
100
100
|
* @param {File | fs.ReadStream | Blob} file
|
|
101
|
-
* @param {Letta.
|
|
101
|
+
* @param {Letta.BodyImportAgentSerialized} request
|
|
102
102
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
103
|
*
|
|
104
104
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.agents.
|
|
107
|
+
* await client.agents.importAgentSerialized(fs.createReadStream("/path/to/your/file"), {})
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
importAgentSerialized(file: File | fs.ReadStream | Blob, request: Letta.BodyImportAgentSerialized, requestOptions?: Agents.RequestOptions): Promise<Letta.AgentState>;
|
|
110
110
|
/**
|
|
111
111
|
* Get the state of the agent.
|
|
112
112
|
*
|
|
@@ -191,7 +191,7 @@ class Agents {
|
|
|
191
191
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
192
192
|
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/"),
|
|
193
193
|
method: "GET",
|
|
194
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
194
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
195
195
|
contentType: "application/json",
|
|
196
196
|
queryParameters: _queryParams,
|
|
197
197
|
requestType: "json",
|
|
@@ -258,7 +258,7 @@ class Agents {
|
|
|
258
258
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
259
259
|
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/"),
|
|
260
260
|
method: "POST",
|
|
261
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
261
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
262
262
|
contentType: "application/json",
|
|
263
263
|
requestType: "json",
|
|
264
264
|
body: serializers.CreateAgentRequest.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -308,7 +308,7 @@ class Agents {
|
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
/**
|
|
311
|
-
*
|
|
311
|
+
* Export the serialized JSON representation of an agent.
|
|
312
312
|
*
|
|
313
313
|
* @param {string} agentId
|
|
314
314
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -316,15 +316,15 @@ class Agents {
|
|
|
316
316
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
317
317
|
*
|
|
318
318
|
* @example
|
|
319
|
-
* await client.agents.
|
|
319
|
+
* await client.agents.exportAgentSerialized("agent_id")
|
|
320
320
|
*/
|
|
321
|
-
|
|
321
|
+
exportAgentSerialized(agentId, requestOptions) {
|
|
322
322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
323
323
|
var _a, _b, _c;
|
|
324
324
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
325
|
-
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)}/
|
|
325
|
+
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`),
|
|
326
326
|
method: "GET",
|
|
327
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
327
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
328
328
|
contentType: "application/json",
|
|
329
329
|
requestType: "json",
|
|
330
330
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -332,7 +332,13 @@ class Agents {
|
|
|
332
332
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
333
333
|
});
|
|
334
334
|
if (_response.ok) {
|
|
335
|
-
return _response.body
|
|
335
|
+
return serializers.AgentSchema.parseOrThrow(_response.body, {
|
|
336
|
+
unrecognizedObjectKeys: "passthrough",
|
|
337
|
+
allowUnrecognizedUnionMembers: true,
|
|
338
|
+
allowUnrecognizedEnumValues: true,
|
|
339
|
+
skipValidation: true,
|
|
340
|
+
breadcrumbsPrefix: ["response"],
|
|
341
|
+
});
|
|
336
342
|
}
|
|
337
343
|
if (_response.error.reason === "status-code") {
|
|
338
344
|
switch (_response.error.statusCode) {
|
|
@@ -358,7 +364,7 @@ class Agents {
|
|
|
358
364
|
body: _response.error.rawBody,
|
|
359
365
|
});
|
|
360
366
|
case "timeout":
|
|
361
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/
|
|
367
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/agents/{agent_id}/export.");
|
|
362
368
|
case "unknown":
|
|
363
369
|
throw new errors.LettaError({
|
|
364
370
|
message: _response.error.errorMessage,
|
|
@@ -367,18 +373,18 @@ class Agents {
|
|
|
367
373
|
});
|
|
368
374
|
}
|
|
369
375
|
/**
|
|
370
|
-
*
|
|
376
|
+
* Import a serialized agent file and recreate the agent in the system.
|
|
371
377
|
*
|
|
372
378
|
* @param {File | fs.ReadStream | Blob} file
|
|
373
|
-
* @param {Letta.
|
|
379
|
+
* @param {Letta.BodyImportAgentSerialized} request
|
|
374
380
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
375
381
|
*
|
|
376
382
|
* @throws {@link Letta.UnprocessableEntityError}
|
|
377
383
|
*
|
|
378
384
|
* @example
|
|
379
|
-
* await client.agents.
|
|
385
|
+
* await client.agents.importAgentSerialized(fs.createReadStream("/path/to/your/file"), {})
|
|
380
386
|
*/
|
|
381
|
-
|
|
387
|
+
importAgentSerialized(file, request, requestOptions) {
|
|
382
388
|
return __awaiter(this, void 0, void 0, function* () {
|
|
383
389
|
var _a, _b, _c;
|
|
384
390
|
const _queryParams = {};
|
|
@@ -395,9 +401,9 @@ class Agents {
|
|
|
395
401
|
yield _request.appendFile("file", file);
|
|
396
402
|
const _maybeEncodedRequest = yield _request.getRequest();
|
|
397
403
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
398
|
-
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/
|
|
404
|
+
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"),
|
|
399
405
|
method: "POST",
|
|
400
|
-
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.
|
|
406
|
+
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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
401
407
|
queryParameters: _queryParams,
|
|
402
408
|
requestType: "file",
|
|
403
409
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -439,7 +445,7 @@ class Agents {
|
|
|
439
445
|
body: _response.error.rawBody,
|
|
440
446
|
});
|
|
441
447
|
case "timeout":
|
|
442
|
-
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/
|
|
448
|
+
throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/import.");
|
|
443
449
|
case "unknown":
|
|
444
450
|
throw new errors.LettaError({
|
|
445
451
|
message: _response.error.errorMessage,
|
|
@@ -464,7 +470,7 @@ class Agents {
|
|
|
464
470
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
465
471
|
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)}`),
|
|
466
472
|
method: "GET",
|
|
467
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
473
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
468
474
|
contentType: "application/json",
|
|
469
475
|
requestType: "json",
|
|
470
476
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -529,7 +535,7 @@ class Agents {
|
|
|
529
535
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
530
536
|
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)}`),
|
|
531
537
|
method: "DELETE",
|
|
532
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
538
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
533
539
|
contentType: "application/json",
|
|
534
540
|
requestType: "json",
|
|
535
541
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -589,7 +595,7 @@ class Agents {
|
|
|
589
595
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
590
596
|
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)}`),
|
|
591
597
|
method: "PATCH",
|
|
592
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
598
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
593
599
|
contentType: "application/json",
|
|
594
600
|
requestType: "json",
|
|
595
601
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -659,7 +665,7 @@ class Agents {
|
|
|
659
665
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
660
666
|
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)}`),
|
|
661
667
|
method: "PATCH",
|
|
662
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
668
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
663
669
|
contentType: "application/json",
|
|
664
670
|
requestType: "json",
|
|
665
671
|
body: serializers.PassageUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -731,7 +737,7 @@ class Agents {
|
|
|
731
737
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
732
738
|
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`),
|
|
733
739
|
method: "PATCH",
|
|
734
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
740
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
735
741
|
contentType: "application/json",
|
|
736
742
|
queryParameters: _queryParams,
|
|
737
743
|
requestType: "json",
|
|
@@ -797,7 +803,7 @@ class Agents {
|
|
|
797
803
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
798
804
|
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"),
|
|
799
805
|
method: "POST",
|
|
800
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
806
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
801
807
|
contentType: "application/json",
|
|
802
808
|
requestType: "json",
|
|
803
809
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { type AgentsListRequest } from "./AgentsListRequest";
|
|
2
2
|
export { type CreateAgentRequest } from "./CreateAgentRequest";
|
|
3
|
-
export { type
|
|
3
|
+
export { type BodyImportAgentSerialized } from "./BodyImportAgentSerialized";
|
|
4
4
|
export { type UpdateAgent } from "./UpdateAgent";
|
|
5
5
|
export { type PassageUpdate } from "./PassageUpdate";
|
|
6
6
|
export { type ResetMessagesRequest } from "./ResetMessagesRequest";
|
|
@@ -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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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,
|
|
@@ -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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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,
|
|
@@ -97,7 +97,7 @@ class Messages {
|
|
|
97
97
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
98
98
|
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`),
|
|
99
99
|
method: "GET",
|
|
100
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
100
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
101
101
|
contentType: "application/json",
|
|
102
102
|
queryParameters: _queryParams,
|
|
103
103
|
requestType: "json",
|
|
@@ -170,7 +170,7 @@ class Messages {
|
|
|
170
170
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
171
171
|
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`),
|
|
172
172
|
method: "POST",
|
|
173
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
173
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
174
174
|
contentType: "application/json",
|
|
175
175
|
requestType: "json",
|
|
176
176
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -243,7 +243,7 @@ class Messages {
|
|
|
243
243
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
244
244
|
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)}`),
|
|
245
245
|
method: "PATCH",
|
|
246
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
246
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
247
247
|
contentType: "application/json",
|
|
248
248
|
requestType: "json",
|
|
249
249
|
body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -303,7 +303,7 @@ class Messages {
|
|
|
303
303
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
304
304
|
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`),
|
|
305
305
|
method: "POST",
|
|
306
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
306
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
307
307
|
contentType: "application/json",
|
|
308
308
|
requestType: "json",
|
|
309
309
|
body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -387,7 +387,7 @@ class Messages {
|
|
|
387
387
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
388
388
|
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`),
|
|
389
389
|
method: "POST",
|
|
390
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
390
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
391
391
|
contentType: "application/json",
|
|
392
392
|
requestType: "json",
|
|
393
393
|
body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -88,7 +88,7 @@ class Passages {
|
|
|
88
88
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
89
89
|
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`),
|
|
90
90
|
method: "GET",
|
|
91
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
91
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
queryParameters: _queryParams,
|
|
94
94
|
requestType: "json",
|
|
@@ -157,7 +157,7 @@ class Passages {
|
|
|
157
157
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
158
158
|
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`),
|
|
159
159
|
method: "POST",
|
|
160
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
160
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
161
161
|
contentType: "application/json",
|
|
162
162
|
requestType: "json",
|
|
163
163
|
body: serializers.agents.CreateArchivalMemory.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -224,7 +224,7 @@ class Passages {
|
|
|
224
224
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
225
225
|
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)}`),
|
|
226
226
|
method: "DELETE",
|
|
227
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
227
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
|
|
228
228
|
contentType: "application/json",
|
|
229
229
|
requestType: "json",
|
|
230
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|