@letta-ai/letta-client 0.1.151 → 0.1.153

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 (174) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  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/groups/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.js +12 -9
  8. package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  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 +3 -3
  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/jobs/client/Client.js +5 -5
  24. package/api/resources/messages/client/Client.js +1 -1
  25. package/api/resources/models/client/Client.js +1 -1
  26. package/api/resources/projects/client/Client.js +1 -1
  27. package/api/resources/providers/client/Client.js +5 -5
  28. package/api/resources/runs/client/Client.js +4 -4
  29. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  30. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  31. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  32. package/api/resources/sources/client/Client.d.ts +12 -0
  33. package/api/resources/sources/client/Client.js +76 -9
  34. package/api/resources/sources/resources/files/client/Client.js +3 -3
  35. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  36. package/api/resources/steps/client/Client.js +2 -2
  37. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  38. package/api/resources/tags/client/Client.js +1 -1
  39. package/api/resources/telemetry/client/Client.js +1 -1
  40. package/api/resources/templates/client/Client.js +1 -1
  41. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  42. package/api/resources/tools/client/Client.js +19 -19
  43. package/api/resources/voice/client/Client.js +1 -1
  44. package/api/types/AssistantMessage.d.ts +1 -0
  45. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  46. package/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +4 -1
  47. package/api/types/CompletionCreateParamsStreamingServiceTier.js +3 -0
  48. package/api/types/HiddenReasoningMessage.d.ts +1 -0
  49. package/api/types/McpTool.d.ts +3 -0
  50. package/api/types/Message.d.ts +2 -0
  51. package/api/types/ReasoningMessage.d.ts +1 -0
  52. package/api/types/Step.d.ts +2 -0
  53. package/api/types/SystemMessage.d.ts +1 -0
  54. package/api/types/ToolCallMessage.d.ts +1 -0
  55. package/api/types/ToolReturnMessage.d.ts +1 -0
  56. package/api/types/UserMessage.d.ts +1 -0
  57. package/dist/api/resources/agents/client/Client.js +11 -11
  58. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  59. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/messages/client/Client.js +12 -9
  64. package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  65. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  66. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  67. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  69. package/dist/api/resources/batches/client/Client.js +4 -4
  70. package/dist/api/resources/blocks/client/Client.js +6 -6
  71. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  72. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  73. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  74. package/dist/api/resources/groups/client/Client.js +6 -6
  75. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  76. package/dist/api/resources/health/client/Client.js +1 -1
  77. package/dist/api/resources/identities/client/Client.js +7 -7
  78. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  79. package/dist/api/resources/jobs/client/Client.js +5 -5
  80. package/dist/api/resources/messages/client/Client.js +1 -1
  81. package/dist/api/resources/models/client/Client.js +1 -1
  82. package/dist/api/resources/projects/client/Client.js +1 -1
  83. package/dist/api/resources/providers/client/Client.js +5 -5
  84. package/dist/api/resources/runs/client/Client.js +4 -4
  85. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  86. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  87. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  88. package/dist/api/resources/sources/client/Client.d.ts +12 -0
  89. package/dist/api/resources/sources/client/Client.js +76 -9
  90. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  91. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  92. package/dist/api/resources/steps/client/Client.js +2 -2
  93. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  94. package/dist/api/resources/tags/client/Client.js +1 -1
  95. package/dist/api/resources/telemetry/client/Client.js +1 -1
  96. package/dist/api/resources/templates/client/Client.js +1 -1
  97. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  98. package/dist/api/resources/tools/client/Client.js +19 -19
  99. package/dist/api/resources/voice/client/Client.js +1 -1
  100. package/dist/api/types/AssistantMessage.d.ts +1 -0
  101. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  102. package/dist/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +4 -1
  103. package/dist/api/types/CompletionCreateParamsStreamingServiceTier.js +3 -0
  104. package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
  105. package/dist/api/types/McpTool.d.ts +3 -0
  106. package/dist/api/types/Message.d.ts +2 -0
  107. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  108. package/dist/api/types/Step.d.ts +2 -0
  109. package/dist/api/types/SystemMessage.d.ts +1 -0
  110. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  111. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  112. package/dist/api/types/UserMessage.d.ts +1 -0
  113. package/dist/serialization/resources/sources/client/getAgentsForSource.d.ts +9 -0
  114. package/dist/serialization/resources/sources/client/getAgentsForSource.js +41 -0
  115. package/dist/serialization/resources/sources/client/index.d.ts +1 -0
  116. package/dist/serialization/resources/sources/client/index.js +2 -1
  117. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  118. package/dist/serialization/types/AssistantMessage.js +1 -0
  119. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  120. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +1 -0
  121. package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
  122. package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
  123. package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  124. package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
  125. package/dist/serialization/types/McpTool.d.ts +3 -0
  126. package/dist/serialization/types/McpTool.js +3 -0
  127. package/dist/serialization/types/Message.d.ts +1 -0
  128. package/dist/serialization/types/Message.js +1 -0
  129. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  130. package/dist/serialization/types/ReasoningMessage.js +1 -0
  131. package/dist/serialization/types/Step.d.ts +2 -0
  132. package/dist/serialization/types/Step.js +2 -0
  133. package/dist/serialization/types/SystemMessage.d.ts +1 -0
  134. package/dist/serialization/types/SystemMessage.js +1 -0
  135. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  136. package/dist/serialization/types/ToolCallMessage.js +1 -0
  137. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  138. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  139. package/dist/serialization/types/UserMessage.d.ts +1 -0
  140. package/dist/serialization/types/UserMessage.js +1 -0
  141. package/dist/version.d.ts +1 -1
  142. package/dist/version.js +1 -1
  143. package/package.json +1 -1
  144. package/reference.md +63 -0
  145. package/serialization/resources/sources/client/getAgentsForSource.d.ts +9 -0
  146. package/serialization/resources/sources/client/getAgentsForSource.js +41 -0
  147. package/serialization/resources/sources/client/index.d.ts +1 -0
  148. package/serialization/resources/sources/client/index.js +2 -1
  149. package/serialization/types/AssistantMessage.d.ts +1 -0
  150. package/serialization/types/AssistantMessage.js +1 -0
  151. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  152. package/serialization/types/CompletionCreateParamsStreamingModel.js +1 -0
  153. package/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
  154. package/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
  155. package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  156. package/serialization/types/HiddenReasoningMessage.js +1 -0
  157. package/serialization/types/McpTool.d.ts +3 -0
  158. package/serialization/types/McpTool.js +3 -0
  159. package/serialization/types/Message.d.ts +1 -0
  160. package/serialization/types/Message.js +1 -0
  161. package/serialization/types/ReasoningMessage.d.ts +1 -0
  162. package/serialization/types/ReasoningMessage.js +1 -0
  163. package/serialization/types/Step.d.ts +2 -0
  164. package/serialization/types/Step.js +2 -0
  165. package/serialization/types/SystemMessage.d.ts +1 -0
  166. package/serialization/types/SystemMessage.js +1 -0
  167. package/serialization/types/ToolCallMessage.d.ts +1 -0
  168. package/serialization/types/ToolCallMessage.js +1 -0
  169. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  170. package/serialization/types/ToolReturnMessage.js +1 -0
  171. package/serialization/types/UserMessage.d.ts +1 -0
  172. package/serialization/types/UserMessage.js +1 -0
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
@@ -18,6 +18,7 @@ export interface SystemMessage {
18
18
  otid?: string;
19
19
  senderId?: string;
20
20
  stepId?: string;
21
+ isErr?: boolean;
21
22
  /** The message content sent by the system */
22
23
  content: string;
23
24
  }
