@letta-ai/letta-client 0.1.127 → 0.1.129

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 (127) 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/passages/client/Client.js +4 -4
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/batches/client/Client.js +4 -4
  13. package/api/resources/blocks/client/Client.js +6 -6
  14. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  15. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  16. package/api/resources/embeddingModels/client/Client.js +1 -1
  17. package/api/resources/groups/client/Client.js +6 -6
  18. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  19. package/api/resources/health/client/Client.js +1 -1
  20. package/api/resources/identities/client/Client.js +7 -7
  21. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  22. package/api/resources/jobs/client/Client.js +4 -4
  23. package/api/resources/messages/client/Client.js +1 -1
  24. package/api/resources/models/client/Client.js +1 -1
  25. package/api/resources/projects/client/Client.js +1 -1
  26. package/api/resources/providers/client/Client.js +5 -5
  27. package/api/resources/runs/client/Client.js +4 -4
  28. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  29. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  30. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  31. package/api/resources/sources/client/Client.js +7 -7
  32. package/api/resources/sources/resources/files/client/Client.js +3 -3
  33. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  34. package/api/resources/steps/client/Client.js +2 -2
  35. package/api/resources/tags/client/Client.js +1 -1
  36. package/api/resources/telemetry/client/Client.js +1 -1
  37. package/api/resources/templates/client/Client.js +1 -1
  38. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  39. package/api/resources/tools/client/Client.js +17 -17
  40. package/api/resources/voice/client/Client.js +1 -1
  41. package/api/types/ChildToolRule.d.ts +2 -0
  42. package/api/types/ConditionalToolRule.d.ts +2 -0
  43. package/api/types/ContinueToolRule.d.ts +2 -0
  44. package/api/types/InitToolRule.d.ts +2 -0
  45. package/api/types/MaxCountPerStepToolRule.d.ts +2 -0
  46. package/api/types/ParentToolRule.d.ts +2 -0
  47. package/api/types/TerminalToolRule.d.ts +2 -0
  48. package/dist/api/resources/agents/client/Client.js +10 -10
  49. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  50. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  51. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  52. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  53. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  54. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  55. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  56. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  57. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  58. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  59. package/dist/api/resources/batches/client/Client.js +4 -4
  60. package/dist/api/resources/blocks/client/Client.js +6 -6
  61. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  62. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  63. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  64. package/dist/api/resources/groups/client/Client.js +6 -6
  65. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  66. package/dist/api/resources/health/client/Client.js +1 -1
  67. package/dist/api/resources/identities/client/Client.js +7 -7
  68. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  69. package/dist/api/resources/jobs/client/Client.js +4 -4
  70. package/dist/api/resources/messages/client/Client.js +1 -1
  71. package/dist/api/resources/models/client/Client.js +1 -1
  72. package/dist/api/resources/projects/client/Client.js +1 -1
  73. package/dist/api/resources/providers/client/Client.js +5 -5
  74. package/dist/api/resources/runs/client/Client.js +4 -4
  75. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  76. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  77. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  78. package/dist/api/resources/sources/client/Client.js +7 -7
  79. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  80. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  81. package/dist/api/resources/steps/client/Client.js +2 -2
  82. package/dist/api/resources/tags/client/Client.js +1 -1
  83. package/dist/api/resources/telemetry/client/Client.js +1 -1
  84. package/dist/api/resources/templates/client/Client.js +1 -1
  85. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  86. package/dist/api/resources/tools/client/Client.js +17 -17
  87. package/dist/api/resources/voice/client/Client.js +1 -1
  88. package/dist/api/types/ChildToolRule.d.ts +2 -0
  89. package/dist/api/types/ConditionalToolRule.d.ts +2 -0
  90. package/dist/api/types/ContinueToolRule.d.ts +2 -0
  91. package/dist/api/types/InitToolRule.d.ts +2 -0
  92. package/dist/api/types/MaxCountPerStepToolRule.d.ts +2 -0
  93. package/dist/api/types/ParentToolRule.d.ts +2 -0
  94. package/dist/api/types/TerminalToolRule.d.ts +2 -0
  95. package/dist/serialization/types/ChildToolRule.d.ts +1 -0
  96. package/dist/serialization/types/ChildToolRule.js +1 -0
  97. package/dist/serialization/types/ConditionalToolRule.d.ts +1 -0
  98. package/dist/serialization/types/ConditionalToolRule.js +1 -0
  99. package/dist/serialization/types/ContinueToolRule.d.ts +1 -0
  100. package/dist/serialization/types/ContinueToolRule.js +1 -0
  101. package/dist/serialization/types/InitToolRule.d.ts +1 -0
  102. package/dist/serialization/types/InitToolRule.js +1 -0
  103. package/dist/serialization/types/MaxCountPerStepToolRule.d.ts +1 -0
  104. package/dist/serialization/types/MaxCountPerStepToolRule.js +1 -0
  105. package/dist/serialization/types/ParentToolRule.d.ts +1 -0
  106. package/dist/serialization/types/ParentToolRule.js +1 -0
  107. package/dist/serialization/types/TerminalToolRule.d.ts +1 -0
  108. package/dist/serialization/types/TerminalToolRule.js +1 -0
  109. package/dist/version.d.ts +1 -1
  110. package/dist/version.js +1 -1
  111. package/package.json +1 -1
  112. package/serialization/types/ChildToolRule.d.ts +1 -0
  113. package/serialization/types/ChildToolRule.js +1 -0
  114. package/serialization/types/ConditionalToolRule.d.ts +1 -0
  115. package/serialization/types/ConditionalToolRule.js +1 -0
  116. package/serialization/types/ContinueToolRule.d.ts +1 -0
  117. package/serialization/types/ContinueToolRule.js +1 -0
  118. package/serialization/types/InitToolRule.d.ts +1 -0
  119. package/serialization/types/InitToolRule.js +1 -0
  120. package/serialization/types/MaxCountPerStepToolRule.d.ts +1 -0
  121. package/serialization/types/MaxCountPerStepToolRule.js +1 -0
  122. package/serialization/types/ParentToolRule.d.ts +1 -0
  123. package/serialization/types/ParentToolRule.js +1 -0
  124. package/serialization/types/TerminalToolRule.d.ts +1 -0
  125. package/serialization/types/TerminalToolRule.js +1 -0
  126. package/version.d.ts +1 -1
  127. 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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
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,
@@ -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.127", "User-Agent": "@letta-ai/letta-client/0.1.127", "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.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),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -8,6 +8,8 @@ export interface ChildToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "constrain_child_tools";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. */
12
+ promptTemplate?: string;
11
13
  /** The children tools that can be invoked. */
