@letta-ai/letta-client 0.1.165 → 0.1.167

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.
Files changed (184) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +3 -3
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  10. package/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -0
  11. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  15. package/api/resources/batches/client/Client.js +4 -4
  16. package/api/resources/blocks/client/Client.js +6 -6
  17. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  18. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  19. package/api/resources/embeddingModels/client/Client.js +1 -1
  20. package/api/resources/folders/client/Client.js +9 -9
  21. package/api/resources/folders/resources/files/client/Client.js +3 -3
  22. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  23. package/api/resources/groups/client/Client.js +6 -6
  24. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  25. package/api/resources/health/client/Client.js +1 -1
  26. package/api/resources/identities/client/Client.js +7 -7
  27. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  28. package/api/resources/jobs/client/Client.js +5 -5
  29. package/api/resources/messages/client/Client.js +1 -1
  30. package/api/resources/models/client/Client.js +1 -1
  31. package/api/resources/projects/client/Client.js +1 -1
  32. package/api/resources/providers/client/Client.js +5 -5
  33. package/api/resources/runs/client/Client.js +4 -4
  34. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  35. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  36. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  37. package/api/resources/sources/client/Client.js +10 -10
  38. package/api/resources/sources/resources/files/client/Client.js +3 -3
  39. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  40. package/api/resources/steps/client/Client.js +2 -2
  41. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  42. package/api/resources/tags/client/Client.js +1 -1
  43. package/api/resources/telemetry/client/Client.js +1 -1
  44. package/api/resources/templates/client/Client.js +1 -1
  45. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  46. package/api/resources/tools/client/Client.d.ts +2 -27
  47. package/api/resources/tools/client/Client.js +34 -106
  48. package/api/resources/tools/client/requests/index.d.ts +0 -1
  49. package/api/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +12 -0
  50. package/api/resources/tools/types/ConnectMcpServerResponseEvent.js +14 -0
  51. package/api/resources/tools/types/StreamingResponse.d.ts +9 -0
  52. package/api/resources/tools/types/index.d.ts +2 -0
  53. package/api/resources/tools/types/index.js +2 -0
  54. package/api/resources/voice/client/Client.js +1 -1
  55. package/api/types/FileMetadata.d.ts +0 -2
  56. package/api/types/LettaBatchRequest.d.ts +2 -0
  57. package/api/types/LettaRequest.d.ts +2 -0
  58. package/api/types/LettaStreamingRequest.d.ts +2 -0
  59. package/api/types/LlmConfig.d.ts +2 -0
  60. package/api/types/LlmConfigCompatibilityType.d.ts +8 -0
  61. package/api/types/LlmConfigCompatibilityType.js +10 -0
  62. package/api/types/index.d.ts +1 -0
  63. package/api/types/index.js +1 -0
  64. package/core/index.d.ts +1 -1
  65. package/core/index.js +1 -1
  66. package/dist/api/resources/agents/client/Client.js +10 -10
  67. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  68. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  71. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  72. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  75. package/dist/api/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +2 -0
  76. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  77. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  78. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  79. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  80. package/dist/api/resources/batches/client/Client.js +4 -4
  81. package/dist/api/resources/blocks/client/Client.js +6 -6
  82. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  83. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  84. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  85. package/dist/api/resources/folders/client/Client.js +9 -9
  86. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  87. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  88. package/dist/api/resources/groups/client/Client.js +6 -6
  89. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  90. package/dist/api/resources/health/client/Client.js +1 -1
  91. package/dist/api/resources/identities/client/Client.js +7 -7
  92. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  93. package/dist/api/resources/jobs/client/Client.js +5 -5
  94. package/dist/api/resources/messages/client/Client.js +1 -1
  95. package/dist/api/resources/models/client/Client.js +1 -1
  96. package/dist/api/resources/projects/client/Client.js +1 -1
  97. package/dist/api/resources/providers/client/Client.js +5 -5
  98. package/dist/api/resources/runs/client/Client.js +4 -4
  99. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  100. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  101. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  102. package/dist/api/resources/sources/client/Client.js +10 -10
  103. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  104. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  105. package/dist/api/resources/steps/client/Client.js +2 -2
  106. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  107. package/dist/api/resources/tags/client/Client.js +1 -1
  108. package/dist/api/resources/telemetry/client/Client.js +1 -1
  109. package/dist/api/resources/templates/client/Client.js +1 -1
  110. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  111. package/dist/api/resources/tools/client/Client.d.ts +2 -27
  112. package/dist/api/resources/tools/client/Client.js +34 -106
  113. package/dist/api/resources/tools/client/requests/index.d.ts +0 -1
  114. package/dist/api/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +12 -0
  115. package/dist/api/resources/tools/types/ConnectMcpServerResponseEvent.js +14 -0
  116. package/dist/api/resources/tools/types/StreamingResponse.d.ts +9 -0
  117. package/dist/api/resources/tools/types/index.d.ts +2 -0
  118. package/dist/api/resources/tools/types/index.js +2 -0
  119. package/dist/api/resources/voice/client/Client.js +1 -1
  120. package/dist/api/types/FileMetadata.d.ts +0 -2
  121. package/dist/api/types/LettaBatchRequest.d.ts +2 -0
  122. package/dist/api/types/LettaRequest.d.ts +2 -0
  123. package/dist/api/types/LettaStreamingRequest.d.ts +2 -0
  124. package/dist/api/types/LlmConfig.d.ts +2 -0
  125. package/dist/api/types/LlmConfigCompatibilityType.d.ts +8 -0
  126. package/dist/api/types/LlmConfigCompatibilityType.js +10 -0
  127. package/dist/api/types/index.d.ts +1 -0
  128. package/dist/api/types/index.js +1 -0
  129. package/dist/core/index.d.ts +1 -1
  130. package/dist/core/index.js +1 -1
  131. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -0
  132. package/dist/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +1 -0
  133. package/dist/serialization/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +10 -0
  134. package/dist/serialization/resources/tools/types/ConnectMcpServerResponseEvent.js +48 -0
  135. package/dist/serialization/resources/tools/types/StreamingResponse.d.ts +16 -0
  136. package/dist/serialization/resources/tools/types/StreamingResponse.js +47 -0
  137. package/dist/serialization/resources/tools/types/index.d.ts +2 -0
  138. package/dist/serialization/resources/tools/types/index.js +2 -0
  139. package/dist/serialization/types/FileMetadata.d.ts +0 -1
  140. package/dist/serialization/types/FileMetadata.js +0 -1
  141. package/dist/serialization/types/LettaBatchRequest.d.ts +1 -0
  142. package/dist/serialization/types/LettaBatchRequest.js +1 -0
  143. package/dist/serialization/types/LettaRequest.d.ts +1 -0
  144. package/dist/serialization/types/LettaRequest.js +1 -0
  145. package/dist/serialization/types/LettaStreamingRequest.d.ts +1 -0
  146. package/dist/serialization/types/LettaStreamingRequest.js +1 -0
  147. package/dist/serialization/types/LlmConfig.d.ts +2 -0
  148. package/dist/serialization/types/LlmConfig.js +2 -0
  149. package/dist/serialization/types/LlmConfigCompatibilityType.d.ts +10 -0
  150. package/dist/serialization/types/LlmConfigCompatibilityType.js +41 -0
  151. package/dist/serialization/types/index.d.ts +1 -0
  152. package/dist/serialization/types/index.js +1 -0
  153. package/dist/version.d.ts +1 -1
  154. package/dist/version.js +1 -1
  155. package/package.json +1 -1
  156. package/reference.md +6 -74
  157. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.d.ts +1 -0
  158. package/serialization/resources/agents/resources/messages/client/requests/LettaAsyncRequest.js +1 -0
  159. package/serialization/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +10 -0
  160. package/serialization/resources/tools/types/ConnectMcpServerResponseEvent.js +48 -0
  161. package/serialization/resources/tools/types/StreamingResponse.d.ts +16 -0
  162. package/serialization/resources/tools/types/StreamingResponse.js +47 -0
  163. package/serialization/resources/tools/types/index.d.ts +2 -0
  164. package/serialization/resources/tools/types/index.js +2 -0
  165. package/serialization/types/FileMetadata.d.ts +0 -1
  166. package/serialization/types/FileMetadata.js +0 -1
  167. package/serialization/types/LettaBatchRequest.d.ts +1 -0
  168. package/serialization/types/LettaBatchRequest.js +1 -0
  169. package/serialization/types/LettaRequest.d.ts +1 -0
  170. package/serialization/types/LettaRequest.js +1 -0
  171. package/serialization/types/LettaStreamingRequest.d.ts +1 -0
  172. package/serialization/types/LettaStreamingRequest.js +1 -0
  173. package/serialization/types/LlmConfig.d.ts +2 -0
  174. package/serialization/types/LlmConfig.js +2 -0
  175. package/serialization/types/LlmConfigCompatibilityType.d.ts +10 -0
  176. package/serialization/types/LlmConfigCompatibilityType.js +41 -0
  177. package/serialization/types/index.d.ts +1 -0
  178. package/serialization/types/index.js +1 -0
  179. package/version.d.ts +1 -1
  180. package/version.js +1 -1
  181. package/api/resources/tools/client/requests/McpOauthCallbackRequest.d.ts +0 -25
  182. package/dist/api/resources/tools/client/requests/McpOauthCallbackRequest.d.ts +0 -25
  183. /package/api/resources/tools/{client/requests/McpOauthCallbackRequest.js → types/StreamingResponse.js} +0 -0
  184. /package/dist/api/resources/tools/{client/requests/McpOauthCallbackRequest.js → types/StreamingResponse.js} +0 -0
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.StreamingResponse = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const ConnectMcpServerResponseEvent_1 = require("./ConnectMcpServerResponseEvent");
42
+ const McpTool_1 = require("../../../types/McpTool");
43
+ exports.StreamingResponse = core.serialization.object({
44
+ event: ConnectMcpServerResponseEvent_1.ConnectMcpServerResponseEvent,
45
+ message: core.serialization.string().optional(),
46
+ tools: McpTool_1.McpTool.optional(),
47
+ });
@@ -6,3 +6,5 @@ export * from "./UpdateMcpServerRequest";
6
6
  export * from "./UpdateMcpServerResponse";
