@letta-ai/letta-client 0.1.110 → 0.1.112

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 (200) hide show
  1. package/api/resources/agents/client/Client.js +9 -9
  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 +6 -6
  8. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/batches/client/Client.js +4 -4
  13. package/api/resources/blocks/client/Client.js +5 -5
  14. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  15. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  16. package/api/resources/embeddingModels/client/Client.js +1 -1
  17. package/api/resources/embeddings/client/Client.js +1 -1
  18. package/api/resources/groups/client/Client.js +5 -5
  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 +1 -0
  24. package/api/resources/index.js +1 -0
  25. package/api/resources/jobs/client/Client.js +4 -4
  26. package/api/resources/models/client/Client.d.ts +4 -1
  27. package/api/resources/models/client/Client.js +28 -7
  28. package/api/resources/models/client/index.d.ts +1 -1
  29. package/api/resources/models/client/index.js +15 -0
  30. package/api/resources/models/client/requests/ModelsListRequest.d.ts +10 -0
  31. package/api/resources/models/client/requests/index.d.ts +1 -0
  32. package/api/resources/models/client/requests/index.js +2 -0
  33. package/api/resources/projects/client/Client.js +1 -1
  34. package/api/resources/providers/client/Client.d.ts +1 -0
  35. package/api/resources/providers/client/Client.js +12 -5
  36. package/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
  37. package/api/resources/providers/client/requests/ProvidersListRequest.d.ts +3 -0
  38. package/api/resources/runs/client/Client.js +4 -4
  39. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  40. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  41. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  42. package/api/resources/sources/client/Client.js +7 -7
  43. package/api/resources/sources/resources/files/client/Client.js +3 -3
  44. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  45. package/api/resources/steps/client/Client.d.ts +3 -10
  46. package/api/resources/steps/client/Client.js +8 -51
  47. package/api/resources/steps/client/requests/{ListStepsRequest.d.ts → StepsListRequest.d.ts} +1 -1
  48. package/api/resources/steps/client/requests/index.d.ts +1 -1
  49. package/api/resources/tags/client/Client.js +1 -1
  50. package/api/resources/templates/client/Client.js +1 -1
  51. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  52. package/api/resources/tools/client/Client.js +17 -17
  53. package/api/resources/voice/client/Client.js +1 -1
  54. package/api/types/AssistantMessage.d.ts +1 -0
  55. package/api/types/HiddenReasoningMessage.d.ts +1 -0
  56. package/api/types/LlmConfig.d.ts +2 -0
  57. package/api/types/Message.d.ts +5 -0
  58. package/api/types/Provider.d.ts +5 -0
  59. package/api/types/ProviderType.d.ts +21 -0
  60. package/api/types/ProviderType.js +23 -0
  61. package/api/types/ReasoningMessage.d.ts +1 -0
  62. package/api/types/SystemMessage.d.ts +1 -0
  63. package/api/types/ToolCallMessage.d.ts +1 -0
  64. package/api/types/ToolReturnMessage.d.ts +1 -0
  65. package/api/types/UserMessage.d.ts +1 -0
  66. package/api/types/index.d.ts +1 -0
  67. package/api/types/index.js +1 -0
  68. package/dist/api/resources/agents/client/Client.js +9 -9
  69. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  70. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  71. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  75. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  76. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  78. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  79. package/dist/api/resources/batches/client/Client.js +4 -4
  80. package/dist/api/resources/blocks/client/Client.js +5 -5
  81. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  82. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  83. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  84. package/dist/api/resources/embeddings/client/Client.js +1 -1
  85. package/dist/api/resources/groups/client/Client.js +5 -5
  86. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  87. package/dist/api/resources/health/client/Client.js +1 -1
  88. package/dist/api/resources/identities/client/Client.js +7 -7
  89. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  90. package/dist/api/resources/index.d.ts +1 -0
  91. package/dist/api/resources/index.js +1 -0
  92. package/dist/api/resources/jobs/client/Client.js +4 -4
  93. package/dist/api/resources/models/client/Client.d.ts +4 -1
  94. package/dist/api/resources/models/client/Client.js +28 -7
  95. package/dist/api/resources/models/client/index.d.ts +1 -1
  96. package/dist/api/resources/models/client/index.js +15 -0
  97. package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +10 -0
  98. package/dist/api/resources/models/client/requests/ModelsListRequest.js +5 -0
  99. package/dist/api/resources/models/client/requests/index.d.ts +1 -0
  100. package/dist/api/resources/models/client/requests/index.js +2 -0
  101. package/dist/api/resources/projects/client/Client.js +1 -1
  102. package/dist/api/resources/providers/client/Client.d.ts +1 -0
  103. package/dist/api/resources/providers/client/Client.js +12 -5
  104. package/dist/api/resources/providers/client/requests/ProviderCreate.d.ts +4 -0
  105. package/dist/api/resources/providers/client/requests/ProvidersListRequest.d.ts +3 -0
  106. package/dist/api/resources/runs/client/Client.js +4 -4
  107. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  108. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  109. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  110. package/dist/api/resources/sources/client/Client.js +7 -7
  111. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  112. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  113. package/dist/api/resources/steps/client/Client.d.ts +3 -10
  114. package/dist/api/resources/steps/client/Client.js +8 -51
  115. package/dist/api/resources/steps/client/requests/{ListStepsRequest.d.ts → StepsListRequest.d.ts} +1 -1
  116. package/dist/api/resources/steps/client/requests/StepsListRequest.js +5 -0
  117. package/dist/api/resources/steps/client/requests/index.d.ts +1 -1
  118. package/dist/api/resources/tags/client/Client.js +1 -1
  119. package/dist/api/resources/templates/client/Client.js +1 -1
  120. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  121. package/dist/api/resources/tools/client/Client.js +17 -17
  122. package/dist/api/resources/voice/client/Client.js +1 -1
  123. package/dist/api/types/AssistantMessage.d.ts +1 -0
  124. package/dist/api/types/HiddenReasoningMessage.d.ts +1 -0
  125. package/dist/api/types/LlmConfig.d.ts +2 -0
  126. package/dist/api/types/Message.d.ts +5 -0
  127. package/dist/api/types/Provider.d.ts +5 -0
  128. package/dist/api/types/ProviderType.d.ts +21 -0
  129. package/dist/api/types/ProviderType.js +23 -0
  130. package/dist/api/types/ReasoningMessage.d.ts +1 -0
  131. package/dist/api/types/SystemMessage.d.ts +1 -0
  132. package/dist/api/types/ToolCallMessage.d.ts +1 -0
  133. package/dist/api/types/ToolReturnMessage.d.ts +1 -0
  134. package/dist/api/types/UserMessage.d.ts +1 -0
  135. package/dist/api/types/index.d.ts +1 -0
  136. package/dist/api/types/index.js +1 -0
  137. package/dist/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  138. package/dist/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  139. package/dist/serialization/resources/steps/client/index.d.ts +1 -1
  140. package/dist/serialization/resources/steps/client/index.js +2 -2
  141. package/dist/serialization/resources/steps/client/{listSteps.d.ts → list.d.ts} +1 -1
  142. package/dist/serialization/types/AssistantMessage.d.ts +1 -0
  143. package/dist/serialization/types/AssistantMessage.js +1 -0
  144. package/dist/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  145. package/dist/serialization/types/HiddenReasoningMessage.js +1 -0
  146. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  147. package/dist/serialization/types/LlmConfig.js +1 -0
  148. package/dist/serialization/types/Provider.d.ts +3 -0
  149. package/dist/serialization/types/Provider.js +3 -0
  150. package/dist/serialization/types/ProviderType.d.ts +10 -0
  151. package/dist/serialization/types/ProviderType.js +57 -0
  152. package/dist/serialization/types/ReasoningMessage.d.ts +1 -0
  153. package/dist/serialization/types/ReasoningMessage.js +1 -0
  154. package/dist/serialization/types/SystemMessage.d.ts +1 -0
  155. package/dist/serialization/types/SystemMessage.js +1 -0
  156. package/dist/serialization/types/ToolCallMessage.d.ts +1 -0
  157. package/dist/serialization/types/ToolCallMessage.js +1 -0
  158. package/dist/serialization/types/ToolReturnMessage.d.ts +1 -0
  159. package/dist/serialization/types/ToolReturnMessage.js +1 -0
  160. package/dist/serialization/types/UserMessage.d.ts +1 -0
  161. package/dist/serialization/types/UserMessage.js +1 -0
  162. package/dist/serialization/types/index.d.ts +1 -0
  163. package/dist/serialization/types/index.js +1 -0
  164. package/dist/version.d.ts +1 -1
  165. package/dist/version.js +1 -1
  166. package/package.json +1 -1
  167. package/reference.md +13 -44
  168. package/serialization/resources/providers/client/requests/ProviderCreate.d.ts +2 -0
  169. package/serialization/resources/providers/client/requests/ProviderCreate.js +2 -0
  170. package/serialization/resources/steps/client/index.d.ts +1 -1
  171. package/serialization/resources/steps/client/index.js +2 -2
  172. package/serialization/resources/steps/client/{listSteps.d.ts → list.d.ts} +1 -1
  173. package/serialization/types/AssistantMessage.d.ts +1 -0
  174. package/serialization/types/AssistantMessage.js +1 -0
  175. package/serialization/types/HiddenReasoningMessage.d.ts +1 -0
  176. package/serialization/types/HiddenReasoningMessage.js +1 -0
  177. package/serialization/types/LlmConfig.d.ts +1 -0
  178. package/serialization/types/LlmConfig.js +1 -0
  179. package/serialization/types/Provider.d.ts +3 -0
  180. package/serialization/types/Provider.js +3 -0
  181. package/serialization/types/ProviderType.d.ts +10 -0
  182. package/serialization/types/ProviderType.js +57 -0
  183. package/serialization/types/ReasoningMessage.d.ts +1 -0
  184. package/serialization/types/ReasoningMessage.js +1 -0
  185. package/serialization/types/SystemMessage.d.ts +1 -0
  186. package/serialization/types/SystemMessage.js +1 -0
  187. package/serialization/types/ToolCallMessage.d.ts +1 -0
  188. package/serialization/types/ToolCallMessage.js +1 -0
  189. package/serialization/types/ToolReturnMessage.d.ts +1 -0
  190. package/serialization/types/ToolReturnMessage.js +1 -0
  191. package/serialization/types/UserMessage.d.ts +1 -0
  192. package/serialization/types/UserMessage.js +1 -0
  193. package/serialization/types/index.d.ts +1 -0
  194. package/serialization/types/index.js +1 -0
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. /package/api/resources/{steps/client/requests/ListStepsRequest.js → models/client/requests/ModelsListRequest.js} +0 -0
  198. /package/{dist/api/resources/steps/client/requests/ListStepsRequest.js → api/resources/steps/client/requests/StepsListRequest.js} +0 -0
  199. /package/dist/serialization/resources/steps/client/{listSteps.js → list.js} +0 -0
  200. /package/serialization/resources/steps/client/{listSteps.js → list.js} +0 -0
