@letta-ai/letta-client 0.1.152 → 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 (163) 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.js +10 -10
  33. package/api/resources/sources/resources/files/client/Client.js +3 -3
  34. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  35. package/api/resources/steps/client/Client.js +2 -2
  36. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  37. package/api/resources/tags/client/Client.js +1 -1
  38. package/api/resources/telemetry/client/Client.js +1 -1
  39. package/api/resources/templates/client/Client.js +1 -1
  40. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  41. package/api/resources/tools/client/Client.js +19 -19
  42. package/api/resources/voice/client/Client.js +1 -1
  43. package/api/types/AssistantMessage.d.ts +1 -0
  44. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  45. package/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +4 -1
  46. package/api/types/CompletionCreateParamsStreamingServiceTier.js +3 -0
  47. package/api/types/HiddenReasoningMessage.d.ts +1 -0
  48. package/api/types/McpTool.d.ts +3 -0
  49. package/api/types/Message.d.ts +2 -0
  50. package/api/types/ReasoningMessage.d.ts +1 -0
  51. package/api/types/Step.d.ts +2 -0
  52. package/api/types/SystemMessage.d.ts +1 -0
  53. package/api/types/ToolCallMessage.d.ts +1 -0
  54. package/api/types/ToolReturnMessage.d.ts +1 -0
  55. package/api/types/UserMessage.d.ts +1 -0
  56. package/dist/api/resources/agents/client/Client.js +11 -11
  57. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  58. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/messages/client/Client.js +12 -9
  63. package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  64. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  65. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  66. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  67. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  68. package/dist/api/resources/batches/client/Client.js +4 -4
  69. package/dist/api/resources/blocks/client/Client.js +6 -6
  70. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  71. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  72. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  73. package/dist/api/resources/groups/client/Client.js +6 -6
  74. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  75. package/dist/api/resources/health/client/Client.js +1 -1
  76. package/dist/api/resources/identities/client/Client.js +7 -7
  77. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  78. package/dist/api/resources/jobs/client/Client.js +5 -5
  79. package/dist/api/resources/messages/client/Client.js +1 -1
  80. package/dist/api/resources/models/client/Client.js +1 -1
  81. package/dist/api/resources/projects/client/Client.js +1 -1
  82. package/dist/api/resources/providers/client/Client.js +5 -5
  83. package/dist/api/resources/runs/client/Client.js +4 -4
  84. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  85. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  86. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  87. package/dist/api/resources/sources/client/Client.js +10 -10
  88. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  89. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  90. package/dist/api/resources/steps/client/Client.js +2 -2
  91. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  92. package/dist/api/resources/tags/client/Client.js +1 -1
  93. package/dist/api/resources/telemetry/client/Client.js +1 -1
  94. package/dist/api/resources/templates/client/Client.js +1 -1
  95. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  96. package/dist/api/resources/tools/client/Client.js +19 -19
  97. package/dist/api/resources/voice/client/Client.js +1 -1
  98. package/dist/api/types/AssistantMessage.d.ts +1 -0
  99. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  100. package/dist/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +4 -1
  101. package/dist/api/types/CompletionCreateParamsStreamingServiceTier.js +3 -0
  102. package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
  103. package/dist/api/types/McpTool.d.ts +3 -0
  104. package/dist/api/types/Message.d.ts +2 -0
  105. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  106. package/dist/api/types/Step.d.ts +2 -0
  107. package/dist/api/types/SystemMessage.d.ts +1 -0
  108. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  109. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  110. package/dist/api/types/UserMessage.d.ts +1 -0
  111. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  112. package/dist/serialization/types/AssistantMessage.js +1 -0
  113. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  114. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +1 -0
  115. package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
  116. package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
  117. package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  118. package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
  119. package/dist/serialization/types/McpTool.d.ts +3 -0
  120. package/dist/serialization/types/McpTool.js +3 -0
  121. package/dist/serialization/types/Message.d.ts +1 -0
  122. package/dist/serialization/types/Message.js +1 -0
  123. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  124. package/dist/serialization/types/ReasoningMessage.js +1 -0
  125. package/dist/serialization/types/Step.d.ts +2 -0
  126. package/dist/serialization/types/Step.js +2 -0
  127. package/dist/serialization/types/SystemMessage.d.ts +1 -0
  128. package/dist/serialization/types/SystemMessage.js +1 -0
  129. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  130. package/dist/serialization/types/ToolCallMessage.js +1 -0
  131. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  132. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  133. package/dist/serialization/types/UserMessage.d.ts +1 -0
  134. package/dist/serialization/types/UserMessage.js +1 -0
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/package.json +1 -1
  138. package/serialization/types/AssistantMessage.d.ts +1 -0
  139. package/serialization/types/AssistantMessage.js +1 -0
  140. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  141. package/serialization/types/CompletionCreateParamsStreamingModel.js +1 -0
  142. package/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
  143. package/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
  144. package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  145. package/serialization/types/HiddenReasoningMessage.js +1 -0
  146. package/serialization/types/McpTool.d.ts +3 -0
  147. package/serialization/types/McpTool.js +3 -0
  148. package/serialization/types/Message.d.ts +1 -0
  149. package/serialization/types/Message.js +1 -0
  150. package/serialization/types/ReasoningMessage.d.ts +1 -0
  151. package/serialization/types/ReasoningMessage.js +1 -0
  152. package/serialization/types/Step.d.ts +2 -0
  153. package/serialization/types/Step.js +2 -0
  154. package/serialization/types/SystemMessage.d.ts +1 -0
  155. package/serialization/types/SystemMessage.js +1 -0
  156. package/serialization/types/ToolCallMessage.d.ts +1 -0
  157. package/serialization/types/ToolCallMessage.js +1 -0
  158. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  159. package/serialization/types/ToolReturnMessage.js +1 -0
  160. package/serialization/types/UserMessage.d.ts +1 -0
  161. package/serialization/types/UserMessage.js +1 -0
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.152";
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.152";
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.152",
3
+ "version": "0.1.153",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -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/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.152";
1
+ export declare const SDK_VERSION = "0.1.153";
package/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.152";
4
+ exports.SDK_VERSION = "0.1.153";