@@ -19,5 +19,6 @@ export interface ToolCallMessage {
19
19
  otid?: string;
20
20
  senderId?: string;
21
21
  stepId?: string;
22
+ isErr?: boolean;
22
23
  toolCall: Letta.ToolCallMessageToolCall;
23
24
  }
@@ -23,6 +23,7 @@ export interface ToolReturnMessage {
23
23
  otid?: string;
24
24
  senderId?: string;
25
25
  stepId?: string;
26
+ isErr?: boolean;
26
27
  toolReturn: string;
27
28
  status: Letta.ToolReturnMessageStatus;
28
29
  toolCallId: string;
@@ -19,6 +19,7 @@ export interface UserMessage {
19
19
  otid?: string;
20
20
  senderId?: string;
21
21
  stepId?: string;
22
+ isErr?: boolean;
22
23
  /** The message content sent by the user (can be a string or an array of multi-modal content parts) */
23
24
  content: Letta.UserMessageContent;
24
25
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.sources.getAgentsForSource.Response.Raw, string[]>;
7
+ export declare namespace Response {
8
+ type Raw = string[];
9
+ }
@@ -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.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.list(core.serialization.string());
@@ -1,4 +1,5 @@
1
1
  export * as count from "./count";
2
2
  export * as retrieveByName from "./retrieveByName";
3
3
  export * as list from "./list";
4
+ export * as getAgentsForSource from "./getAgentsForSource";
4
5
  export * from "./requests";
@@ -36,8 +36,9 @@ 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.list = exports.retrieveByName = exports.count = void 0;
39
+ exports.getAgentsForSource = exports.list = exports.retrieveByName = exports.count = void 0;
40
40
  exports.count = __importStar(require("./count"));
41
41
  exports.retrieveByName = __importStar(require("./retrieveByName"));
42
42
  exports.list = __importStar(require("./list"));
43
+ exports.getAgentsForSource = __importStar(require("./getAgentsForSource"));
43
44
  __exportStar(require("./requests"), exports);
@@ -15,6 +15,7 @@ export declare namespace AssistantMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  content: AssistantMessageContent.Raw;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.AssistantMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  content: AssistantMessageContent_1.AssistantMessageContent,
51
52
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsStreamingModel {
9
- type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -62,6 +62,7 @@ exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminate
62
62
  core.serialization.stringLiteral("gpt-4o-search-preview-2025-03-11"),
63
63
  core.serialization.stringLiteral("gpt-4o-mini-search-preview-2025-03-11"),
64
64
  core.serialization.stringLiteral("chatgpt-4o-latest"),
65
+ core.serialization.stringLiteral("codex-mini-latest"),
65
66
  core.serialization.stringLiteral("gpt-4o-mini"),
66
67
  core.serialization.stringLiteral("gpt-4o-mini-2024-07-18"),
67
68
  core.serialization.stringLiteral("gpt-4-turbo"),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsStreamingServiceTier.Raw, Letta.CompletionCreateParamsStreamingServiceTier>;
8
8
  export declare namespace CompletionCreateParamsStreamingServiceTier {
9
- type Raw = "auto" | "default";
9
+ type Raw = "auto" | "default" | "flex" | "scale" | "priority";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompletionCreateParamsStreamingServiceTier = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
41
+ exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex", "scale", "priority"]);
@@ -15,6 +15,7 @@ export declare namespace HiddenReasoningMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  state: HiddenReasoningMessageState.Raw;
19
20
  hidden_reasoning?: string | null;
20
21
  }
@@ -47,6 +47,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
51
52
  hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
52
53
  });
@@ -9,9 +9,12 @@ export declare const McpTool: core.serialization.ObjectSchema<serializers.McpToo
9
9
  export declare namespace McpTool {
10
10
  interface Raw {
11
11
  name: string;
12
+ title?: string | null;
12
13
  description?: string | null;
13
14
  inputSchema: Record<string, unknown>;
15
+ outputSchema?: Record<string, unknown> | null;
14
16
  annotations?: ToolAnnotations.Raw | null;
17
+ _meta?: Record<string, unknown> | null;
15
18
  [key: string]: any;
16
19
  }
17
20
  }
@@ -42,8 +42,11 @@ const ToolAnnotations_1 = require("./ToolAnnotations");
42
42
  exports.McpTool = core.serialization
43
43
  .object({
44
44
  name: core.serialization.string(),
45
+ title: core.serialization.string().optional(),
45
46
  description: core.serialization.string().optional(),
46
47
  inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
48
+ outputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
47
49
  annotations: ToolAnnotations_1.ToolAnnotations.optional(),
50
+ meta: core.serialization.property("_meta", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
51
  })
49
52
  .passthrough();
@@ -29,5 +29,6 @@ export declare namespace Message {
29
29
  group_id?: string | null;
30
30
  sender_id?: string | null;
31
31
  batch_item_id?: string | null;
32
+ is_err?: boolean | null;
32
33
  }
33
34
  }
@@ -61,4 +61,5 @@ exports.Message = core.serialization.object({
61
61
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
62
62
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
63
63
  batchItemId: core.serialization.property("batch_item_id", core.serialization.string().optional()),
64
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
64
65
  });
@@ -15,6 +15,7 @@ export declare namespace ReasoningMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  source?: ReasoningMessageSource.Raw | null;
19
20
  reasoning: string;
20
21
  signature?: string | null;
@@ -47,6 +47,7 @@ exports.ReasoningMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
51
52
  reasoning: core.serialization.string(),
52
53
  signature: core.serialization.string().optional(),
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { StopReasonType } from "./StopReasonType";
7
8
  import { Message } from "./Message";
8
9
  import { StepFeedback } from "./StepFeedback";
9
10
  export declare const Step: core.serialization.ObjectSchema<serializers.Step.Raw, Letta.Step>;
@@ -23,6 +24,7 @@ export declare namespace Step {
23
24
  prompt_tokens?: number | null;
24
25
  total_tokens?: number | null;
25
26
  completion_tokens_details?: Record<string, unknown> | null;
27
+ stop_reason?: StopReasonType.Raw | null;
26
28
  tags?: string[] | null;
27
29
  tid?: string | null;
28
30
  trace_id?: string | null;
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Step = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const StopReasonType_1 = require("./StopReasonType");
41
42
  const Message_1 = require("./Message");
42
43
  const StepFeedback_1 = require("./StepFeedback");
43
44
  exports.Step = core.serialization.object({
@@ -55,6 +56,7 @@ exports.Step = core.serialization.object({
55
56
  promptTokens: core.serialization.property("prompt_tokens", core.serialization.number().optional()),
56
57
  totalTokens: core.serialization.property("total_tokens", core.serialization.number().optional()),
57
58
  completionTokensDetails: core.serialization.property("completion_tokens_details", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
59
+ stopReason: core.serialization.property("stop_reason", StopReasonType_1.StopReasonType.optional()),
58
60
  tags: core.serialization.list(core.serialization.string()).optional(),
59
61
  tid: core.serialization.string().optional(),
60
62
  traceId: core.serialization.property("trace_id", core.serialization.string().optional()),
@@ -14,6 +14,7 @@ export declare namespace SystemMessage {
14
14
  otid?: string | null;
15
15
  sender_id?: string | null;
16
16
  step_id?: string | null;
17
+ is_err?: boolean | null;
17
18
  content: string;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.SystemMessage = core.serialization.object({
46
46
  otid: core.serialization.string().optional(),
47
47
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
48
48
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
49
50
  content: core.serialization.string(),
50
51
  });
@@ -15,6 +15,7 @@ export declare namespace ToolCallMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  tool_call: ToolCallMessageToolCall.Raw;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.ToolCallMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  toolCall: core.serialization.property("tool_call", ToolCallMessageToolCall_1.ToolCallMessageToolCall),
51
52
  });
@@ -15,6 +15,7 @@ export declare namespace ToolReturnMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  tool_return: string;
19
20
  status: ToolReturnMessageStatus.Raw;
20
21
  tool_call_id: string;
@@ -47,6 +47,7 @@ exports.ToolReturnMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  toolReturn: core.serialization.property("tool_return", core.serialization.string()),
51
52
  status: ToolReturnMessageStatus_1.ToolReturnMessageStatus,
52
53
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
@@ -15,6 +15,7 @@ export declare namespace UserMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  content: UserMessageContent.Raw;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.UserMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  content: UserMessageContent_1.UserMessageContent,
51
52
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.151";
1
+ export declare const SDK_VERSION = "0.1.153";
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.151";
4
+ exports.SDK_VERSION = "0.1.153";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.151",
3
+ "version": "0.1.153",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1739,6 +1739,69 @@ await client.sources.create({
1739
1739
  </dl>
1740
1740
  </details>
1741
1741
 
1742
+ <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">getAgentsForSource</a>(sourceId) -> string[]</code></summary>
1743
+ <dl>
1744
+ <dd>
1745
+
1746
+ #### 📝 Description
1747
+
1748
+ <dl>
1749
+ <dd>
1750
+
1751
+ <dl>
1752
+ <dd>
1753
+
1754
+ Get all agent IDs that have the specified source attached.
1755
+
1756
+ </dd>
1757
+ </dl>
1758
+ </dd>
1759
+ </dl>
1760
+
1761
+ #### 🔌 Usage
1762
+
1763
+ <dl>
1764
+ <dd>
1765
+
1766
+ <dl>
1767
+ <dd>
1768
+
1769
+ ```typescript
1770
+ await client.sources.getAgentsForSource("source_id");
1771
+ ```
1772
+
1773
+ </dd>
1774
+ </dl>
1775
+ </dd>
1776
+ </dl>
1777
+
1778
+ #### ⚙️ Parameters
1779
+
1780
+ <dl>
1781
+ <dd>
1782
+
1783
+ <dl>
1784
+ <dd>
1785
+
1786
+ **sourceId:** `string`
1787
+
1788
+ </dd>
1789
+ </dl>
1790
+
1791
+ <dl>
1792
+ <dd>
1793
+
1794
+ **requestOptions:** `Sources.RequestOptions`
1795
+
1796
+ </dd>
1797
+ </dl>
1798
+ </dd>
1799
+ </dl>
1800
+
1801
+ </dd>
1802
+ </dl>
1803
+ </details>
1804
+
1742
1805
  <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">getFileMetadata</a>(sourceId, fileId, { ...params }) -> Letta.FileMetadata</code></summary>
1743
1806
  <dl>
1744
1807
  <dd>
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.sources.getAgentsForSource.Response.Raw, string[]>;
7
+ export declare namespace Response {
8
+ type Raw = string[];
9
+ }
@@ -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.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.list(core.serialization.string());
@@ -1,4 +1,5 @@
1
1
  export * as count from "./count";
2
2
  export * as retrieveByName from "./retrieveByName";
3
3
  export * as list from "./list";
4
+ export * as getAgentsForSource from "./getAgentsForSource";
4
5
  export * from "./requests";
@@ -36,8 +36,9 @@ 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.list = exports.retrieveByName = exports.count = void 0;
39
+ exports.getAgentsForSource = exports.list = exports.retrieveByName = exports.count = void 0;
40
40
  exports.count = __importStar(require("./count"));
41
41
  exports.retrieveByName = __importStar(require("./retrieveByName"));
42
42
  exports.list = __importStar(require("./list"));
43
+ exports.getAgentsForSource = __importStar(require("./getAgentsForSource"));
43
44
  __exportStar(require("./requests"), exports);
@@ -15,6 +15,7 @@ export declare namespace AssistantMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  content: AssistantMessageContent.Raw;
19
20
  }
20
21
  }
@@ -47,5 +47,6 @@ exports.AssistantMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  content: AssistantMessageContent_1.AssistantMessageContent,
51
52
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsStreamingModel {
9
- type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "codex-mini-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -62,6 +62,7 @@ exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminate
62
62
  core.serialization.stringLiteral("gpt-4o-search-preview-2025-03-11"),
63
63
  core.serialization.stringLiteral("gpt-4o-mini-search-preview-2025-03-11"),
64
64
  core.serialization.stringLiteral("chatgpt-4o-latest"),
65
+ core.serialization.stringLiteral("codex-mini-latest"),
65
66
  core.serialization.stringLiteral("gpt-4o-mini"),
66
67
  core.serialization.stringLiteral("gpt-4o-mini-2024-07-18"),
67
68
  core.serialization.stringLiteral("gpt-4-turbo"),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsStreamingServiceTier.Raw, Letta.CompletionCreateParamsStreamingServiceTier>;
8
8
  export declare namespace CompletionCreateParamsStreamingServiceTier {
9
- type Raw = "auto" | "default";
9
+ type Raw = "auto" | "default" | "flex" | "scale" | "priority";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompletionCreateParamsStreamingServiceTier = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
41
+ exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex", "scale", "priority"]);
@@ -15,6 +15,7 @@ export declare namespace HiddenReasoningMessage {
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
17
  step_id?: string | null;
18
+ is_err?: boolean | null;
18
19
  state: HiddenReasoningMessageState.Raw;
19
20
  hidden_reasoning?: string | null;
20
21
  }
@@ -47,6 +47,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
49
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
50
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
50
51
  state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
51
52
  hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
52
53
  });
@@ -9,9 +9,12 @@ export declare const McpTool: core.serialization.ObjectSchema<serializers.McpToo
9
9
  export declare namespace McpTool {
10
10
  interface Raw {
11
11
  name: string;
12
+ title?: string | null;
12
13
  description?: string | null;
13
14
  inputSchema: Record<string, unknown>;
15
+ outputSchema?: Record<string, unknown> | null;
14
16
  annotations?: ToolAnnotations.Raw | null;
17
+ _meta?: Record<string, unknown> | null;
15
18
  [key: string]: any;
16
19
  }
17
20
  }
@@ -42,8 +42,11 @@ const ToolAnnotations_1 = require("./ToolAnnotations");
42
42
  exports.McpTool = core.serialization
43
43
  .object({
44
44
  name: core.serialization.string(),
45
+ title: core.serialization.string().optional(),
45
46
  description: core.serialization.string().optional(),
46
47
  inputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
48
+ outputSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
47
49
  annotations: ToolAnnotations_1.ToolAnnotations.optional(),
50
+ meta: core.serialization.property("_meta", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
51
  })
49
52
  .passthrough();
@@ -29,5 +29,6 @@ export declare namespace Message {
29
29
  group_id?: string | null;
30
30
  sender_id?: string | null;
31
31
  batch_item_id?: string | null;
32
+ is_err?: boolean | null;
32
33
  }
33
34
  }
@@ -61,4 +61,5 @@ exports.Message = core.serialization.object({
61
61
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
62
62
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
63
63
  batchItemId: core.serialization.property("batch_item_id", core.serialization.string().optional()),
64
+ isErr: core.serialization.property("is_err", core.serialization.boolean().optional()),
64
65
  });