@letta-ai/letta-client 0.1.136 → 0.1.138

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 (208) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  2. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  3. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  7. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  8. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  9. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  10. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  11. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  12. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  13. package/api/resources/batches/client/Client.js +4 -4
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  16. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  17. package/api/resources/embeddingModels/client/Client.js +1 -1
  18. package/api/resources/groups/client/Client.js +6 -6
  19. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  20. package/api/resources/health/client/Client.js +1 -1
  21. package/api/resources/identities/client/Client.js +7 -7
  22. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  23. package/api/resources/index.d.ts +2 -1
  24. package/api/resources/index.js +3 -2
  25. package/api/resources/jobs/client/Client.js +4 -4
  26. package/api/resources/messages/client/Client.js +1 -1
  27. package/api/resources/models/client/Client.js +1 -1
  28. package/api/resources/projects/client/Client.js +1 -1
  29. package/api/resources/providers/client/Client.js +5 -5
  30. package/api/resources/runs/client/Client.js +4 -4
  31. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  32. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  33. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  34. package/api/resources/sources/client/Client.js +8 -8
  35. package/api/resources/sources/resources/files/client/Client.d.ts +1 -1
  36. package/api/resources/sources/resources/files/client/Client.js +4 -4
  37. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  38. package/api/resources/steps/client/Client.d.ts +16 -0
  39. package/api/resources/steps/client/Client.js +91 -3
  40. package/api/resources/steps/client/requests/AddFeedbackRequest.d.ts +11 -0
  41. package/api/resources/steps/client/requests/AddFeedbackRequest.js +5 -0
  42. package/api/resources/steps/client/requests/StepsListRequest.d.ts +9 -0
  43. package/api/resources/steps/client/requests/index.d.ts +1 -0
  44. package/api/resources/steps/index.d.ts +2 -0
  45. package/api/resources/steps/index.js +2 -0
  46. package/api/resources/steps/resources/feedback/client/Client.d.ts +39 -0
  47. package/api/resources/steps/resources/feedback/client/Client.js +111 -0
  48. package/api/resources/steps/resources/feedback/client/index.d.ts +1 -0
  49. package/api/resources/steps/resources/feedback/client/index.js +2 -0
  50. package/api/resources/steps/resources/feedback/index.d.ts +1 -0
  51. package/api/resources/steps/resources/feedback/index.js +17 -0
  52. package/api/resources/steps/resources/index.d.ts +1 -0
  53. package/api/resources/steps/resources/index.js +37 -0
  54. package/api/resources/steps/types/AddFeedbackRequestFeedback.d.ts +8 -0
  55. package/api/resources/steps/types/AddFeedbackRequestFeedback.js +10 -0
  56. package/api/resources/steps/types/StepsListRequestFeedback.d.ts +8 -0
  57. package/api/resources/steps/types/StepsListRequestFeedback.js +10 -0
  58. package/api/resources/steps/types/index.d.ts +2 -0
  59. package/api/resources/steps/types/index.js +18 -0
  60. package/api/resources/tags/client/Client.js +1 -1
  61. package/api/resources/telemetry/client/Client.js +1 -1
  62. package/api/resources/templates/client/Client.js +1 -1
  63. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  64. package/api/resources/tools/client/Client.d.ts +17 -0
  65. package/api/resources/tools/client/Client.js +89 -18
  66. package/api/resources/tools/types/TestMcpServerRequest.d.ts +5 -0
  67. package/api/resources/tools/types/TestMcpServerRequest.js +5 -0
  68. package/api/resources/tools/types/index.d.ts +1 -0
  69. package/api/resources/tools/types/index.js +1 -0
  70. package/api/resources/voice/client/Client.js +1 -1
  71. package/api/types/Step.d.ts +2 -0
  72. package/api/types/StepFeedback.d.ts +8 -0
  73. package/api/types/StepFeedback.js +10 -0
  74. package/api/types/index.d.ts +1 -0
  75. package/api/types/index.js +1 -0
  76. package/dist/api/resources/agents/client/Client.js +10 -10
  77. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  78. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  79. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  80. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  81. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  82. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  83. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  84. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  85. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  86. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  87. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  88. package/dist/api/resources/batches/client/Client.js +4 -4
  89. package/dist/api/resources/blocks/client/Client.js +6 -6
  90. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  91. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  92. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  93. package/dist/api/resources/groups/client/Client.js +6 -6
  94. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  95. package/dist/api/resources/health/client/Client.js +1 -1
  96. package/dist/api/resources/identities/client/Client.js +7 -7
  97. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  98. package/dist/api/resources/index.d.ts +2 -1
  99. package/dist/api/resources/index.js +3 -2
  100. package/dist/api/resources/jobs/client/Client.js +4 -4
  101. package/dist/api/resources/messages/client/Client.js +1 -1
  102. package/dist/api/resources/models/client/Client.js +1 -1
  103. package/dist/api/resources/projects/client/Client.js +1 -1
  104. package/dist/api/resources/providers/client/Client.js +5 -5
  105. package/dist/api/resources/runs/client/Client.js +4 -4
  106. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  107. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  108. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  109. package/dist/api/resources/sources/client/Client.js +8 -8
  110. package/dist/api/resources/sources/resources/files/client/Client.d.ts +1 -1
  111. package/dist/api/resources/sources/resources/files/client/Client.js +4 -4
  112. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  113. package/dist/api/resources/steps/client/Client.d.ts +16 -0
  114. package/dist/api/resources/steps/client/Client.js +91 -3
  115. package/dist/api/resources/steps/client/requests/AddFeedbackRequest.d.ts +11 -0
  116. package/dist/api/resources/steps/client/requests/AddFeedbackRequest.js +5 -0
  117. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +9 -0
  118. package/dist/api/resources/steps/client/requests/index.d.ts +1 -0
  119. package/dist/api/resources/steps/index.d.ts +2 -0
  120. package/dist/api/resources/steps/index.js +2 -0
  121. package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +39 -0
  122. package/dist/api/resources/steps/resources/feedback/client/Client.js +111 -0
  123. package/dist/api/resources/steps/resources/feedback/client/index.d.ts +1 -0
  124. package/dist/api/resources/steps/resources/feedback/client/index.js +2 -0
  125. package/dist/api/resources/steps/resources/feedback/index.d.ts +1 -0
  126. package/dist/api/resources/steps/resources/feedback/index.js +17 -0
  127. package/dist/api/resources/steps/resources/index.d.ts +1 -0
  128. package/dist/api/resources/steps/resources/index.js +37 -0
  129. package/dist/api/resources/steps/types/AddFeedbackRequestFeedback.d.ts +8 -0
  130. package/dist/api/resources/steps/types/AddFeedbackRequestFeedback.js +10 -0
  131. package/dist/api/resources/steps/types/StepsListRequestFeedback.d.ts +8 -0
  132. package/dist/api/resources/steps/types/StepsListRequestFeedback.js +10 -0
  133. package/dist/api/resources/steps/types/index.d.ts +2 -0
  134. package/dist/api/resources/steps/types/index.js +18 -0
  135. package/dist/api/resources/tags/client/Client.js +1 -1
  136. package/dist/api/resources/telemetry/client/Client.js +1 -1
  137. package/dist/api/resources/templates/client/Client.js +1 -1
  138. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  139. package/dist/api/resources/tools/client/Client.d.ts +17 -0
  140. package/dist/api/resources/tools/client/Client.js +89 -18
  141. package/dist/api/resources/tools/types/TestMcpServerRequest.d.ts +5 -0
  142. package/dist/api/resources/tools/types/TestMcpServerRequest.js +5 -0
  143. package/dist/api/resources/tools/types/index.d.ts +1 -0
  144. package/dist/api/resources/tools/types/index.js +1 -0
  145. package/dist/api/resources/voice/client/Client.js +1 -1
  146. package/dist/api/types/Step.d.ts +2 -0
  147. package/dist/api/types/StepFeedback.d.ts +8 -0
  148. package/dist/api/types/StepFeedback.js +10 -0
  149. package/dist/api/types/index.d.ts +1 -0
  150. package/dist/api/types/index.js +1 -0
  151. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  152. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  153. package/dist/serialization/resources/index.d.ts +2 -1
  154. package/dist/serialization/resources/index.js +3 -2
  155. package/dist/serialization/resources/steps/index.d.ts +1 -0
  156. package/dist/serialization/resources/steps/index.js +1 -0
  157. package/dist/serialization/resources/steps/types/AddFeedbackRequestFeedback.d.ts +10 -0
  158. package/dist/serialization/resources/steps/types/AddFeedbackRequestFeedback.js +41 -0
  159. package/dist/serialization/resources/steps/types/StepsListRequestFeedback.d.ts +10 -0
  160. package/dist/serialization/resources/steps/types/StepsListRequestFeedback.js +41 -0
  161. package/dist/serialization/resources/steps/types/index.d.ts +2 -0
  162. package/dist/serialization/resources/steps/types/index.js +18 -0
  163. package/dist/serialization/resources/tools/client/index.d.ts +1 -0
  164. package/dist/serialization/resources/tools/client/index.js +2 -1
  165. package/dist/serialization/resources/tools/client/testMcpServer.d.ts +11 -0
  166. package/dist/serialization/resources/tools/client/testMcpServer.js +42 -0
  167. package/dist/serialization/resources/tools/types/TestMcpServerRequest.d.ts +13 -0
  168. package/dist/serialization/resources/tools/types/TestMcpServerRequest.js +44 -0
  169. package/dist/serialization/resources/tools/types/index.d.ts +1 -0
  170. package/dist/serialization/resources/tools/types/index.js +1 -0
  171. package/dist/serialization/types/Step.d.ts +2 -0
  172. package/dist/serialization/types/Step.js +2 -0
  173. package/dist/serialization/types/StepFeedback.d.ts +10 -0
  174. package/dist/serialization/types/StepFeedback.js +41 -0
  175. package/dist/serialization/types/index.d.ts +1 -0
  176. package/dist/serialization/types/index.js +1 -0
  177. package/dist/version.d.ts +1 -1
  178. package/dist/version.js +1 -1
  179. package/package.json +1 -1
  180. package/reference.md +190 -1
  181. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -0
  182. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  183. package/serialization/resources/index.d.ts +2 -1
  184. package/serialization/resources/index.js +3 -2
  185. package/serialization/resources/steps/index.d.ts +1 -0
  186. package/serialization/resources/steps/index.js +1 -0
  187. package/serialization/resources/steps/types/AddFeedbackRequestFeedback.d.ts +10 -0
  188. package/serialization/resources/steps/types/AddFeedbackRequestFeedback.js +41 -0
  189. package/serialization/resources/steps/types/StepsListRequestFeedback.d.ts +10 -0
  190. package/serialization/resources/steps/types/StepsListRequestFeedback.js +41 -0
  191. package/serialization/resources/steps/types/index.d.ts +2 -0
  192. package/serialization/resources/steps/types/index.js +18 -0
  193. package/serialization/resources/tools/client/index.d.ts +1 -0
  194. package/serialization/resources/tools/client/index.js +2 -1
  195. package/serialization/resources/tools/client/testMcpServer.d.ts +11 -0
  196. package/serialization/resources/tools/client/testMcpServer.js +42 -0
  197. package/serialization/resources/tools/types/TestMcpServerRequest.d.ts +13 -0
  198. package/serialization/resources/tools/types/TestMcpServerRequest.js +44 -0
  199. package/serialization/resources/tools/types/index.d.ts +1 -0
  200. package/serialization/resources/tools/types/index.js +1 -0
  201. package/serialization/types/Step.d.ts +2 -0
  202. package/serialization/types/Step.js +2 -0
  203. package/serialization/types/StepFeedback.d.ts +10 -0
  204. package/serialization/types/StepFeedback.js +41 -0
  205. package/serialization/types/index.d.ts +1 -0
  206. package/serialization/types/index.js +1 -0
  207. package/version.d.ts +1 -1
  208. package/version.js +1 -1