7
7
  export * from "./TestMcpServerRequest";
8
8
  export * from "./ConnectMcpServerRequest";
9
+ export * from "./ConnectMcpServerResponseEvent";
10
+ export * from "./StreamingResponse";
@@ -22,3 +22,5 @@ __exportStar(require("./UpdateMcpServerRequest"), exports);
22
22
  __exportStar(require("./UpdateMcpServerResponse"), exports);
23
23
  __exportStar(require("./TestMcpServerRequest"), exports);
24
24
  __exportStar(require("./ConnectMcpServerRequest"), exports);
25
+ __exportStar(require("./ConnectMcpServerResponseEvent"), exports);
26
+ __exportStar(require("./StreamingResponse"), exports);
@@ -24,6 +24,5 @@ export declare namespace FileMetadata {
24
24
  id?: string | null;
25
25
  created_at?: string | null;
26
26
  updated_at?: string | null;
27
- is_deleted?: boolean | null;
28
27
  }
29
28
  }
@@ -56,5 +56,4 @@ exports.FileMetadata = core.serialization.object({
56
56
  id: core.serialization.string().optional(),
57
57
  createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
58
58
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
59
- isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
60
59
  });
@@ -15,6 +15,7 @@ export declare namespace LettaBatchRequest {
15
15
  assistant_message_tool_name?: string | null;
16
16
  assistant_message_tool_kwarg?: string | null;
17
17
  include_return_message_types?: MessageType.Raw[] | null;
18
+ enable_thinking?: string | null;
18
19
  agent_id: string;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.LettaBatchRequest = core.serialization.object({
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
48
48
  assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
49
49
  includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
50
+ enableThinking: core.serialization.property("enable_thinking", core.serialization.string().optional()),
50
51
  agentId: core.serialization.property("agent_id", core.serialization.string()),
51
52
  });
@@ -15,5 +15,6 @@ export declare namespace LettaRequest {
15
15
  assistant_message_tool_name?: string | null;
16
16
  assistant_message_tool_kwarg?: string | null;
17
17
  include_return_message_types?: MessageType.Raw[] | null;
18
+ enable_thinking?: string | null;
18
19
  }
19
20
  }