12
14
  children: string[];
13
15
  }
@@ -8,6 +8,8 @@ export interface ConditionalToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "conditional";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. */
12
+ promptTemplate?: string;
11
13
  /** The default child tool to be called. If None, any tool can be called. */
12
14
  defaultChild?: string;
13
15
  /** The output case to check for mapping */
@@ -8,4 +8,6 @@ export interface ContinueToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "continue_loop";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. */
12
+ promptTemplate?: string;
11
13
  }
@@ -8,4 +8,6 @@ export interface InitToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "run_first";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes. */
12
+ promptTemplate?: string;
11
13
  }
@@ -8,6 +8,8 @@ export interface MaxCountPerStepToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "max_count_per_step";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. */
12
+ promptTemplate?: string;
11
13
  /** The max limit for the total number of times this tool can be invoked in a single step. */
12
14
  maxCountLimit: number;
13
15
  }
@@ -8,6 +8,8 @@ export interface ParentToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "parent_last_tool";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. */
12
+ promptTemplate?: string;
11
13
  /** The children tools that can be invoked. */
12
14
  children: string[];
13
15
  }
@@ -8,4 +8,6 @@ export interface TerminalToolRule {
8
8
  /** The name of the tool. Must exist in the database for the user's organization. */
9
9
  toolName: string;
10
10
  type: "exit_loop";
11
+ /** Optional Jinja2 template for generating agent prompt about this tool rule. */
12
+ promptTemplate?: string;
11
13
  }
@@ -9,6 +9,7 @@ export declare namespace ChildToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "constrain_child_tools";
12
+ prompt_template?: string | null;
12
13
  children: string[];
13
14
  }
14
15
  }
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.ChildToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("constrain_child_tools"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  children: core.serialization.list(core.serialization.string()),
45
46
  });
@@ -9,6 +9,7 @@ export declare namespace ConditionalToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "conditional";
12
+ prompt_template?: string | null;
12
13
  default_child?: string | null;
13
14
  child_output_mapping: Record<string, string>;