@@ -0,0 +1,42 @@
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.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const McpTool_1 = require("../../../types/McpTool");
42
+ exports.Response = core.serialization.list(McpTool_1.McpTool);
@@ -0,0 +1,13 @@
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 { StdioServerConfig } from "../../../types/StdioServerConfig";
8
+ import { SseServerConfig } from "../../../types/SseServerConfig";
9
+ import { StreamableHttpServerConfig } from "../../../types/StreamableHttpServerConfig";
10
+ export declare const TestMcpServerRequest: core.serialization.Schema<serializers.TestMcpServerRequest.Raw, Letta.TestMcpServerRequest>;
11
+ export declare namespace TestMcpServerRequest {
12
+ type Raw = StdioServerConfig.Raw | SseServerConfig.Raw | StreamableHttpServerConfig.Raw;
13
+ }
@@ -0,0 +1,44 @@
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.TestMcpServerRequest = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const StdioServerConfig_1 = require("../../../types/StdioServerConfig");
42
+ const SseServerConfig_1 = require("../../../types/SseServerConfig");
43
+ const StreamableHttpServerConfig_1 = require("../../../types/StreamableHttpServerConfig");
44
+ exports.TestMcpServerRequest = core.serialization.undiscriminatedUnion([StdioServerConfig_1.StdioServerConfig, SseServerConfig_1.SseServerConfig, StreamableHttpServerConfig_1.StreamableHttpServerConfig]);
@@ -4,3 +4,4 @@ export * from "./AddMcpServerResponseItem";
4
4
  export * from "./DeleteMcpServerResponseItem";
