@letta-ai/letta-client 0.1.192 → 0.1.194

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 (146) hide show
  1. package/api/resources/agents/client/Client.js +14 -11
  2. package/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +3 -0
  3. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/files/client/Client.js +4 -4
  7. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  8. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  11. package/api/resources/agents/resources/passages/client/Client.d.ts +2 -9
  12. package/api/resources/agents/resources/passages/client/Client.js +14 -42
  13. package/api/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +4 -0
  14. package/api/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
  15. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  16. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  17. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  18. package/api/resources/batches/client/Client.js +4 -4
  19. package/api/resources/blocks/client/Client.js +6 -6
  20. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  21. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  22. package/api/resources/embeddingModels/client/Client.js +1 -1
  23. package/api/resources/folders/client/Client.js +9 -9
  24. package/api/resources/folders/resources/files/client/Client.js +3 -3
  25. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  26. package/api/resources/groups/client/Client.js +6 -6
  27. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  28. package/api/resources/health/client/Client.js +1 -1
  29. package/api/resources/identities/client/Client.js +7 -7
  30. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  31. package/api/resources/jobs/client/Client.js +5 -5
  32. package/api/resources/messages/client/Client.js +1 -1
  33. package/api/resources/models/client/Client.d.ts +8 -0
  34. package/api/resources/models/client/Client.js +52 -1
  35. package/api/resources/projects/client/Client.js +1 -1
  36. package/api/resources/providers/client/Client.js +6 -6
  37. package/api/resources/runs/client/Client.js +5 -5
  38. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  39. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  40. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  41. package/api/resources/sources/client/Client.js +10 -10
  42. package/api/resources/sources/resources/files/client/Client.js +3 -3
  43. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  44. package/api/resources/steps/client/Client.js +3 -3
  45. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  46. package/api/resources/tags/client/Client.js +1 -1
  47. package/api/resources/telemetry/client/Client.js +1 -1
  48. package/api/resources/templates/client/Client.js +8 -8
  49. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  50. package/api/resources/tools/client/Client.js +20 -20
  51. package/api/resources/voice/client/Client.js +1 -1
  52. package/api/types/LlmConfig.d.ts +2 -0
  53. package/api/types/StopReasonType.d.ts +2 -1
  54. package/api/types/StopReasonType.js +1 -0
  55. package/dist/api/resources/agents/client/Client.js +14 -11
  56. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +3 -0
  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/files/client/Client.js +4 -4
  61. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  62. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  65. package/dist/api/resources/agents/resources/passages/client/Client.d.ts +2 -9
  66. package/dist/api/resources/agents/resources/passages/client/Client.js +14 -42
  67. package/dist/api/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +4 -0
  68. package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
  69. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  70. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  71. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  72. package/dist/api/resources/batches/client/Client.js +4 -4
  73. package/dist/api/resources/blocks/client/Client.js +6 -6
  74. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  75. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  76. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  77. package/dist/api/resources/folders/client/Client.js +9 -9
  78. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  79. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  80. package/dist/api/resources/groups/client/Client.js +6 -6
  81. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  82. package/dist/api/resources/health/client/Client.js +1 -1
  83. package/dist/api/resources/identities/client/Client.js +7 -7
  84. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  85. package/dist/api/resources/jobs/client/Client.js +5 -5
  86. package/dist/api/resources/messages/client/Client.js +1 -1
  87. package/dist/api/resources/models/client/Client.d.ts +8 -0
  88. package/dist/api/resources/models/client/Client.js +52 -1
  89. package/dist/api/resources/projects/client/Client.js +1 -1
  90. package/dist/api/resources/providers/client/Client.js +6 -6
  91. package/dist/api/resources/runs/client/Client.js +5 -5
  92. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  93. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  94. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  95. package/dist/api/resources/sources/client/Client.js +10 -10
  96. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  97. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  98. package/dist/api/resources/steps/client/Client.js +3 -3
  99. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  100. package/dist/api/resources/tags/client/Client.js +1 -1
  101. package/dist/api/resources/telemetry/client/Client.js +1 -1
  102. package/dist/api/resources/templates/client/Client.js +8 -8
  103. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  104. package/dist/api/resources/tools/client/Client.js +20 -20
  105. package/dist/api/resources/voice/client/Client.js +1 -1
  106. package/dist/api/types/LlmConfig.d.ts +2 -0
  107. package/dist/api/types/StopReasonType.d.ts +2 -1
  108. package/dist/api/types/StopReasonType.js +1 -0
  109. package/dist/serialization/resources/agents/resources/passages/client/index.d.ts +0 -1
  110. package/dist/serialization/resources/agents/resources/passages/client/index.js +1 -2
  111. package/dist/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +2 -0
  112. package/dist/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.js +2 -0
  113. package/dist/serialization/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
  114. package/dist/serialization/resources/agents/resources/passages/client/requests/index.js +1 -3
  115. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  116. package/dist/serialization/types/LlmConfig.js +1 -0
  117. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  118. package/dist/serialization/types/StopReasonType.js +1 -0
  119. package/dist/version.d.ts +1 -1
  120. package/dist/version.js +1 -1
  121. package/package.json +1 -1
  122. package/reference.md +42 -27
  123. package/serialization/resources/agents/resources/passages/client/index.d.ts +0 -1
  124. package/serialization/resources/agents/resources/passages/client/index.js +1 -2
  125. package/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.d.ts +2 -0
  126. package/serialization/resources/agents/resources/passages/client/requests/CreateArchivalMemory.js +2 -0
  127. package/serialization/resources/agents/resources/passages/client/requests/index.d.ts +0 -1
  128. package/serialization/resources/agents/resources/passages/client/requests/index.js +1 -3
  129. package/serialization/types/LlmConfig.d.ts +1 -0
  130. package/serialization/types/LlmConfig.js +1 -0
  131. package/serialization/types/StopReasonType.d.ts +1 -1
  132. package/serialization/types/StopReasonType.js +1 -0
  133. package/version.d.ts +1 -1
  134. package/version.js +1 -1
  135. package/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -40
  136. package/api/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -5
  137. package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -40
  138. package/dist/api/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -5
  139. package/dist/serialization/resources/agents/resources/passages/client/modify.d.ts +0 -11
  140. package/dist/serialization/resources/agents/resources/passages/client/modify.js +0 -42
  141. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -26
  142. package/dist/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -57
  143. package/serialization/resources/agents/resources/passages/client/modify.d.ts +0 -11
  144. package/serialization/resources/agents/resources/passages/client/modify.js +0 -42
  145. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.d.ts +0 -26
  146. package/serialization/resources/agents/resources/passages/client/requests/PassageUpdate.js +0 -57
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -307,7 +307,7 @@ class Tools {
307
307
  method: "GET",
308
308
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
309
309
  ? yield core.Supplier.get(this._options.project)
310
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
311
  contentType: "application/json",
312
312
  queryParameters: _queryParams,
313
313
  requestType: "json",
@@ -395,7 +395,7 @@ class Tools {
395
395
  method: "GET",
396
396
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
397
397
  ? yield core.Supplier.get(this._options.project)
398
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
398
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
399
399
  contentType: "application/json",
400
400
  queryParameters: _queryParams,
401
401
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "POST",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "PUT",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
556
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -629,7 +629,7 @@ class Tools {
629
629
  method: "POST",
630
630
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
631
631
  ? yield core.Supplier.get(this._options.project)
632
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
632
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -710,7 +710,7 @@ class Tools {
710
710
  method: "POST",
711
711
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
712
712
  ? yield core.Supplier.get(this._options.project)
713
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
713
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
714
714
  contentType: "application/json",
715
715
  requestType: "json",
716
716
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -788,7 +788,7 @@ class Tools {
788
788
  method: "GET",
789
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
790
790
  ? yield core.Supplier.get(this._options.project)
791
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
792
792
  contentType: "application/json",
793
793
  requestType: "json",
794
794
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -864,7 +864,7 @@ class Tools {
864
864
  method: "GET",
865
865
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
866
866
  ? yield core.Supplier.get(this._options.project)
867
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
867
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
868
868
  contentType: "application/json",
869
869
  requestType: "json",
870
870
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -940,7 +940,7 @@ class Tools {
940
940
  method: "POST",
941
941
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
942
942
  ? yield core.Supplier.get(this._options.project)
943
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
943
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
944
944
  contentType: "application/json",
945
945
  requestType: "json",
946
946
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1017,7 +1017,7 @@ class Tools {
1017
1017
  method: "GET",
1018
1018
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1019
1019
  ? yield core.Supplier.get(this._options.project)
1020
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1020
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1021
1021
  contentType: "application/json",
1022
1022
  requestType: "json",
1023
1023
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1097,7 +1097,7 @@ class Tools {
1097
1097
  method: "PUT",
1098
1098
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1099
1099
  ? yield core.Supplier.get(this._options.project)
1100
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1100
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1101
1101
  contentType: "application/json",
1102
1102
  requestType: "json",
1103
1103
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1174,7 +1174,7 @@ class Tools {
1174
1174
  method: "GET",
1175
1175
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1176
1176
  ? yield core.Supplier.get(this._options.project)
1177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1178
1178
  contentType: "application/json",
1179
1179
  requestType: "json",
1180
1180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "POST",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1254
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1327,7 +1327,7 @@ class Tools {
1327
1327
  method: "DELETE",
1328
1328
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1329
1329
  ? yield core.Supplier.get(this._options.project)
1330
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1330
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1331
1331
  contentType: "application/json",
1332
1332
  requestType: "json",
1333
1333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1404,7 +1404,7 @@ class Tools {
1404
1404
  method: "PATCH",
1405
1405
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1406
1406
  ? yield core.Supplier.get(this._options.project)
1407
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1407
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1408
1408
  contentType: "application/json",
1409
1409
  requestType: "json",
1410
1410
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1486,7 +1486,7 @@ class Tools {
1486
1486
  method: "POST",
1487
1487
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1488
1488
  ? yield core.Supplier.get(this._options.project)
1489
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1489
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1490
1490
  contentType: "application/json",
1491
1491
  requestType: "json",
1492
1492
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1547,7 +1547,7 @@ class Tools {
1547
1547
  method: "POST",
1548
1548
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1549
1549
  ? yield core.Supplier.get(this._options.project)
1550
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1550
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1551
1551
  contentType: "application/json",
1552
1552
  requestType: "json",
1553
1553
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.192", "User-Agent": "@letta-ai/letta-client/0.1.192", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.194", "User-Agent": "@letta-ai/letta-client/0.1.194", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -40,4 +40,6 @@ export interface LlmConfig {
40
40
  compatibilityType?: Letta.LlmConfigCompatibilityType;
41
41
  /** Soft control for how verbose model output should be, used for GPT-5 models. */
42
42
  verbosity?: Letta.LlmConfigVerbosity;
43
+ /** The cost tier for the model (cloud only). */
44
+ tier?: string;
43
45
  }
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type StopReasonType = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
4
+ export type StopReasonType = "end_turn" | "error" | "invalid_llm_response" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
5
5
  export declare const StopReasonType: {
6
6
  readonly EndTurn: "end_turn";
7
7
  readonly Error: "error";
8
+ readonly InvalidLlmResponse: "invalid_llm_response";
8
9
  readonly InvalidToolCall: "invalid_tool_call";
9
10
  readonly MaxSteps: "max_steps";
10
11
  readonly NoToolCall: "no_tool_call";
@@ -7,6 +7,7 @@ exports.StopReasonType = void 0;
7
7
  exports.StopReasonType = {
8
8
  EndTurn: "end_turn",
9
9
  Error: "error",
10
+ InvalidLlmResponse: "invalid_llm_response",
10
11
  InvalidToolCall: "invalid_tool_call",
11
12
  MaxSteps: "max_steps",
12
13
  NoToolCall: "no_tool_call",
@@ -1,4 +1,3 @@
1
1
  export * as list from "./list";
2
2
  export * as create from "./create";
3
- export * as modify from "./modify";
4
3
  export * from "./requests";
@@ -36,8 +36,7 @@ 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.modify = exports.create = exports.list = void 0;
39
+ exports.create = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.create = __importStar(require("./create"));
42
- exports.modify = __importStar(require("./modify"));
43
42
  __exportStar(require("./requests"), exports);
@@ -8,5 +8,7 @@ export declare const CreateArchivalMemory: core.serialization.Schema<serializers
8
8
  export declare namespace CreateArchivalMemory {
9
9
  interface Raw {
10
10
  text: string;
11
+ tags?: string[] | null;
12
+ created_at?: string | null;
11
13
  }
12
14
  }
@@ -40,4 +40,6 @@ exports.CreateArchivalMemory = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  exports.CreateArchivalMemory = core.serialization.object({
42
42
  text: core.serialization.string(),
43
+ tags: core.serialization.list(core.serialization.string()).optional(),
44
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
43
45
  });
@@ -1,2 +1 @@
1
1
  export { CreateArchivalMemory } from "./CreateArchivalMemory";
2
- export { PassageUpdate } from "./PassageUpdate";
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PassageUpdate = exports.CreateArchivalMemory = void 0;
3
+ exports.CreateArchivalMemory = void 0;
4
4
  var CreateArchivalMemory_1 = require("./CreateArchivalMemory");
5
5
  Object.defineProperty(exports, "CreateArchivalMemory", { enumerable: true, get: function () { return CreateArchivalMemory_1.CreateArchivalMemory; } });
6
- var PassageUpdate_1 = require("./PassageUpdate");
7
- Object.defineProperty(exports, "PassageUpdate", { enumerable: true, get: function () { return PassageUpdate_1.PassageUpdate; } });
@@ -29,5 +29,6 @@ export declare namespace LlmConfig {
29
29
  frequency_penalty?: number | null;
30
30
  compatibility_type?: LlmConfigCompatibilityType.Raw | null;
31
31
  verbosity?: LlmConfigVerbosity.Raw | null;
32
+ tier?: string | null;
32
33
  }
33
34
  }
@@ -61,4 +61,5 @@ exports.LlmConfig = core.serialization.object({
61
61
  frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()),
62
62
  compatibilityType: core.serialization.property("compatibility_type", LlmConfigCompatibilityType_1.LlmConfigCompatibilityType.optional()),
63
63
  verbosity: LlmConfigVerbosity_1.LlmConfigVerbosity.optional(),
64
+ tier: core.serialization.string().optional(),
64
65
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const StopReasonType: core.serialization.Schema<serializers.StopReasonType.Raw, Letta.StopReasonType>;
8
8
  export declare namespace StopReasonType {
9
- type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
9
+ type Raw = "end_turn" | "error" | "invalid_llm_response" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
10
10
  }
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  exports.StopReasonType = core.serialization.enum_([
42
42
  "end_turn",
43
43
  "error",
44
+ "invalid_llm_response",
44
45
  "invalid_tool_call",
45
46
  "max_steps",
46
47
  "no_tool_call",
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.192";
1
+ export declare const SDK_VERSION = "0.1.194";
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.192";
4
+ exports.SDK_VERSION = "0.1.194";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.192",
3
+ "version": "0.1.194",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -4110,6 +4110,46 @@ await client.models.list();
4110
4110
  </dl>
4111
4111
  </details>
4112
4112
 
4113
+ <details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listembeddingmodels</a>() -> void</code></summary>
4114
+ <dl>
4115
+ <dd>
4116
+
4117
+ #### 🔌 Usage
4118
+
4119
+ <dl>
4120
+ <dd>
4121
+
4122
+ <dl>
4123
+ <dd>
4124
+
4125
+ ```typescript
4126
+ await client.models.listembeddingmodels();
4127
+ ```
4128
+
4129
+ </dd>
4130
+ </dl>
4131
+ </dd>
4132
+ </dl>
4133
+
4134
+ #### ⚙️ Parameters
4135
+
4136
+ <dl>
4137
+ <dd>
4138
+
4139
+ <dl>
4140
+ <dd>
4141
+
4142
+ **requestOptions:** `Models.RequestOptions`
4143
+
4144
+ </dd>
4145
+ </dl>
4146
+ </dd>
4147
+ </dl>
4148
+
4149
+ </dd>
4150
+ </dl>
4151
+ </details>
4152
+
4113
4153
  ## EmbeddingModels
4114
4154
 
4115
4155
  <details><summary><code>client.embeddingModels.<a href="/src/api/resources/embeddingModels/client/Client.ts">list</a>() -> Letta.EmbeddingConfig[]</code></summary>
@@ -8695,25 +8735,10 @@ await client.agents.passages.delete("agent_id", "memory_id");
8695
8735
  </dl>
8696
8736
  </details>
8697
8737
 
8698
- <details><summary><code>client.agents.passages.<a href="/src/api/resources/agents/resources/passages/client/Client.ts">modify</a>(agentId, memoryId, { ...params }) -> Letta.Passage[]</code></summary>
8699
- <dl>
8700
- <dd>
8701
-
8702
- #### 📝 Description
8703
-
8704
- <dl>
8705
- <dd>
8706
-
8738
+ <details><summary><code>client.agents.passages.<a href="/src/api/resources/agents/resources/passages/client/Client.ts">modify</a>(agentId, memoryId) -> void</code></summary>
8707
8739
  <dl>
8708
8740
  <dd>
8709
8741
 
8710
- Modify a memory in the agent's archival memory store.
8711
-
8712
- </dd>
8713
- </dl>
8714
- </dd>
8715
- </dl>
8716
-
8717
8742
  #### 🔌 Usage
8718
8743
 
8719
8744
  <dl>
@@ -8723,9 +8748,7 @@ Modify a memory in the agent's archival memory store.
8723
8748
  <dd>
8724
8749
 
8725
8750
  ```typescript
8726
- await client.agents.passages.modify("agent_id", "memory_id", {
8727
- id: "id",
8728
- });
8751
+ await client.agents.passages.modify("agent_id", "memory_id");
8729
8752
  ```
8730
8753
 
8731
8754
  </dd>
@@ -8757,14 +8780,6 @@ await client.agents.passages.modify("agent_id", "memory_id", {
8757
8780
  <dl>
8758
8781
  <dd>
8759
8782
 
8760
- **request:** `Letta.agents.PassageUpdate`
8761
-
8762
- </dd>
8763
- </dl>
8764
-
8765
- <dl>
8766
- <dd>
8767
-
8768
8783
  **requestOptions:** `Passages.RequestOptions`
8769
8784
 
8770
8785
  </dd>
@@ -1,4 +1,3 @@
1
1
  export * as list from "./list";
2
2
  export * as create from "./create";
3
- export * as modify from "./modify";
4
3
  export * from "./requests";
@@ -36,8 +36,7 @@ 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.modify = exports.create = exports.list = void 0;
39
+ exports.create = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.create = __importStar(require("./create"));
42
- exports.modify = __importStar(require("./modify"));
43
42
  __exportStar(require("./requests"), exports);
@@ -8,5 +8,7 @@ export declare const CreateArchivalMemory: core.serialization.Schema<serializers
8
8
  export declare namespace CreateArchivalMemory {
9
9
  interface Raw {
10
10
  text: string;
11
+ tags?: string[] | null;
12
+ created_at?: string | null;
11
13
  }
12
14
  }
@@ -40,4 +40,6 @@ exports.CreateArchivalMemory = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  exports.CreateArchivalMemory = core.serialization.object({
42
42
  text: core.serialization.string(),
43
+ tags: core.serialization.list(core.serialization.string()).optional(),
44
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
43
45
  });
@@ -1,2 +1 @@
1
1
  export { CreateArchivalMemory } from "./CreateArchivalMemory";
2
- export { PassageUpdate } from "./PassageUpdate";
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PassageUpdate = exports.CreateArchivalMemory = void 0;
3
+ exports.CreateArchivalMemory = void 0;
4
4
  var CreateArchivalMemory_1 = require("./CreateArchivalMemory");
5
5
  Object.defineProperty(exports, "CreateArchivalMemory", { enumerable: true, get: function () { return CreateArchivalMemory_1.CreateArchivalMemory; } });
6
- var PassageUpdate_1 = require("./PassageUpdate");
7
- Object.defineProperty(exports, "PassageUpdate", { enumerable: true, get: function () { return PassageUpdate_1.PassageUpdate; } });
@@ -29,5 +29,6 @@ export declare namespace LlmConfig {
29
29
  frequency_penalty?: number | null;
30
30
  compatibility_type?: LlmConfigCompatibilityType.Raw | null;
31
31
  verbosity?: LlmConfigVerbosity.Raw | null;
32
+ tier?: string | null;
32
33
  }
33
34
  }
@@ -61,4 +61,5 @@ exports.LlmConfig = core.serialization.object({
61
61
  frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()),
62
62
  compatibilityType: core.serialization.property("compatibility_type", LlmConfigCompatibilityType_1.LlmConfigCompatibilityType.optional()),
63
63
  verbosity: LlmConfigVerbosity_1.LlmConfigVerbosity.optional(),
64
+ tier: core.serialization.string().optional(),
64
65
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const StopReasonType: core.serialization.Schema<serializers.StopReasonType.Raw, Letta.StopReasonType>;
8
8
  export declare namespace StopReasonType {
9
- type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
9
+ type Raw = "end_turn" | "error" | "invalid_llm_response" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
10
10
  }
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  exports.StopReasonType = core.serialization.enum_([
42
42
  "end_turn",
43
43
  "error",
44
+ "invalid_llm_response",
44
45
  "invalid_tool_call",
45
46
  "max_steps",
46
47
  "no_tool_call",
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.192";
1
+ export declare const SDK_VERSION = "0.1.194";
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.192";
4
+ exports.SDK_VERSION = "0.1.194";
@@ -1,40 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as Letta from "../../../../../../index";
5
- /**
6
- * @example
7
- * {
8
- * id: "id"
9
- * }
10
- */
11
- export interface PassageUpdate {
12
- /** The id of the user that made this object. */
13
- createdById?: string;
14
- /** The id of the user that made this object. */
15
- lastUpdatedById?: string;
16
- /** The timestamp when the object was created. */
17
- createdAt?: Date;
18
- /** The timestamp when the object was last updated. */
19
- updatedAt?: Date;
20
- /** Whether this passage is deleted or not. */
21
- isDeleted?: boolean;
22
- /** The unique identifier of the archive containing this passage. */
23
- archiveId?: string;
24
- /** The data source of the passage. */
25
- sourceId?: string;
26
- /** The unique identifier of the file associated with the passage. */
27
- fileId?: string;
28
- /** The name of the file (only for source passages). */
29
- fileName?: string;
30
- /** The metadata of the passage. */
31
- metadata?: Record<string, unknown>;
32
- /** The text of the passage. */
33
- text?: string;
34
- /** The embedding of the passage. */
35
- embedding?: number[];
36
- /** The embedding configuration used by the passage. */
37
- embeddingConfig?: Letta.EmbeddingConfig;
38
- /** The unique identifier of the passage. */
39
- id: string;
40
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });