@letta-ai/letta-client 0.1.129 → 0.1.130

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 (139) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  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/messages/types/LettaStreamingResponse.d.ts +1 -1
  9. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  10. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  11. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  12. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  13. package/api/resources/batches/client/Client.js +4 -4
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  16. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  17. package/api/resources/embeddingModels/client/Client.js +1 -1
  18. package/api/resources/groups/client/Client.js +6 -6
  19. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  20. package/api/resources/health/client/Client.js +1 -1
  21. package/api/resources/identities/client/Client.js +7 -7
  22. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  23. package/api/resources/jobs/client/Client.js +4 -4
  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 +7 -7
  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/tags/client/Client.js +1 -1
  37. package/api/resources/telemetry/client/Client.js +1 -1
  38. package/api/resources/templates/client/Client.js +1 -1
  39. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  40. package/api/resources/tools/client/Client.js +17 -17
  41. package/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
  42. package/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
  43. package/api/resources/voice/client/Client.js +1 -1
  44. package/api/types/LettaStopReason.d.ts +12 -0
  45. package/api/types/LettaStopReason.js +5 -0
  46. package/api/types/LettaStopReasonStopReason.d.ts +11 -0
  47. package/api/types/LettaStopReasonStopReason.js +13 -0
  48. package/api/types/Tool.d.ts +2 -0
  49. package/api/types/ToolCreate.d.ts +3 -0
  50. package/api/types/index.d.ts +2 -0
  51. package/api/types/index.js +2 -0
  52. package/dist/api/resources/agents/client/Client.js +10 -10
  53. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  54. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  55. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  56. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  57. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  58. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  59. package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
  60. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  61. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  62. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  63. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  64. package/dist/api/resources/batches/client/Client.js +4 -4
  65. package/dist/api/resources/blocks/client/Client.js +6 -6
  66. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  67. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  68. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  69. package/dist/api/resources/groups/client/Client.js +6 -6
  70. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  71. package/dist/api/resources/health/client/Client.js +1 -1
  72. package/dist/api/resources/identities/client/Client.js +7 -7
  73. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  74. package/dist/api/resources/jobs/client/Client.js +4 -4
  75. package/dist/api/resources/messages/client/Client.js +1 -1
  76. package/dist/api/resources/models/client/Client.js +1 -1
  77. package/dist/api/resources/projects/client/Client.js +1 -1
  78. package/dist/api/resources/providers/client/Client.js +5 -5
  79. package/dist/api/resources/runs/client/Client.js +4 -4
  80. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  81. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  82. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  83. package/dist/api/resources/sources/client/Client.js +7 -7
  84. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  85. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  86. package/dist/api/resources/steps/client/Client.js +2 -2
  87. package/dist/api/resources/tags/client/Client.js +1 -1
  88. package/dist/api/resources/telemetry/client/Client.js +1 -1
  89. package/dist/api/resources/templates/client/Client.js +1 -1
  90. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  91. package/dist/api/resources/tools/client/Client.js +17 -17
  92. package/dist/api/resources/tools/client/requests/ToolRunFromSource.d.ts +3 -0
  93. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +3 -0
  94. package/dist/api/resources/voice/client/Client.js +1 -1
  95. package/dist/api/types/LettaStopReason.d.ts +12 -0
  96. package/dist/api/types/LettaStopReason.js +5 -0
  97. package/dist/api/types/LettaStopReasonStopReason.d.ts +11 -0
  98. package/dist/api/types/LettaStopReasonStopReason.js +13 -0
  99. package/dist/api/types/Tool.d.ts +2 -0
  100. package/dist/api/types/ToolCreate.d.ts +3 -0
  101. package/dist/api/types/index.d.ts +2 -0
  102. package/dist/api/types/index.js +2 -0
  103. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
  104. package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
  105. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  106. package/dist/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  107. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  108. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  109. package/dist/serialization/types/LettaStopReason.d.ts +14 -0
  110. package/dist/serialization/types/LettaStopReason.js +45 -0
  111. package/dist/serialization/types/LettaStopReasonStopReason.d.ts +10 -0
  112. package/dist/serialization/types/LettaStopReasonStopReason.js +41 -0
  113. package/dist/serialization/types/Tool.d.ts +2 -0
  114. package/dist/serialization/types/Tool.js +2 -0
  115. package/dist/serialization/types/ToolCreate.d.ts +2 -0
  116. package/dist/serialization/types/ToolCreate.js +2 -0
  117. package/dist/serialization/types/index.d.ts +2 -0
  118. package/dist/serialization/types/index.js +2 -0
  119. package/dist/version.d.ts +1 -1
  120. package/dist/version.js +1 -1
  121. package/package.json +1 -1
  122. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
  123. package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
  124. package/serialization/resources/tools/client/requests/ToolRunFromSource.d.ts +2 -0
  125. package/serialization/resources/tools/client/requests/ToolRunFromSource.js +2 -0
  126. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  127. package/serialization/resources/tools/client/requests/ToolUpdate.js +2 -0
  128. package/serialization/types/LettaStopReason.d.ts +14 -0
  129. package/serialization/types/LettaStopReason.js +45 -0
  130. package/serialization/types/LettaStopReasonStopReason.d.ts +10 -0
  131. package/serialization/types/LettaStopReasonStopReason.js +41 -0
  132. package/serialization/types/Tool.d.ts +2 -0
  133. package/serialization/types/Tool.js +2 -0
  134. package/serialization/types/ToolCreate.d.ts +2 -0
  135. package/serialization/types/ToolCreate.js +2 -0
  136. package/serialization/types/index.d.ts +2 -0
  137. package/serialization/types/index.js +2 -0
  138. package/version.d.ts +1 -1
  139. package/version.js +1 -1
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -272,7 +272,7 @@ class Tools {
272
272
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
273
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/count"),
274
274
  method: "GET",
275
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
275
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
351
351
  method: "GET",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
352
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
353
353
  contentType: "application/json",
354
354
  queryParameters: _queryParams,
355
355
  requestType: "json",
@@ -417,7 +417,7 @@ class Tools {
417
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
418
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
419
419
  method: "POST",
420
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
420
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
421
421
  contentType: "application/json",
422
422
  requestType: "json",
423
423
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -485,7 +485,7 @@ class Tools {
485
485
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
486
486
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
487
487
  method: "PUT",
488
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
488
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
489
489
  contentType: "application/json",
490
490
  requestType: "json",
491
491
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Tools {
550
550
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
551
551
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
552
552
  method: "POST",
553
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
553
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -620,7 +620,7 @@ class Tools {
620
620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
621
621
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
622
622
  method: "POST",
623
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
623
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
624
624
  contentType: "application/json",
625
625
  requestType: "json",
626
626
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -687,7 +687,7 @@ class Tools {
687
687
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
688
688
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
689
689
  method: "GET",
690
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
690
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
691
691
  contentType: "application/json",
692
692
  requestType: "json",
693
693
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -752,7 +752,7 @@ class Tools {
752
752
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
753
753
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
754
754
  method: "GET",
755
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
755
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
756
756
  contentType: "application/json",
757
757
  requestType: "json",
758
758
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -817,7 +817,7 @@ class Tools {
817
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
818
818
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
819
819
  method: "POST",
820
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
820
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
821
821
  contentType: "application/json",
822
822
  requestType: "json",
823
823
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -883,7 +883,7 @@ class Tools {
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
885
885
  method: "GET",
886
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
886
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
887
887
  contentType: "application/json",
888
888
  requestType: "json",
889
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
953
953
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/mcp/servers"),
954
954
  method: "PUT",
955
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
955
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
956
956
  contentType: "application/json",
957
957
  requestType: "json",
958
958
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1018,7 @@ class Tools {
1018
1018
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1019
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
1020
1020
  method: "GET",
1021
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
1021
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
1022
1022
  contentType: "application/json",
1023
1023
  requestType: "json",
1024
1024
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1084,7 +1084,7 @@ class Tools {
1084
1084
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1085
1085
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1086
1086
  method: "POST",
1087
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
1087
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
1088
1088
  contentType: "application/json",
1089
1089
  requestType: "json",
1090
1090
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1149,7 +1149,7 @@ class Tools {
1149
1149
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1150
1150
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1151
1151
  method: "DELETE",
1152
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
1152
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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),
1153
1153
  contentType: "application/json",
1154
1154
  requestType: "json",
1155
1155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -25,4 +26,6 @@ export interface ToolRunFromSource {
25
26
  argsJsonSchema?: Record<string, unknown>;
26
27
  /** The JSON schema of the function (auto-generated from source_code if not provided) */
27
28
  jsonSchema?: Record<string, unknown>;
29
+ /** Optional list of pip packages required by this tool. */
30
+ pipRequirements?: Letta.PipRequirement[];
28
31
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -20,4 +21,6 @@ export interface ToolUpdate {
20
21
  argsJsonSchema?: Record<string, unknown>;
21
22
  /** The maximum number of characters in the response. */
22
23
  returnCharLimit?: number;
24
+ /** Optional list of pip packages required by this tool. */
25
+ pipRequirements?: Letta.PipRequirement[];
23
26
  }
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.129", "User-Agent": "@letta-ai/letta-client/0.1.129", "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),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.130", "User-Agent": "@letta-ai/letta-client/0.1.130", "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
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Letta provided stop reason for why agent loop ended.
7
+ */
8
+ export interface LettaStopReason {
9
+ /** The type of the message. */
10
+ messageType?: "stop_reason";
11
+ stopReason: Letta.LettaStopReasonStopReason;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type LettaStopReasonStopReason = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call";
5
+ export declare const LettaStopReasonStopReason: {
6
+ readonly EndTurn: "end_turn";
7
+ readonly Error: "error";
8
+ readonly InvalidToolCall: "invalid_tool_call";
9
+ readonly MaxSteps: "max_steps";
10
+ readonly NoToolCall: "no_tool_call";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LettaStopReasonStopReason = void 0;
7
+ exports.LettaStopReasonStopReason = {
8
+ EndTurn: "end_turn",
9
+ Error: "error",
10
+ InvalidToolCall: "invalid_tool_call",
11
+ MaxSteps: "max_steps",
12
+ NoToolCall: "no_tool_call",
13
+ };
@@ -33,6 +33,8 @@ export interface Tool {
33
33
  argsJsonSchema?: Record<string, unknown>;
34
34
  /** The maximum number of characters in the response. */
35
35
  returnCharLimit?: number;
36
+ /** Optional list of pip packages required by this tool. */
37
+ pipRequirements?: Letta.PipRequirement[];
36
38
  /** The id of the user that made this Tool. */
37
39
  createdById?: string;
38
40
  /** The id of the user that made this Tool. */
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Letta from "../index";
4
5
  export interface ToolCreate {
5
6
  /** The description of the tool. */
6
7
  description?: string;
@@ -16,4 +17,6 @@ export interface ToolCreate {
16
17
  argsJsonSchema?: Record<string, unknown>;
17
18
  /** The maximum number of characters in the response. */
18
19
  returnCharLimit?: number;
20
+ /** Optional list of pip packages required by this tool. */
21
+ pipRequirements?: Letta.PipRequirement[];
19
22
  }
@@ -238,3 +238,5 @@ export * from "./LettaMessageUnion";
238
238
  export * from "./LettaMessageContentUnion";
239
239
  export * from "./ComponentsSchemasTextContent";
240
240
  export * from "./LettaUserMessageContentUnion";
241
+ export * from "./LettaStopReasonStopReason";
242
+ export * from "./LettaStopReason";
@@ -254,3 +254,5 @@ __exportStar(require("./LettaMessageUnion"), exports);
254
254
  __exportStar(require("./LettaMessageContentUnion"), exports);
255
255
  __exportStar(require("./ComponentsSchemasTextContent"), exports);
256
256
  __exportStar(require("./LettaUserMessageContentUnion"), exports);
257
+ __exportStar(require("./LettaStopReasonStopReason"), exports);
258
+ __exportStar(require("./LettaStopReason"), exports);
@@ -10,8 +10,9 @@ import { ReasoningMessage } from "../../../../../types/ReasoningMessage";
10
10
  import { ToolCallMessage } from "../../../../../types/ToolCallMessage";
11
11
  import { ToolReturnMessage } from "../../../../../types/ToolReturnMessage";
12
12
  import { AssistantMessage } from "../../../../../types/AssistantMessage";
13
+ import { LettaStopReason } from "../../../../../types/LettaStopReason";
13
14
  import { LettaUsageStatistics } from "../../../../../types/LettaUsageStatistics";
14
15
  export declare const LettaStreamingResponse: core.serialization.Schema<serializers.agents.LettaStreamingResponse.Raw, Letta.agents.LettaStreamingResponse>;
15
16
  export declare namespace LettaStreamingResponse {
16
- type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaUsageStatistics.Raw;
17
+ type Raw = SystemMessage.Raw | UserMessage.Raw | ReasoningMessage.Raw | ToolCallMessage.Raw | ToolReturnMessage.Raw | AssistantMessage.Raw | LettaStopReason.Raw | LettaUsageStatistics.Raw;
17
18
  }
@@ -44,6 +44,7 @@ const ReasoningMessage_1 = require("../../../../../types/ReasoningMessage");
44
44
  const ToolCallMessage_1 = require("../../../../../types/ToolCallMessage");
45
45
  const ToolReturnMessage_1 = require("../../../../../types/ToolReturnMessage");
46
46
  const AssistantMessage_1 = require("../../../../../types/AssistantMessage");
47
+ const LettaStopReason_1 = require("../../../../../types/LettaStopReason");
47
48
  const LettaUsageStatistics_1 = require("../../../../../types/LettaUsageStatistics");
48
49
  exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
49
50
  SystemMessage_1.SystemMessage,
@@ -52,5 +53,6 @@ exports.LettaStreamingResponse = core.serialization.undiscriminatedUnion([
52
53
  ToolCallMessage_1.ToolCallMessage,
53
54
  ToolReturnMessage_1.ToolReturnMessage,
54
55
  AssistantMessage_1.AssistantMessage,
56
+ LettaStopReason_1.LettaStopReason,
55
57
  LettaUsageStatistics_1.LettaUsageStatistics,
56
58
  ]);
@@ -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 { PipRequirement } from "../../../../types/PipRequirement";
7
8
  export declare const ToolRunFromSource: core.serialization.Schema<serializers.ToolRunFromSource.Raw, Letta.ToolRunFromSource>;
8
9
  export declare namespace ToolRunFromSource {
9
10
  interface Raw {
@@ -14,5 +15,6 @@ export declare namespace ToolRunFromSource {
14
15
  source_type?: string | null;
15
16
  args_json_schema?: Record<string, unknown> | null;
16
17
  json_schema?: Record<string, unknown> | null;
18
+ pip_requirements?: PipRequirement.Raw[] | null;
17
19
  }
18
20
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolRunFromSource = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
+ const PipRequirement_1 = require("../../../../types/PipRequirement");
41
42
  exports.ToolRunFromSource = core.serialization.object({
42
43
  sourceCode: core.serialization.property("source_code", core.serialization.string()),
43
44
  args: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
@@ -46,4 +47,5 @@ exports.ToolRunFromSource = core.serialization.object({
46
47
  sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
47
48
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
49
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
50
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
49
51
  });
@@ -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 { PipRequirement } from "../../../../types/PipRequirement";
7
8
  export declare const ToolUpdate: core.serialization.Schema<serializers.ToolUpdate.Raw, Letta.ToolUpdate>;
8
9
  export declare namespace ToolUpdate {
9
10
  interface Raw {
@@ -14,5 +15,6 @@ export declare namespace ToolUpdate {
14
15
  json_schema?: Record<string, unknown> | null;
15
16
  args_json_schema?: Record<string, unknown> | null;
16
17
  return_char_limit?: number | null;
18
+ pip_requirements?: PipRequirement.Raw[] | null;
17
19
  }
18
20
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolUpdate = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
+ const PipRequirement_1 = require("../../../../types/PipRequirement");
41
42
  exports.ToolUpdate = core.serialization.object({
42
43
  description: core.serialization.string().optional(),
43
44
  tags: core.serialization.list(core.serialization.string()).optional(),
@@ -46,4 +47,5 @@ exports.ToolUpdate = core.serialization.object({
46
47
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
47
48
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
49
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
50
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
49
51
  });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { LettaStopReasonStopReason } from "./LettaStopReasonStopReason";
8
+ export declare const LettaStopReason: core.serialization.ObjectSchema<serializers.LettaStopReason.Raw, Letta.LettaStopReason>;
9
+ export declare namespace LettaStopReason {
10
+ interface Raw {
11
+ message_type?: "stop_reason" | null;
12
+ stop_reason: LettaStopReasonStopReason.Raw;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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.LettaStopReason = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const LettaStopReasonStopReason_1 = require("./LettaStopReasonStopReason");
42
+ exports.LettaStopReason = core.serialization.object({
43
+ messageType: core.serialization.property("message_type", core.serialization.stringLiteral("stop_reason").optional()),
44
+ stopReason: core.serialization.property("stop_reason", LettaStopReasonStopReason_1.LettaStopReasonStopReason),
45
+ });
@@ -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 LettaStopReasonStopReason: core.serialization.Schema<serializers.LettaStopReasonStopReason.Raw, Letta.LettaStopReasonStopReason>;
8
+ export declare namespace LettaStopReasonStopReason {
9
+ type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaStopReasonStopReason = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.LettaStopReasonStopReason = core.serialization.enum_(["end_turn", "error", "invalid_tool_call", "max_steps", "no_tool_call"]);
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ToolType } from "./ToolType";
8
+ import { PipRequirement } from "./PipRequirement";
8
9
  export declare const Tool: core.serialization.ObjectSchema<serializers.Tool.Raw, Letta.Tool>;
9
10
  export declare namespace Tool {
10
11
  interface Raw {
@@ -18,6 +19,7 @@ export declare namespace Tool {
18
19
  json_schema?: Record<string, unknown> | null;
19
20
  args_json_schema?: Record<string, unknown> | null;
20
21
  return_char_limit?: number | null;
22
+ pip_requirements?: PipRequirement.Raw[] | null;
21
23
  created_by_id?: string | null;
22
24
  last_updated_by_id?: string | null;
23
25
  metadata_?: Record<string, unknown> | null;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Tool = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const ToolType_1 = require("./ToolType");
42
+ const PipRequirement_1 = require("./PipRequirement");
42
43
  exports.Tool = core.serialization.object({
43
44
  id: core.serialization.string().optional(),
44
45
  toolType: core.serialization.property("tool_type", ToolType_1.ToolType.optional()),
@@ -50,6 +51,7 @@ exports.Tool = core.serialization.object({
50
51
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
51
52
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
53
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
54
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
53
55
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
54
56
  lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
55
57
  metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).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 { PipRequirement } from "./PipRequirement";
7
8
  export declare const ToolCreate: core.serialization.ObjectSchema<serializers.ToolCreate.Raw, Letta.ToolCreate>;
8
9
  export declare namespace ToolCreate {
9
10
  interface Raw {
@@ -14,5 +15,6 @@ export declare namespace ToolCreate {
14
15
  json_schema?: Record<string, unknown> | null;
15
16
  args_json_schema?: Record<string, unknown> | null;
16
17
  return_char_limit?: number | null;
18
+ pip_requirements?: PipRequirement.Raw[] | null;
17
19
  }
18
20
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolCreate = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const PipRequirement_1 = require("./PipRequirement");
41
42
  exports.ToolCreate = core.serialization.object({
42
43
  description: core.serialization.string().optional(),
43
44
  tags: core.serialization.list(core.serialization.string()).optional(),
@@ -46,4 +47,5 @@ exports.ToolCreate = core.serialization.object({
46
47
  jsonSchema: core.serialization.property("json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
47
48
  argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
48
49
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
50
+ pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
49
51
  });
@@ -238,3 +238,5 @@ export * from "./LettaMessageUnion";
238
238
  export * from "./LettaMessageContentUnion";
239
239
  export * from "./ComponentsSchemasTextContent";
240
240
  export * from "./LettaUserMessageContentUnion";
241
+ export * from "./LettaStopReasonStopReason";
242
+ export * from "./LettaStopReason";
@@ -254,3 +254,5 @@ __exportStar(require("./LettaMessageUnion"), exports);
254
254
  __exportStar(require("./LettaMessageContentUnion"), exports);
255
255
  __exportStar(require("./ComponentsSchemasTextContent"), exports);
256
256
  __exportStar(require("./LettaUserMessageContentUnion"), exports);
257
+ __exportStar(require("./LettaStopReasonStopReason"), exports);
258
+ __exportStar(require("./LettaStopReason"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.129";
1
+ export declare const SDK_VERSION = "0.1.130";
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.129";
4
+ exports.SDK_VERSION = "0.1.130";