5
5
  export * from "./UpdateMcpServerRequest";
6
6
  export * from "./UpdateMcpServerResponse";
7
+ export * from "./TestMcpServerRequest";
@@ -20,3 +20,4 @@ __exportStar(require("./AddMcpServerResponseItem"), exports);
20
20
  __exportStar(require("./DeleteMcpServerResponseItem"), exports);
21
21
  __exportStar(require("./UpdateMcpServerRequest"), exports);
22
22
  __exportStar(require("./UpdateMcpServerResponse"), exports);
23
+ __exportStar(require("./TestMcpServerRequest"), exports);
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Message } from "./Message";
8
+ import { StepFeedback } from "./StepFeedback";
8
9
  export declare const Step: core.serialization.ObjectSchema<serializers.Step.Raw, Letta.Step>;
9
10
  export declare namespace Step {
10
11
  interface Raw {
@@ -26,5 +27,6 @@ export declare namespace Step {
26
27
  tid?: string | null;
27
28
  trace_id?: string | null;
28
29
  messages?: Message.Raw[] | null;
30
+ feedback?: StepFeedback.Raw | null;
29
31
  }
30
32
  }
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Step = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const Message_1 = require("./Message");
42
+ const StepFeedback_1 = require("./StepFeedback");
42
43
  exports.Step = core.serialization.object({
43
44
  id: core.serialization.string(),
44
45
  origin: core.serialization.string().optional(),
@@ -58,4 +59,5 @@ exports.Step = core.serialization.object({
58
59
  tid: core.serialization.string().optional(),
59
60
  traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
60
61
  messages: core.serialization.list(Message_1.Message).optional(),
62
+ feedback: StepFeedback_1.StepFeedback.optional(),
61
63
  });
@@ -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 StepFeedback: core.serialization.Schema<serializers.StepFeedback.Raw, Letta.StepFeedback>;
8
+ export declare namespace StepFeedback {
9
+ type Raw = "positive" | "negative";
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.StepFeedback = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.StepFeedback = core.serialization.enum_(["positive", "negative"]);
@@ -187,6 +187,7 @@ export * from "./SleeptimeManager";
187
187
  export * from "./SleeptimeManagerUpdate";
188
188
  export * from "./Source";
189
189
  export * from "./StdioServerConfig";
190
+ export * from "./StepFeedback";
190
191
  export * from "./Step";
191
192
  export * from "./StopReasonType";
192
193
  export * from "./StreamableHttpServerConfig";
@@ -203,6 +203,7 @@ __exportStar(require("./SleeptimeManager"), exports);
203
203
  __exportStar(require("./SleeptimeManagerUpdate"), exports);
204
204
  __exportStar(require("./Source"), exports);
205
205
  __exportStar(require("./StdioServerConfig"), exports);
206
+ __exportStar(require("./StepFeedback"), exports);
206
207
  __exportStar(require("./Step"), exports);
207
208
  __exportStar(require("./StopReasonType"), exports);
208
209
  __exportStar(require("./StreamableHttpServerConfig"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.136";
1
+ export declare const SDK_VERSION = "0.1.138";
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.136";
4
+ exports.SDK_VERSION = "0.1.138";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.136",
3
+ "version": "0.1.138",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1165,6 +1165,74 @@ await client.tools.updateMcpServer("mcp_server_name", {});
1165
1165
  </dl>
1166
1166
  </details>
1167
1167
 
1168
+ <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">testMcpServer</a>({ ...params }) -> Letta.McpTool[]</code></summary>
1169
+ <dl>
1170
+ <dd>
1171
+
1172
+ #### 📝 Description
1173
+
1174
+ <dl>
1175
+ <dd>
1176
+
1177
+ <dl>
1178
+ <dd>
1179
+
1180
+ Test connection to an MCP server without adding it.
1181
+ Returns the list of available tools if successful.
1182
+
1183
+ </dd>
1184
+ </dl>
1185
+ </dd>
1186
+ </dl>
1187
+
1188
+ #### 🔌 Usage
1189
+
1190
+ <dl>
1191
+ <dd>
1192
+
1193
+ <dl>
1194
+ <dd>
1195
+
1196
+ ```typescript
1197
+ await client.tools.testMcpServer({
1198
+ serverName: "server_name",
1199
+ command: "command",
1200
+ args: ["args"],
1201
+ });
1202
+ ```
1203
+
1204
+ </dd>
1205
+ </dl>
1206
+ </dd>
1207
+ </dl>
1208
+
1209
+ #### ⚙️ Parameters
1210
+
1211
+ <dl>
1212
+ <dd>
1213
+
1214
+ <dl>
1215
+ <dd>
1216
+
1217
+ **request:** `Letta.TestMcpServerRequest`
1218
+
1219
+ </dd>
1220
+ </dl>
1221
+
1222
+ <dl>
1223
+ <dd>
1224
+
1225
+ **requestOptions:** `Tools.RequestOptions`
1226
+
1227
+ </dd>
1228
+ </dl>
1229
+ </dd>
1230
+ </dl>
1231
+
1232
+ </dd>
1233
+ </dl>
1234
+ </details>
1235
+
1168
1236
  ## Sources
1169
1237
 
1170
1238
  <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">count</a>() -> number</code></summary>
@@ -4538,6 +4606,77 @@ await client.steps.retrieve("step_id");
4538
4606
  </dl>
4539
4607
  </details>
4540
4608
 
4609
+ <details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">addFeedback</a>(stepId, { ...params }) -> Letta.Step</code></summary>
4610
+ <dl>
4611
+ <dd>
4612
+
4613
+ #### 📝 Description
4614
+
4615
+ <dl>
4616
+ <dd>
4617
+
4618
+ <dl>
4619
+ <dd>
4620
+
4621
+ Add feedback to a step.
4622
+
4623
+ </dd>
4624
+ </dl>
4625
+ </dd>
4626
+ </dl>
4627
+
4628
+ #### 🔌 Usage
4629
+
4630
+ <dl>
4631
+ <dd>
4632
+
4633
+ <dl>
4634
+ <dd>
4635
+
4636
+ ```typescript
4637
+ await client.steps.addFeedback("step_id");
4638
+ ```
4639
+
4640
+ </dd>
4641
+ </dl>
4642
+ </dd>
4643
+ </dl>
4644
+
4645
+ #### ⚙️ Parameters
4646
+
4647
+ <dl>
4648
+ <dd>
4649
+
4650
+ <dl>
4651
+ <dd>
4652
+
4653
+ **stepId:** `string`
4654
+
4655
+ </dd>
4656
+ </dl>
4657
+
4658
+ <dl>
4659
+ <dd>
4660
+
4661
+ **request:** `Letta.AddFeedbackRequest`
4662
+
4663
+ </dd>
4664
+ </dl>
4665
+
4666
+ <dl>
4667
+ <dd>
4668
+
4669
+ **requestOptions:** `Steps.RequestOptions`
4670
+
4671
+ </dd>
4672
+ </dl>
4673
+ </dd>
4674
+ </dl>
4675
+
4676
+ </dd>
4677
+ </dl>
4678
+ </details>
4679
+
4541
4680
  ## Tags
4542
4681
 
4543
4682
  <details><summary><code>client.tags.<a href="/src/api/resources/tags/client/Client.ts">list</a>({ ...params }) -> string[]</code></summary>
@@ -8136,7 +8275,7 @@ await client.runs.steps.list("run_id");
8136
8275
 
8137
8276
  ## Sources Files
8138
8277
 
8139
- <details><summary><code>client.sources.files.<a href="/src/api/resources/sources/resources/files/client/Client.ts">upload</a>(file, sourceId) -> Letta.Job</code></summary>
8278
+ <details><summary><code>client.sources.files.<a href="/src/api/resources/sources/resources/files/client/Client.ts">upload</a>(file, sourceId) -> Letta.FileMetadata</code></summary>
8140
8279
  <dl>
8141
8280
  <dd>
8142
8281
 
@@ -8422,6 +8561,56 @@ await client.sources.passages.list("source_id");
8422
8561
  </dl>
8423
8562
  </details>
8424
8563
 
8564
+ ## Steps Feedback
8565
+
8566
+ <details><summary><code>client.steps.feedback.<a href="/src/api/resources/steps/resources/feedback/client/Client.ts">add</a>(stepId) -> void</code></summary>
8567
+ <dl>
8568
+ <dd>
8569
+
8570
+ #### 🔌 Usage
8571
+
8572
+ <dl>
8573
+ <dd>
8574
+
8575
+ <dl>
8576
+ <dd>
8577
+
8578
+ ```typescript
8579
+ await client.steps.feedback.add("step_id");
8580
+ ```
8581
+
8582
+ </dd>
8583
+ </dl>
8584
+ </dd>
8585
+ </dl>
8586
+
8587
+ #### ⚙️ Parameters
8588
+
8589
+ <dl>
8590
+ <dd>
8591
+
8592
+ <dl>
8593
+ <dd>
8594
+
8595
+ **stepId:** `string`
8596
+
8597
+ </dd>
8598
+ </dl>
8599
+
8600
+ <dl>
8601
+ <dd>
8602
+
8603
+ **requestOptions:** `Feedback.RequestOptions`
8604
+
8605
+ </dd>
8606
+ </dl>
8607
+ </dd>
8608
+ </dl>
8609
+
8610
+ </dd>
8611
+ </dl>
8612
+ </details>
8613
+
8425
8614
  ## Templates Agents
8426
8615
 
8427
8616
  <details><summary><code>client.templates.agents.<a href="/src/api/resources/templates/resources/agents/client/Client.ts">create</a>(project, templateVersion, { ...params }) -> Letta.AgentsCreateResponse</code></summary>
@@ -30,6 +30,7 @@ export declare namespace CreateAgentRequest {
30
30
  include_base_tools?: boolean | null;
31
31
  include_multi_agent_tools?: boolean | null;
32
32
  include_base_tool_rules?: boolean | null;
33
+ include_default_source?: boolean | null;
33
34
  description?: string | null;
34
35
  metadata?: Record<string, unknown> | null;
35
36
  model?: string | null;
@@ -62,6 +62,7 @@ exports.CreateAgentRequest = core.serialization.object({
62
62
  includeBaseTools: core.serialization.property("include_base_tools", core.serialization.boolean().optional()),
63
63
  includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
64
64
  includeBaseToolRules: core.serialization.property("include_base_tool_rules", core.serialization.boolean().optional()),
65
+ includeDefaultSource: core.serialization.property("include_default_source", core.serialization.boolean().optional()),
65
66
  description: core.serialization.string().optional(),
66
67
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
67
68
  model: core.serialization.string().optional(),
@@ -4,6 +4,8 @@ export * as agents from "./agents";
4
4
  export * from "./agents/types";
5
5
  export * as groups from "./groups";
6
6
  export * from "./groups/types";
7
+ export * as steps from "./steps";
8
+ export * from "./steps/types";
7
9
  export * as templates from "./templates";
8
10
  export * from "./templates/types";
9
11
  export * as clientSideAccessTokens from "./clientSideAccessTokens";
@@ -18,7 +20,6 @@ export * as blocks from "./blocks";
18
20
  export * as jobs from "./jobs";
19
21
  export * as providers from "./providers";
20
22
  export * as runs from "./runs";
21
- export * as steps from "./steps";
22
23
  export * as tags from "./tags";
23
24
  export * as batches from "./batches";
24
25
  export * as voice from "./voice";
@@ -36,13 +36,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.voice = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.groups = exports.agents = exports.tools = void 0;
39
+ exports.voice = exports.batches = exports.tags = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.embeddingModels = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.steps = exports.groups = exports.agents = exports.tools = void 0;
40
40
  exports.tools = __importStar(require("./tools"));
41
41
  __exportStar(require("./tools/types"), exports);
42
42
  exports.agents = __importStar(require("./agents"));
43
43
  __exportStar(require("./agents/types"), exports);
44
44
  exports.groups = __importStar(require("./groups"));
45
45
  __exportStar(require("./groups/types"), exports);
46
+ exports.steps = __importStar(require("./steps"));
47
+ __exportStar(require("./steps/types"), exports);
46
48
  exports.templates = __importStar(require("./templates"));
47
49
  __exportStar(require("./templates/types"), exports);
48
50
  exports.clientSideAccessTokens = __importStar(require("./clientSideAccessTokens"));
@@ -57,7 +59,6 @@ exports.blocks = __importStar(require("./blocks"));
57
59
  exports.jobs = __importStar(require("./jobs"));
58
60
  exports.providers = __importStar(require("./providers"));
59
61
  exports.runs = __importStar(require("./runs"));
60
- exports.steps = __importStar(require("./steps"));
61
62
  exports.tags = __importStar(require("./tags"));
62
63
  exports.batches = __importStar(require("./batches"));
63
64
  exports.voice = __importStar(require("./voice"));
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -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 AddFeedbackRequestFeedback: core.serialization.Schema<serializers.AddFeedbackRequestFeedback.Raw, Letta.AddFeedbackRequestFeedback>;
8
+ export declare namespace AddFeedbackRequestFeedback {
9
+ type Raw = "positive" | "negative";
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.AddFeedbackRequestFeedback = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.AddFeedbackRequestFeedback = core.serialization.enum_(["positive", "negative"]);
@@ -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 StepsListRequestFeedback: core.serialization.Schema<serializers.StepsListRequestFeedback.Raw, Letta.StepsListRequestFeedback>;
8
+ export declare namespace StepsListRequestFeedback {
9
+ type Raw = "positive" | "negative";
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.StepsListRequestFeedback = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.StepsListRequestFeedback = core.serialization.enum_(["positive", "negative"]);
@@ -0,0 +1,2 @@
1
+ export * from "./StepsListRequestFeedback";
2
+ export * from "./AddFeedbackRequestFeedback";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./StepsListRequestFeedback"), exports);
18
+ __exportStar(require("./AddFeedbackRequestFeedback"), exports);