@@ -14,6 +14,7 @@ export declare namespace ToolCallMessage {
14
14
  message_type: "tool_call_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  tool_call: ToolCallMessageToolCall.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.ToolCallMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_call_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  toolCall: core.serialization.property("tool_call", ToolCallMessageToolCall_1.ToolCallMessageToolCall),
50
51
  });
@@ -14,6 +14,7 @@ export declare namespace ToolReturnMessage {
14
14
  message_type: "tool_return_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  tool_return: string;
18
19
  status: ToolReturnMessageStatus.Raw;
19
20
  tool_call_id: string;
@@ -46,6 +46,7 @@ exports.ToolReturnMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_return_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  toolReturn: core.serialization.property("tool_return", core.serialization.string()),
50
51
  status: ToolReturnMessageStatus_1.ToolReturnMessageStatus,
51
52
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
@@ -14,6 +14,7 @@ export declare namespace UserMessage {
14
14
  message_type: "user_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  content: UserMessageContent.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.UserMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("user_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  content: UserMessageContent_1.UserMessageContent,
50
51
  });
@@ -149,6 +149,7 @@ export * from "./ParentToolRule";
149
149
  export * from "./Passage";
150
150
  export * from "./PipRequirement";
151
151
  export * from "./Provider";
152
+ export * from "./ProviderType";
152
153
  export * from "./ReasoningContent";
153
154
  export * from "./ReasoningMessageSource";
154
155
  export * from "./ReasoningMessage";
@@ -165,6 +165,7 @@ __exportStar(require("./ParentToolRule"), exports);
165
165
  __exportStar(require("./Passage"), exports);
166
166
  __exportStar(require("./PipRequirement"), exports);
167
167
  __exportStar(require("./Provider"), exports);
168
+ __exportStar(require("./ProviderType"), exports);
168
169
  __exportStar(require("./ReasoningContent"), exports);
169
170
  __exportStar(require("./ReasoningMessageSource"), exports);
170
171
  __exportStar(require("./ReasoningMessage"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.110";
1
+ export declare const SDK_VERSION = "0.1.112";
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.110";
4
+ exports.SDK_VERSION = "0.1.112";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.110",
3
+ "version": "0.1.112",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2834,7 +2834,7 @@ await client.identities.modify("identity_id");
2834
2834
 
2835
2835
  ## Models
2836
2836
 
2837
- <details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">list</a>() -> Letta.LlmConfig[]</code></summary>
2837
+ <details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">list</a>({ ...params }) -> Letta.LlmConfig[]</code></summary>
2838
2838
  <dl>
2839
2839
  <dd>
2840
2840
 
@@ -2863,6 +2863,14 @@ await client.models.list();
2863
2863
  <dl>
2864
2864
  <dd>
2865
2865
 
2866
+ **request:** `Letta.ModelsListRequest`
2867
+
2868
+ </dd>
2869
+ </dl>
2870
+
2871
+ <dl>
2872
+ <dd>
2873
+
2866
2874
  **requestOptions:** `Models.RequestOptions`
2867
2875
 
2868
2876
  </dd>
@@ -3552,6 +3560,7 @@ Create a new custom provider
3552
3560
  ```typescript
3553
3561
  await client.providers.create({
3554
3562
  name: "name",
3563
+ providerType: "anthropic",
3555
3564
  apiKey: "api_key",
3556
3565
  });
3557
3566
  ```
@@ -3980,7 +3989,7 @@ await client.runs.delete("run_id");
3980
3989
 
3981
3990
  ## Steps
3982
3991
 
3983
- <details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">listSteps</a>({ ...params }) -> Letta.Step[]</code></summary>
3992
+ <details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">list</a>({ ...params }) -> Letta.Step[]</code></summary>
3984
3993
  <dl>
3985
3994
  <dd>
3986
3995
 
@@ -4009,7 +4018,7 @@ Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)
4009
4018
  <dd>
4010
4019
 
4011
4020
  ```typescript
4012
- await client.steps.listSteps();
4021
+ await client.steps.list();
4013
4022
  ```
4014
4023
 
4015
4024
  </dd>
@@ -4025,7 +4034,7 @@ await client.steps.listSteps();
4025
4034
  <dl>
4026
4035
  <dd>
4027
4036
 
4028
- **request:** `Letta.ListStepsRequest`
4037
+ **request:** `Letta.StepsListRequest`
4029
4038
 
4030
4039
  </dd>
4031
4040
  </dl>
@@ -4107,46 +4116,6 @@ await client.steps.retrieve("step_id");
4107
4116
  </dl>
4108
4117
  </details>
4109
4118
 
4110
- <details><summary><code>client.steps.<a href="/src/api/resources/steps/client/Client.ts">list</a>() -> void</code></summary>
4111
- <dl>
4112
- <dd>
4113
-
4114
- #### 🔌 Usage
4115
-
4116
- <dl>
4117
- <dd>
4118
-
4119
- <dl>
4120
- <dd>
4121
-
4122
- ```typescript
4123
- await client.steps.list();
4124
- ```
4125
-
4126
- </dd>
4127
- </dl>
4128
- </dd>
4129
- </dl>
4130
-
4131
- #### ⚙️ Parameters
4132
-
4133
- <dl>
4134
- <dd>
4135
-
4136
- <dl>
4137
- <dd>
4138
-
4139
- **requestOptions:** `Steps.RequestOptions`
4140
-
4141
- </dd>
4142
- </dl>
4143
- </dd>
4144
- </dl>
4145
-
4146
- </dd>
4147
- </dl>
4148
- </details>
4149
-
4150
4119
  ## Tags
4151
4120
 
4152
4121
  <details><summary><code>client.tags.<a href="/src/api/resources/tags/client/Client.ts">list</a>({ ...params }) -> string[]</code></summary>
@@ -4,10 +4,12 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Letta from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { ProviderType } from "../../../../types/ProviderType";
7
8
  export declare const ProviderCreate: core.serialization.Schema<serializers.ProviderCreate.Raw, Letta.ProviderCreate>;
8
9
  export declare namespace ProviderCreate {
9
10
  interface Raw {
10
11
  name: string;
12
+ provider_type: ProviderType.Raw;
11
13
  api_key: string;
12
14
  }
13
15
  }
@@ -38,7 +38,9 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ProviderCreate = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
+ const ProviderType_1 = require("../../../../types/ProviderType");
41
42
  exports.ProviderCreate = core.serialization.object({
42
43
  name: core.serialization.string(),
44
+ providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
43
45
  apiKey: core.serialization.property("api_key", core.serialization.string()),
44
46
  });
@@ -1 +1 @@
1
- export * as listSteps from "./listSteps";
1
+ export * as list from "./list";
@@ -33,5 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.listSteps = void 0;
37
- exports.listSteps = __importStar(require("./listSteps"));
36
+ exports.list = void 0;
37
+ exports.list = __importStar(require("./list"));
@@ -5,7 +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 { Step } from "../../../types/Step";
8
- export declare const Response: core.serialization.Schema<serializers.steps.listSteps.Response.Raw, Letta.Step[]>;
8
+ export declare const Response: core.serialization.Schema<serializers.steps.list.Response.Raw, Letta.Step[]>;
9
9
  export declare namespace Response {
10
10
  type Raw = Step.Raw[];
11
11
  }
@@ -14,6 +14,7 @@ export declare namespace AssistantMessage {
14
14
  message_type: "assistant_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  content: AssistantMessageContent.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.AssistantMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("assistant_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  content: AssistantMessageContent_1.AssistantMessageContent,
50
51
  });