14
15
  require_output_mapping?: boolean | null;
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  exports.ConditionalToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("conditional"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  defaultChild: core.serialization.property("default_child", core.serialization.string().optional()),
45
46
  childOutputMapping: core.serialization.property("child_output_mapping", core.serialization.record(core.serialization.string(), core.serialization.string())),
46
47
  requireOutputMapping: core.serialization.property("require_output_mapping", core.serialization.boolean().optional()),
@@ -9,5 +9,6 @@ export declare namespace ContinueToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "continue_loop";
12
+ prompt_template?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.ContinueToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("continue_loop"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  });
@@ -9,5 +9,6 @@ export declare namespace InitToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "run_first";
12
+ prompt_template?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.InitToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("run_first"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  });
@@ -9,6 +9,7 @@ export declare namespace MaxCountPerStepToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "max_count_per_step";
12
+ prompt_template?: string | null;
12
13
  max_count_limit: number;
13
14
  }
14
15
  }
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.MaxCountPerStepToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("max_count_per_step"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  maxCountLimit: core.serialization.property("max_count_limit", core.serialization.number()),
45
46
  });
@@ -9,6 +9,7 @@ export declare namespace ParentToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "parent_last_tool";
12
+ prompt_template?: string | null;
12
13
  children: string[];
13
14
  }
14
15
  }
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.ParentToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("parent_last_tool"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  children: core.serialization.list(core.serialization.string()),
45
46
  });
@@ -9,5 +9,6 @@ export declare namespace TerminalToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "exit_loop";
12
+ prompt_template?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.TerminalToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("exit_loop"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.127";
1
+ export declare const SDK_VERSION = "0.1.129";
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.127";
4
+ exports.SDK_VERSION = "0.1.129";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.127",
3
+ "version": "0.1.129",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -9,6 +9,7 @@ export declare namespace ChildToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "constrain_child_tools";
12
+ prompt_template?: string | null;
12
13
  children: string[];
13
14
  }
14
15
  }
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.ChildToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("constrain_child_tools"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  children: core.serialization.list(core.serialization.string()),
45
46
  });
@@ -9,6 +9,7 @@ export declare namespace ConditionalToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "conditional";
12
+ prompt_template?: string | null;
12
13
  default_child?: string | null;
13
14
  child_output_mapping: Record<string, string>;
14
15
  require_output_mapping?: boolean | null;
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  exports.ConditionalToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("conditional"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  defaultChild: core.serialization.property("default_child", core.serialization.string().optional()),
45
46
  childOutputMapping: core.serialization.property("child_output_mapping", core.serialization.record(core.serialization.string(), core.serialization.string())),
46
47
  requireOutputMapping: core.serialization.property("require_output_mapping", core.serialization.boolean().optional()),
@@ -9,5 +9,6 @@ export declare namespace ContinueToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "continue_loop";
12
+ prompt_template?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.ContinueToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("continue_loop"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  });
@@ -9,5 +9,6 @@ export declare namespace InitToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "run_first";
12
+ prompt_template?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.InitToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("run_first"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  });
@@ -9,6 +9,7 @@ export declare namespace MaxCountPerStepToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "max_count_per_step";
12
+ prompt_template?: string | null;
12
13
  max_count_limit: number;
13
14
  }
14
15
  }
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.MaxCountPerStepToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("max_count_per_step"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  maxCountLimit: core.serialization.property("max_count_limit", core.serialization.number()),
45
46
  });
@@ -9,6 +9,7 @@ export declare namespace ParentToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "parent_last_tool";
12
+ prompt_template?: string | null;
12
13
  children: string[];
13
14
  }
14
15
  }
@@ -41,5 +41,6 @@ const core = __importStar(require("../../core"));
41
41
  exports.ParentToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("parent_last_tool"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  children: core.serialization.list(core.serialization.string()),
45
46
  });
@@ -9,5 +9,6 @@ export declare namespace TerminalToolRule {
9
9
  interface Raw {
10
10
  tool_name: string;
11
11
  type: "exit_loop";
12
+ prompt_template?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.TerminalToolRule = core.serialization.object({
42
42
  toolName: core.serialization.property("tool_name", core.serialization.string()),
43
43
  type: core.serialization.stringLiteral("exit_loop"),
44
+ promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
44
45
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.127";
1
+ export declare const SDK_VERSION = "0.1.129";
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.127";
4
+ exports.SDK_VERSION = "0.1.129";