@@ -47,4 +47,5 @@ exports.LettaRequest = core.serialization.object({
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
48
48
  assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
49
49
  includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
50
+ enableThinking: core.serialization.property("enable_thinking", core.serialization.string().optional()),
50
51
  });
@@ -15,6 +15,7 @@ export declare namespace LettaStreamingRequest {
15
15
  assistant_message_tool_name?: string | null;
16
16
  assistant_message_tool_kwarg?: string | null;
17
17
  include_return_message_types?: MessageType.Raw[] | null;
18
+ enable_thinking?: string | null;
18
19
  stream_tokens?: boolean | null;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.LettaStreamingRequest = core.serialization.object({
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
48
48
  assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
49
49
  includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
50
+ enableThinking: core.serialization.property("enable_thinking", core.serialization.string().optional()),
50
51
  streamTokens: core.serialization.property("stream_tokens", core.serialization.boolean().optional()),
51
52
  });
@@ -7,6 +7,7 @@ import * as core from "../../core";
7
7
  import { LlmConfigModelEndpointType } from "./LlmConfigModelEndpointType";
8
8
  import { ProviderCategory } from "./ProviderCategory";
9
9
  import { LlmConfigReasoningEffort } from "./LlmConfigReasoningEffort";
10
+ import { LlmConfigCompatibilityType } from "./LlmConfigCompatibilityType";
10
11
  export declare const LlmConfig: core.serialization.ObjectSchema<serializers.LlmConfig.Raw, Letta.LlmConfig>;
11
12
  export declare namespace LlmConfig {
12
13
  interface Raw {
@@ -25,5 +26,6 @@ export declare namespace LlmConfig {
25
26
  reasoning_effort?: LlmConfigReasoningEffort.Raw | null;
26
27
  max_reasoning_tokens?: number | null;
27
28
  frequency_penalty?: number | null;
29
+ compatibility_type?: LlmConfigCompatibilityType.Raw | null;
28
30
  }
29
31
  }
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  const LlmConfigModelEndpointType_1 = require("./LlmConfigModelEndpointType");
42
42
  const ProviderCategory_1 = require("./ProviderCategory");
43
43
  const LlmConfigReasoningEffort_1 = require("./LlmConfigReasoningEffort");
44
+ const LlmConfigCompatibilityType_1 = require("./LlmConfigCompatibilityType");
44
45
  exports.LlmConfig = core.serialization.object({
45
46
  model: core.serialization.string(),
46
47
  modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
@@ -57,4 +58,5 @@ exports.LlmConfig = core.serialization.object({
57
58
  reasoningEffort: core.serialization.property("reasoning_effort", LlmConfigReasoningEffort_1.LlmConfigReasoningEffort.optional()),
58
59
  maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
59
60
  frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()),
61
+ compatibilityType: core.serialization.property("compatibility_type", LlmConfigCompatibilityType_1.LlmConfigCompatibilityType.optional()),
60
62
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const LlmConfigCompatibilityType: core.serialization.Schema<serializers.LlmConfigCompatibilityType.Raw, Letta.LlmConfigCompatibilityType>;
8
+ export declare namespace LlmConfigCompatibilityType {
9
+ type Raw = "gguf" | "mlx";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LlmConfigCompatibilityType = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.LlmConfigCompatibilityType = core.serialization.enum_(["gguf", "mlx"]);
@@ -131,6 +131,7 @@ export * from "./JsonObjectResponseFormat";
131
131
  export * from "./JsonSchemaResponseFormat";
132
132
  export * from "./LlmConfigModelEndpointType";
133
133
  export * from "./LlmConfigReasoningEffort";
134
+ export * from "./LlmConfigCompatibilityType";
134
135
  export * from "./LlmConfig";
135
136
  export * from "./LettaBatchMessages";
136
137
  export * from "./LettaBatchRequest";
@@ -147,6 +147,7 @@ __exportStar(require("./JsonObjectResponseFormat"), exports);
147
147
  __exportStar(require("./JsonSchemaResponseFormat"), exports);
148
148
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
149
149
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
150
+ __exportStar(require("./LlmConfigCompatibilityType"), exports);
150
151
  __exportStar(require("./LlmConfig"), exports);
151
152
  __exportStar(require("./LettaBatchMessages"), exports);
152
153
  __exportStar(require("./LettaBatchRequest"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.165";
1
+ export declare const SDK_VERSION = "0.1.167";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.165";
4
+ exports.SDK_VERSION = "0.1.167";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.165",
3
+ "version": "0.1.167",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1178,7 +1178,7 @@ await client.tools.updateMcpServer("mcp_server_name", {});
1178
1178
  <dd>
1179
1179
 
1180
1180
  Test connection to an MCP server without adding it.
1181
- Returns the list of available tools if successful, or OAuth information if OAuth is required.
1181
+ Returns the list of available tools if successful.
1182
1182
 
1183
1183
  </dd>
1184
1184
  </dl>
@@ -1233,7 +1233,7 @@ await client.tools.testMcpServer({
1233
1233
  </dl>
1234
1234
  </details>
1235
1235
 
1236
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">connectMcpServer</a>({ ...params }) -> unknown</code></summary>
1236
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">connectMcpServer</a>({ ...params }) -> core.Stream<Letta.StreamingResponse></code></summary>
1237
1237
  <dl>
1238
1238
  <dd>
1239
1239
 
@@ -1262,11 +1262,14 @@ Returns a stream of events handling authorization state and exchange if OAuth is
1262
1262
  <dd>
1263
1263
 
1264
1264
  ```typescript
1265
- await client.tools.connectMcpServer({
1265
+ const response = await client.tools.connectMcpServer({
1266
1266
  serverName: "server_name",
1267
1267
  command: "command",
1268
1268
  args: ["args"],
1269
1269
  });
1270
+ for await (const item of response) {
1271
+ console.log(item);
1272
+ }
1270
1273
  ```
1271
1274
 
1272
1275
  </dd>
@@ -1301,77 +1304,6 @@ await client.tools.connectMcpServer({
1301
1304
  </dl>
1302
1305
  </details>
1303
1306
 
1304
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">mcpOauthCallback</a>(sessionId, { ...params }) -> void</code></summary>
1305
- <dl>
1306
- <dd>
1307
-
1308
- #### 📝 Description
1309
-
1310
- <dl>
1311
- <dd>
1312
-
1313
- <dl>
1314
- <dd>
1315
-
1316
- Handle OAuth callback for MCP server authentication.
1317
-
1318
- </dd>
1319
- </dl>
1320
- </dd>
1321
- </dl>
1322
-
1323
- #### 🔌 Usage
1324
-
1325
- <dl>
1326
- <dd>
1327
-
1328
- <dl>
1329
- <dd>
1330
-
1331
- ```typescript
1332
- await client.tools.mcpOauthCallback("session_id");
1333
- ```
1334
-
1335
- </dd>
1336
- </dl>
1337
- </dd>
1338
- </dl>
1339
-
1340
- #### ⚙️ Parameters
1341
-
1342
- <dl>
1343
- <dd>
1344
-
1345
- <dl>
1346
- <dd>
1347
-
1348
- **sessionId:** `string`
1349
-
1350
- </dd>
1351
- </dl>
1352
-
1353
- <dl>
1354
- <dd>
1355
-
1356
- **request:** `Letta.McpOauthCallbackRequest`
1357
-
1358
- </dd>
1359
- </dl>
1360
-
1361
- <dl>
1362
- <dd>
1363
-
1364
- **requestOptions:** `Tools.RequestOptions`
1365
-
1366
- </dd>
1367
- </dl>
1368
- </dd>
1369
- </dl>
1370
-
1371
- </dd>
1372
- </dl>
1373
- </details>
1374
-
1375
1307
  ## Sources
1376
1308
 
1377
1309
  <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">count</a>() -> number</code></summary>
@@ -15,6 +15,7 @@ export declare namespace LettaAsyncRequest {
15
15
  assistant_message_tool_name?: string | null;
16
16
  assistant_message_tool_kwarg?: string | null;
17
17
  include_return_message_types?: MessageType.Raw[] | null;
18
+ enable_thinking?: string | null;
18
19
  callback_url?: string | null;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.LettaAsyncRequest = core.serialization.object({
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
48
48
  assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
49
49
  includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
50
+ enableThinking: core.serialization.property("enable_thinking", core.serialization.string().optional()),
50
51
  callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
51
52
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ConnectMcpServerResponseEvent: core.serialization.Schema<serializers.ConnectMcpServerResponseEvent.Raw, Letta.ConnectMcpServerResponseEvent>;
8
+ export declare namespace ConnectMcpServerResponseEvent {
9
+ type Raw = "connection_attempt" | "success" | "error" | "oauth_required" | "authorization_url" | "waiting_for_auth";
10
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ConnectMcpServerResponseEvent = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.ConnectMcpServerResponseEvent = core.serialization.enum_([
42
+ "connection_attempt",
43
+ "success",
44
+ "error",
45
+ "oauth_required",
46
+ "authorization_url",
47
+ "waiting_for_auth",
48
+ ]);
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { ConnectMcpServerResponseEvent } from "./ConnectMcpServerResponseEvent";
8
+ import { McpTool } from "../../../types/McpTool";
9
+ export declare const StreamingResponse: core.serialization.ObjectSchema<serializers.StreamingResponse.Raw, Letta.StreamingResponse>;
10
+ export declare namespace StreamingResponse {
11
+ interface Raw {
12
+ event: ConnectMcpServerResponseEvent.Raw;
13
+ message?: string | null;
14
+ tools?: McpTool.Raw | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.StreamingResponse = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const ConnectMcpServerResponseEvent_1 = require("./ConnectMcpServerResponseEvent");
42
+ const McpTool_1 = require("../../../types/McpTool");
43
+ exports.StreamingResponse = core.serialization.object({
44
+ event: ConnectMcpServerResponseEvent_1.ConnectMcpServerResponseEvent,
45
+ message: core.serialization.string().optional(),
46
+ tools: McpTool_1.McpTool.optional(),
47
+ });
@@ -6,3 +6,5 @@ export * from "./UpdateMcpServerRequest";
6
6
  export * from "./UpdateMcpServerResponse";
7
7
  export * from "./TestMcpServerRequest";
8
8
  export * from "./ConnectMcpServerRequest";
9
+ export * from "./ConnectMcpServerResponseEvent";
10
+ export * from "./StreamingResponse";
@@ -22,3 +22,5 @@ __exportStar(require("./UpdateMcpServerRequest"), exports);
22
22
  __exportStar(require("./UpdateMcpServerResponse"), exports);
23
23
  __exportStar(require("./TestMcpServerRequest"), exports);
24
24
  __exportStar(require("./ConnectMcpServerRequest"), exports);
25
+ __exportStar(require("./ConnectMcpServerResponseEvent"), exports);
26
+ __exportStar(require("./StreamingResponse"), exports);
@@ -24,6 +24,5 @@ export declare namespace FileMetadata {
24
24
  id?: string | null;
25
25
  created_at?: string | null;
26
26
  updated_at?: string | null;
27
- is_deleted?: boolean | null;
28
27
  }
29
28
  }
@@ -56,5 +56,4 @@ exports.FileMetadata = core.serialization.object({
56
56
  id: core.serialization.string().optional(),
57
57
  createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
58
58
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
59
- isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
60
59
  });
@@ -15,6 +15,7 @@ export declare namespace LettaBatchRequest {
15
15
  assistant_message_tool_name?: string | null;
16
16
  assistant_message_tool_kwarg?: string | null;
17
17
  include_return_message_types?: MessageType.Raw[] | null;
18
+ enable_thinking?: string | null;
18
19
  agent_id: string;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.LettaBatchRequest = core.serialization.object({
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
48
48
  assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
49
49
  includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
50
+ enableThinking: core.serialization.property("enable_thinking", core.serialization.string().optional()),
50
51
  agentId: core.serialization.property("agent_id", core.serialization.string()),
51
52
  });
@@ -15,5 +15,6 @@ export declare namespace LettaRequest {
15
15
  assistant_message_tool_name?: string | null;
16
16
  assistant_message_tool_kwarg?: string | null;
17
17
  include_return_message_types?: MessageType.Raw[] | null;
18
+ enable_thinking?: string | null;
18
19
  }
19
20
  }
@@ -47,4 +47,5 @@ exports.LettaRequest = core.serialization.object({
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
48
48
  assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
49
49
  includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
50
+ enableThinking: core.serialization.property("enable_thinking", core.serialization.string().optional()),
50
51
  });
@@ -15,6 +15,7 @@ export declare namespace LettaStreamingRequest {
15
15
  assistant_message_tool_name?: string | null;
16
16
  assistant_message_tool_kwarg?: string | null;
17
17
  include_return_message_types?: MessageType.Raw[] | null;
18
+ enable_thinking?: string | null;
18
19
  stream_tokens?: boolean | null;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.LettaStreamingRequest = core.serialization.object({
47
47
  assistantMessageToolName: core.serialization.property("assistant_message_tool_name", core.serialization.string().optional()),
48
48
  assistantMessageToolKwarg: core.serialization.property("assistant_message_tool_kwarg", core.serialization.string().optional()),
49
49
  includeReturnMessageTypes: core.serialization.property("include_return_message_types", core.serialization.list(MessageType_1.MessageType).optional()),
50
+ enableThinking: core.serialization.property("enable_thinking", core.serialization.string().optional()),
50
51
  streamTokens: core.serialization.property("stream_tokens", core.serialization.boolean().optional()),
51
52
  });
@@ -7,6 +7,7 @@ import * as core from "../../core";
7
7
  import { LlmConfigModelEndpointType } from "./LlmConfigModelEndpointType";
8
8
  import { ProviderCategory } from "./ProviderCategory";
9
9
  import { LlmConfigReasoningEffort } from "./LlmConfigReasoningEffort";
10
+ import { LlmConfigCompatibilityType } from "./LlmConfigCompatibilityType";
10
11
  export declare const LlmConfig: core.serialization.ObjectSchema<serializers.LlmConfig.Raw, Letta.LlmConfig>;
11
12
  export declare namespace LlmConfig {
12
13
  interface Raw {
@@ -25,5 +26,6 @@ export declare namespace LlmConfig {
25
26
  reasoning_effort?: LlmConfigReasoningEffort.Raw | null;
26
27
  max_reasoning_tokens?: number | null;
27
28
  frequency_penalty?: number | null;
29
+ compatibility_type?: LlmConfigCompatibilityType.Raw | null;
28
30
  }
29
31
  }
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  const LlmConfigModelEndpointType_1 = require("./LlmConfigModelEndpointType");
42
42
  const ProviderCategory_1 = require("./ProviderCategory");
43
43
  const LlmConfigReasoningEffort_1 = require("./LlmConfigReasoningEffort");
44
+ const LlmConfigCompatibilityType_1 = require("./LlmConfigCompatibilityType");
44
45
  exports.LlmConfig = core.serialization.object({
45
46
  model: core.serialization.string(),
46
47
  modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
@@ -57,4 +58,5 @@ exports.LlmConfig = core.serialization.object({
57
58
  reasoningEffort: core.serialization.property("reasoning_effort", LlmConfigReasoningEffort_1.LlmConfigReasoningEffort.optional()),
58
59
  maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
59
60
  frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()),
61
+ compatibilityType: core.serialization.property("compatibility_type", LlmConfigCompatibilityType_1.LlmConfigCompatibilityType.optional()),
60
62
  });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const LlmConfigCompatibilityType: core.serialization.Schema<serializers.LlmConfigCompatibilityType.Raw, Letta.LlmConfigCompatibilityType>;
8
+ export declare namespace LlmConfigCompatibilityType {
9
+ type Raw = "gguf" | "mlx";
10
+ }