@@ -14,6 +14,7 @@ export declare namespace HiddenReasoningMessage {
14
14
  message_type: "hidden_reasoning_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  state: HiddenReasoningMessageState.Raw;
18
19
  hidden_reasoning?: string | null;
19
20
  }
@@ -46,6 +46,7 @@ exports.HiddenReasoningMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("hidden_reasoning_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  state: HiddenReasoningMessageState_1.HiddenReasoningMessageState,
50
51
  hiddenReasoning: core.serialization.property("hidden_reasoning", core.serialization.string().optional()),
51
52
  });
@@ -12,6 +12,7 @@ export declare namespace LlmConfig {
12
12
  model: string;
13
13
  model_endpoint_type: LlmConfigModelEndpointType.Raw;
14
14
  model_endpoint?: string | null;
15
+ provider_name?: string | null;
15
16
  model_wrapper?: string | null;
16
17
  context_window: number;
17
18
  put_inner_thoughts_in_kwargs?: boolean | null;
@@ -44,6 +44,7 @@ exports.LlmConfig = core.serialization.object({
44
44
  model: core.serialization.string(),
45
45
  modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
46
46
  modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
47
+ providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
47
48
  modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
48
49
  contextWindow: core.serialization.property("context_window", core.serialization.number()),
49
50
  putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
@@ -4,12 +4,15 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ProviderType } from "./ProviderType";
7
8
  export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
8
9
  export declare namespace Provider {
9
10
  interface Raw {
10
11
  id?: string | null;
11
12
  name: string;
13
+ provider_type: ProviderType.Raw;
12
14
  api_key?: string | null;
15
+ base_url?: string | null;
13
16
  updated_at?: string | null;
14
17
  }
15
18
  }
@@ -38,9 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Provider = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ProviderType_1 = require("./ProviderType");
41
42
  exports.Provider = core.serialization.object({
42
43
  id: core.serialization.string().optional(),
43
44
  name: core.serialization.string(),
45
+ providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
44
46
  apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
47
+ baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
45
48
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
46
49
  });
@@ -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 ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
8
+ export declare namespace ProviderType {
9
+ type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
10
+ }
@@ -0,0 +1,57 @@
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.ProviderType = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ProviderType = core.serialization.enum_([
42
+ "anthropic",
43
+ "google_ai",
44
+ "google_vertex",
45
+ "openai",
46
+ "letta",
47
+ "deepseek",
48
+ "lmstudio_openai",
49
+ "xai",
50
+ "mistral",
51
+ "ollama",
52
+ "groq",
53
+ "together",
54
+ "azure",
55
+ "vllm",
56
+ "bedrock",
57
+ ]);
@@ -14,6 +14,7 @@ export declare namespace ReasoningMessage {
14
14
  message_type: "reasoning_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  source?: ReasoningMessageSource.Raw | null;
18
19
  reasoning: string;
19
20
  signature?: string | null;
@@ -46,6 +46,7 @@ exports.ReasoningMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("reasoning_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  source: ReasoningMessageSource_1.ReasoningMessageSource.optional(),
50
51
  reasoning: core.serialization.string(),
51
52
  signature: core.serialization.string().optional(),
@@ -13,6 +13,7 @@ export declare namespace SystemMessage {
13
13
  message_type: "system_message";
14
14
  otid?: string | null;
15
15
  sender_id?: string | null;
16
+ step_id?: string | null;
16
17
  content: string;
17
18
  }
18
19
  }
@@ -45,5 +45,6 @@ exports.SystemMessage = core.serialization.object({
45
45
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("system_message")),
46
46
  otid: core.serialization.string().optional(),
47
47
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
48
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
48
49
  content: core.serialization.string(),
49
50
  });
@@ -14,6 +14,7 @@ export declare namespace ToolCallMessage {
14
14
  message_type: "tool_call_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  tool_call: ToolCallMessageToolCall.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.ToolCallMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_call_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  toolCall: core.serialization.property("tool_call", ToolCallMessageToolCall_1.ToolCallMessageToolCall),
50
51
  });
@@ -14,6 +14,7 @@ export declare namespace ToolReturnMessage {
14
14
  message_type: "tool_return_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  tool_return: string;
18
19
  status: ToolReturnMessageStatus.Raw;
19
20
  tool_call_id: string;
@@ -46,6 +46,7 @@ exports.ToolReturnMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("tool_return_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  toolReturn: core.serialization.property("tool_return", core.serialization.string()),
50
51
  status: ToolReturnMessageStatus_1.ToolReturnMessageStatus,
51
52
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string()),
@@ -14,6 +14,7 @@ export declare namespace UserMessage {
14
14
  message_type: "user_message";
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ step_id?: string | null;
17
18
  content: UserMessageContent.Raw;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.UserMessage = core.serialization.object({
46
46
  messageType: core.serialization.property("message_type", core.serialization.stringLiteral("user_message")),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
49
50
  content: UserMessageContent_1.UserMessageContent,
50
51
  });
@@ -149,6 +149,7 @@ export * from "./ParentToolRule";
149
149
  export * from "./Passage";
150
150
  export * from "./PipRequirement";
151
151
  export * from "./Provider";
152
+ export * from "./ProviderType";
152
153
  export * from "./ReasoningContent";
153
154
  export * from "./ReasoningMessageSource";
154
155
  export * from "./ReasoningMessage";
@@ -165,6 +165,7 @@ __exportStar(require("./ParentToolRule"), exports);
165
165
  __exportStar(require("./Passage"), exports);
166
166
  __exportStar(require("./PipRequirement"), exports);
167
167
  __exportStar(require("./Provider"), exports);
168
+ __exportStar(require("./ProviderType"), exports);
168
169
  __exportStar(require("./ReasoningContent"), exports);
169
170
  __exportStar(require("./ReasoningMessageSource"), exports);
170
171
  __exportStar(require("./ReasoningMessage"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.110";
1
+ export declare const SDK_VERSION = "0.1.112";
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.110";
4
+ exports.SDK_VERSION = "0.1.112";