@letta-ai/letta-client 0.1.204 → 0.1.205

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 (155) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +4 -4
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  10. package/api/resources/agents/resources/passages/client/Client.js +7 -7
  11. package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +4 -4
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  15. package/api/resources/batches/client/Client.js +4 -4
  16. package/api/resources/blocks/client/Client.js +6 -6
  17. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  18. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  19. package/api/resources/embeddingModels/client/Client.js +1 -1
  20. package/api/resources/folders/client/Client.js +9 -9
  21. package/api/resources/folders/resources/files/client/Client.js +3 -3
  22. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  23. package/api/resources/groups/client/Client.js +6 -6
  24. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  25. package/api/resources/health/client/Client.js +1 -1
  26. package/api/resources/identities/client/Client.js +7 -7
  27. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  28. package/api/resources/jobs/client/Client.js +5 -5
  29. package/api/resources/messages/client/Client.js +1 -1
  30. package/api/resources/models/client/Client.js +2 -2
  31. package/api/resources/projects/client/Client.js +1 -1
  32. package/api/resources/providers/client/Client.js +6 -6
  33. package/api/resources/runs/client/Client.js +5 -5
  34. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  35. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  36. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  37. package/api/resources/sources/client/Client.js +10 -10
  38. package/api/resources/sources/resources/files/client/Client.js +3 -3
  39. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  40. package/api/resources/steps/client/Client.js +3 -3
  41. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  42. package/api/resources/tags/client/Client.js +1 -1
  43. package/api/resources/telemetry/client/Client.js +1 -1
  44. package/api/resources/templates/client/Client.js +9 -9
  45. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  46. package/api/resources/tools/client/Client.js +20 -20
  47. package/api/resources/voice/client/Client.js +1 -1
  48. package/api/types/InternalTemplateAgentCreate.d.ts +99 -0
  49. package/api/types/InternalTemplateAgentCreate.js +5 -0
  50. package/api/types/InternalTemplateAgentCreateResponseFormat.d.ts +5 -0
  51. package/api/types/InternalTemplateAgentCreateResponseFormat.js +5 -0
  52. package/api/types/InternalTemplateAgentCreateToolRulesItem.d.ts +5 -0
  53. package/api/types/InternalTemplateAgentCreateToolRulesItem.js +5 -0
  54. package/api/types/InternalTemplateBlockCreate.d.ts +35 -0
  55. package/api/types/InternalTemplateBlockCreate.js +5 -0
  56. package/api/types/InternalTemplateGroupCreate.d.ts +25 -0
  57. package/api/types/InternalTemplateGroupCreate.js +5 -0
  58. package/api/types/InternalTemplateGroupCreateManagerConfig.d.ts +8 -0
  59. package/api/types/InternalTemplateGroupCreateManagerConfig.js +5 -0
  60. package/api/types/index.d.ts +6 -0
  61. package/api/types/index.js +6 -0
  62. package/dist/api/resources/agents/client/Client.js +11 -11
  63. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  64. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  67. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  71. package/dist/api/resources/agents/resources/passages/client/Client.js +7 -7
  72. package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +4 -4
  73. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  75. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  76. package/dist/api/resources/batches/client/Client.js +4 -4
  77. package/dist/api/resources/blocks/client/Client.js +6 -6
  78. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  79. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  80. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  81. package/dist/api/resources/folders/client/Client.js +9 -9
  82. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  83. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  84. package/dist/api/resources/groups/client/Client.js +6 -6
  85. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  86. package/dist/api/resources/health/client/Client.js +1 -1
  87. package/dist/api/resources/identities/client/Client.js +7 -7
  88. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  89. package/dist/api/resources/jobs/client/Client.js +5 -5
  90. package/dist/api/resources/messages/client/Client.js +1 -1
  91. package/dist/api/resources/models/client/Client.js +2 -2
  92. package/dist/api/resources/projects/client/Client.js +1 -1
  93. package/dist/api/resources/providers/client/Client.js +6 -6
  94. package/dist/api/resources/runs/client/Client.js +5 -5
  95. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  96. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  97. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  98. package/dist/api/resources/sources/client/Client.js +10 -10
  99. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  100. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  101. package/dist/api/resources/steps/client/Client.js +3 -3
  102. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  103. package/dist/api/resources/tags/client/Client.js +1 -1
  104. package/dist/api/resources/telemetry/client/Client.js +1 -1
  105. package/dist/api/resources/templates/client/Client.js +9 -9
  106. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  107. package/dist/api/resources/tools/client/Client.js +20 -20
  108. package/dist/api/resources/voice/client/Client.js +1 -1
  109. package/dist/api/types/InternalTemplateAgentCreate.d.ts +99 -0
  110. package/dist/api/types/InternalTemplateAgentCreate.js +5 -0
  111. package/dist/api/types/InternalTemplateAgentCreateResponseFormat.d.ts +5 -0
  112. package/dist/api/types/InternalTemplateAgentCreateResponseFormat.js +5 -0
  113. package/dist/api/types/InternalTemplateAgentCreateToolRulesItem.d.ts +5 -0
  114. package/dist/api/types/InternalTemplateAgentCreateToolRulesItem.js +5 -0
  115. package/dist/api/types/InternalTemplateBlockCreate.d.ts +35 -0
  116. package/dist/api/types/InternalTemplateBlockCreate.js +5 -0
  117. package/dist/api/types/InternalTemplateGroupCreate.d.ts +25 -0
  118. package/dist/api/types/InternalTemplateGroupCreate.js +5 -0
  119. package/dist/api/types/InternalTemplateGroupCreateManagerConfig.d.ts +8 -0
  120. package/dist/api/types/InternalTemplateGroupCreateManagerConfig.js +5 -0
  121. package/dist/api/types/index.d.ts +6 -0
  122. package/dist/api/types/index.js +6 -0
  123. package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +63 -0
  124. package/dist/serialization/types/InternalTemplateAgentCreate.js +94 -0
  125. package/dist/serialization/types/InternalTemplateAgentCreateResponseFormat.d.ts +13 -0
  126. package/dist/serialization/types/InternalTemplateAgentCreateResponseFormat.js +44 -0
  127. package/dist/serialization/types/InternalTemplateAgentCreateToolRulesItem.d.ts +19 -0
  128. package/dist/serialization/types/InternalTemplateAgentCreateToolRulesItem.js +60 -0
  129. package/dist/serialization/types/InternalTemplateBlockCreate.d.ts +25 -0
  130. package/dist/serialization/types/InternalTemplateBlockCreate.js +56 -0
  131. package/dist/serialization/types/InternalTemplateGroupCreate.d.ts +20 -0
  132. package/dist/serialization/types/InternalTemplateGroupCreate.js +51 -0
  133. package/dist/serialization/types/InternalTemplateGroupCreateManagerConfig.d.ts +15 -0
  134. package/dist/serialization/types/InternalTemplateGroupCreateManagerConfig.js +52 -0
  135. package/dist/serialization/types/index.d.ts +6 -0
  136. package/dist/serialization/types/index.js +6 -0
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +1 -1
  140. package/serialization/types/InternalTemplateAgentCreate.d.ts +63 -0
  141. package/serialization/types/InternalTemplateAgentCreate.js +94 -0
  142. package/serialization/types/InternalTemplateAgentCreateResponseFormat.d.ts +13 -0
  143. package/serialization/types/InternalTemplateAgentCreateResponseFormat.js +44 -0
  144. package/serialization/types/InternalTemplateAgentCreateToolRulesItem.d.ts +19 -0
  145. package/serialization/types/InternalTemplateAgentCreateToolRulesItem.js +60 -0
  146. package/serialization/types/InternalTemplateBlockCreate.d.ts +25 -0
  147. package/serialization/types/InternalTemplateBlockCreate.js +56 -0
  148. package/serialization/types/InternalTemplateGroupCreate.d.ts +20 -0
  149. package/serialization/types/InternalTemplateGroupCreate.js +51 -0
  150. package/serialization/types/InternalTemplateGroupCreateManagerConfig.d.ts +15 -0
  151. package/serialization/types/InternalTemplateGroupCreateManagerConfig.js +52 -0
  152. package/serialization/types/index.d.ts +6 -0
  153. package/serialization/types/index.js +6 -0
  154. package/version.d.ts +1 -1
  155. package/version.js +1 -1
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -348,7 +348,7 @@ class Tools {
348
348
  method: "GET",
349
349
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
350
350
  ? yield core.Supplier.get(this._options.project)
351
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
351
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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
352
  contentType: "application/json",
353
353
  queryParameters: _queryParams,
354
354
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "GET",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
478
  contentType: "application/json",
479
479
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "POST",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
556
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -632,7 +632,7 @@ class Tools {
632
632
  method: "PUT",
633
633
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
634
634
  ? yield core.Supplier.get(this._options.project)
635
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
635
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
636
636
  contentType: "application/json",
637
637
  requestType: "json",
638
638
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -708,7 +708,7 @@ class Tools {
708
708
  method: "POST",
709
709
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
710
710
  ? yield core.Supplier.get(this._options.project)
711
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
711
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
712
712
  contentType: "application/json",
713
713
  requestType: "json",
714
714
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -789,7 +789,7 @@ class Tools {
789
789
  method: "POST",
790
790
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
791
791
  ? yield core.Supplier.get(this._options.project)
792
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
792
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
793
793
  contentType: "application/json",
794
794
  requestType: "json",
795
795
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -867,7 +867,7 @@ class Tools {
867
867
  method: "GET",
868
868
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
869
869
  ? yield core.Supplier.get(this._options.project)
870
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
870
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
871
871
  contentType: "application/json",
872
872
  requestType: "json",
873
873
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -943,7 +943,7 @@ class Tools {
943
943
  method: "GET",
944
944
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
945
945
  ? yield core.Supplier.get(this._options.project)
946
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
946
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
947
947
  contentType: "application/json",
948
948
  requestType: "json",
949
949
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1019,7 +1019,7 @@ class Tools {
1019
1019
  method: "POST",
1020
1020
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1021
1021
  ? yield core.Supplier.get(this._options.project)
1022
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1023
1023
  contentType: "application/json",
1024
1024
  requestType: "json",
1025
1025
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1096,7 +1096,7 @@ class Tools {
1096
1096
  method: "GET",
1097
1097
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1098
1098
  ? yield core.Supplier.get(this._options.project)
1099
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1099
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1100
1100
  contentType: "application/json",
1101
1101
  requestType: "json",
1102
1102
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1176,7 +1176,7 @@ class Tools {
1176
1176
  method: "PUT",
1177
1177
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1178
1178
  ? yield core.Supplier.get(this._options.project)
1179
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1179
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1180
1180
  contentType: "application/json",
1181
1181
  requestType: "json",
1182
1182
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1253,7 +1253,7 @@ class Tools {
1253
1253
  method: "GET",
1254
1254
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1255
1255
  ? yield core.Supplier.get(this._options.project)
1256
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1256
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1257
1257
  contentType: "application/json",
1258
1258
  requestType: "json",
1259
1259
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1330,7 +1330,7 @@ class Tools {
1330
1330
  method: "POST",
1331
1331
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1332
1332
  ? yield core.Supplier.get(this._options.project)
1333
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1333
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1334
1334
  contentType: "application/json",
1335
1335
  requestType: "json",
1336
1336
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1406,7 +1406,7 @@ class Tools {
1406
1406
  method: "DELETE",
1407
1407
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1408
1408
  ? yield core.Supplier.get(this._options.project)
1409
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1409
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1410
1410
  contentType: "application/json",
1411
1411
  requestType: "json",
1412
1412
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1483,7 +1483,7 @@ class Tools {
1483
1483
  method: "PATCH",
1484
1484
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1485
1485
  ? yield core.Supplier.get(this._options.project)
1486
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1486
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1487
1487
  contentType: "application/json",
1488
1488
  requestType: "json",
1489
1489
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1565,7 +1565,7 @@ class Tools {
1565
1565
  method: "POST",
1566
1566
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1567
1567
  ? yield core.Supplier.get(this._options.project)
1568
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1568
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1569
1569
  contentType: "application/json",
1570
1570
  requestType: "json",
1571
1571
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1626,7 +1626,7 @@ class Tools {
1626
1626
  method: "POST",
1627
1627
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1628
1628
  ? yield core.Supplier.get(this._options.project)
1629
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
1629
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "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),
1630
1630
  contentType: "application/json",
1631
1631
  requestType: "json",
1632
1632
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.205", "User-Agent": "@letta-ai/letta-client/0.1.205", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -0,0 +1,99 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Used for Letta Cloud
7
+ */
8
+ export interface InternalTemplateAgentCreate {
9
+ /** The name of the agent. */
10
+ name?: string;
11
+ /** The blocks to create in the agent's in-context memory. */
12
+ memoryBlocks?: Letta.CreateBlock[];
13
+ /** The tools used by the agent. */
14
+ tools?: string[];
15
+ /** The ids of the tools used by the agent. */
16
+ toolIds?: string[];
17
+ /** The ids of the sources used by the agent. */
18
+ sourceIds?: string[];
19
+ /** The ids of the blocks used by the agent. */
20
+ blockIds?: string[];
21
+ /** The tool rules governing the agent. */
22
+ toolRules?: Letta.InternalTemplateAgentCreateToolRulesItem[];
23
+ /** The tags associated with the agent. */
24
+ tags?: string[];
25
+ /** The system prompt used by the agent. */
26
+ system?: string;
27
+ /** The type of agent. */
28
+ agentType?: Letta.AgentType;
29
+ /** The LLM configuration used by the agent. */
30
+ llmConfig?: Letta.LlmConfig;
31
+ /** The embedding configuration used by the agent. */
32
+ embeddingConfig?: Letta.EmbeddingConfig;
33
+ /** The initial set of messages to put in the agent's in-context memory. */
34
+ initialMessageSequence?: Letta.MessageCreate[];
35
+ /** If true, attaches the Letta core tools (e.g. core_memory related functions). */
36
+ includeBaseTools?: boolean;
37
+ /** If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent). */
38
+ includeMultiAgentTools?: boolean;
39
+ /** If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed). */
40
+ includeBaseToolRules?: boolean;
41
+ /** If true, automatically creates and attaches a default data source for this agent. */
42
+ includeDefaultSource?: boolean;
43
+ /** The description of the agent. */
44
+ description?: string;
45
+ /** The metadata of the agent. */
46
+ metadata?: Record<string, unknown>;
47
+ /** The LLM configuration handle used by the agent, specified in the format provider/model-name, as an alternative to specifying llm_config. */
48
+ model?: string;
49
+ /** The embedding configuration handle used by the agent, specified in the format provider/model-name. */
50
+ embedding?: string;
51
+ /** The context window limit used by the agent. */
52
+ contextWindowLimit?: number;
53
+ /** The embedding chunk size used by the agent. */
54
+ embeddingChunkSize?: number;
55
+ /** The maximum number of tokens to generate, including reasoning step. If not set, the model will use its default value. */
56
+ maxTokens?: number;
57
+ /** The maximum number of tokens to generate for reasoning step. If not set, the model will use its default value. */
58
+ maxReasoningTokens?: number;
59
+ /** Whether to enable internal extended thinking step for a reasoner model. */
60
+ enableReasoner?: boolean;
61
+ /** Whether to enable reasoning for this agent. */
62
+ reasoning?: boolean;
63
+ /** The template id used to configure the agent */
64
+ fromTemplate?: string;
65
+ /** Whether the agent is a template */
66
+ template?: boolean;
67
+ /** Deprecated: Project should now be passed via the X-Project header instead of in the request body. If using the sdk, this can be done via the new x_project field below. */
68
+ project?: string;
69
+ /** The environment variables for tool execution specific to this agent. */
70
+ toolExecEnvironmentVariables?: Record<string, string | undefined>;
71
+ /** The variables that should be set for the agent. */
72
+ memoryVariables?: Record<string, string | undefined>;
73
+ /** The id of the project the agent belongs to. */
74
+ projectId?: string;
75
+ /** The id of the template. */
76
+ templateId: string;
77
+ /** The id of the base template. */
78
+ baseTemplateId: string;
79
+ /** The ids of the identities associated with this agent. */
80
+ identityIds?: string[];
81
+ /** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
82
+ messageBufferAutoclear?: boolean;
83
+ /** If set to True, memory management will move to a background agent thread. */
84
+ enableSleeptime?: boolean;
85
+ /** The response format for the agent. */
86
+ responseFormat?: Letta.InternalTemplateAgentCreateResponseFormat;
87
+ /** The timezone of the agent (IANA format). */
88
+ timezone?: string;
89
+ /** Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent. */
90
+ maxFilesOpen?: number;
91
+ /** The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent. */
92
+ perFileViewWindowCharLimit?: number;
93
+ /** If set to True, the agent will be hidden. */
94
+ hidden?: boolean;
95
+ /** The id of the deployment. */
96
+ deploymentId: string;
97
+ /** The id of the entity within the template. */
98
+ entityId: string;
99
+ }
@@ -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,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type InternalTemplateAgentCreateResponseFormat = Letta.JsonObjectResponseFormat | Letta.JsonSchemaResponseFormat | Letta.TextResponseFormat;
@@ -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,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type InternalTemplateAgentCreateToolRulesItem = Letta.ConditionalToolRule | Letta.ChildToolRule | Letta.ContinueToolRule | Letta.TerminalToolRule | Letta.MaxCountPerStepToolRule | Letta.ParentToolRule | Letta.RequiredBeforeExitToolRule | Letta.RequiresApprovalToolRule | Letta.InitToolRule;
@@ -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,35 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Used for Letta Cloud
6
+ */
7
+ export interface InternalTemplateBlockCreate {
8
+ /** Value of the block. */
9
+ value: string;
10
+ /** Character limit of the block. */
11
+ limit?: number;
12
+ /** The associated project id. */
13
+ projectId?: string;
14
+ /** Name of the block if it is a template. */
15
+ name?: string;
16
+ isTemplate?: boolean;
17
+ /** The id of the template. */
18
+ templateId: string;
19
+ /** The id of the base template. */
20
+ baseTemplateId: string;
21
+ /** The id of the deployment. */
22
+ deploymentId: string;
23
+ /** The id of the entity within the template. */
24
+ entityId: string;
25
+ /** Preserve the block on template migration. */
26
+ preserveOnMigration?: boolean;
27
+ /** Label of the block. */
28
+ label: string;
29
+ /** Whether the agent has read-only access to the block. */
30
+ readOnly?: boolean;
31
+ /** Description of the block. */
32
+ description?: string;
33
+ /** Metadata of the block. */
34
+ metadata?: Record<string, unknown>;
35
+ }
@@ -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,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Used for Letta Cloud
7
+ */
8
+ export interface InternalTemplateGroupCreate {
9
+ /** */
10
+ agentIds: string[];
11
+ /** */
12
+ description: string;
13
+ /** */
14
+ managerConfig?: Letta.InternalTemplateGroupCreateManagerConfig;
15
+ /** The associated project id. */
16
+ projectId?: string;
17
+ /** */
18
+ sharedBlockIds?: string[];
19
+ /** The id of the base template. */
20
+ baseTemplateId: string;
21
+ /** The id of the template. */
22
+ templateId: string;
23
+ /** The id of the deployment. */
24
+ deploymentId: string;
25
+ }
@@ -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,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ *
7
+ */
8
+ export type InternalTemplateGroupCreateManagerConfig = Letta.DynamicManager | Letta.RoundRobinManager | Letta.SleeptimeManager | Letta.SupervisorManager | Letta.VoiceSleeptimeManager;
@@ -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 });
@@ -149,6 +149,12 @@ export * from "./ImportedAgentsResponse";
149
149
  export * from "./InitToolRule";
150
150
  export * from "./InputAudioFormat";
151
151
  export * from "./InputAudio";
152
+ export * from "./InternalTemplateAgentCreateToolRulesItem";
153
+ export * from "./InternalTemplateAgentCreateResponseFormat";
154
+ export * from "./InternalTemplateAgentCreate";
155
+ export * from "./InternalTemplateBlockCreate";
156
+ export * from "./InternalTemplateGroupCreateManagerConfig";
157
+ export * from "./InternalTemplateGroupCreate";
152
158
  export * from "./JsonSchema";
153
159
  export * from "./Job";
154
160
  export * from "./JobStatus";
@@ -165,6 +165,12 @@ __exportStar(require("./ImportedAgentsResponse"), exports);
165
165
  __exportStar(require("./InitToolRule"), exports);
166
166
  __exportStar(require("./InputAudioFormat"), exports);
167
167
  __exportStar(require("./InputAudio"), exports);
168
+ __exportStar(require("./InternalTemplateAgentCreateToolRulesItem"), exports);
169
+ __exportStar(require("./InternalTemplateAgentCreateResponseFormat"), exports);
170
+ __exportStar(require("./InternalTemplateAgentCreate"), exports);
171
+ __exportStar(require("./InternalTemplateBlockCreate"), exports);
172
+ __exportStar(require("./InternalTemplateGroupCreateManagerConfig"), exports);
173
+ __exportStar(require("./InternalTemplateGroupCreate"), exports);
168
174
  __exportStar(require("./JsonSchema"), exports);
169
175
  __exportStar(require("./Job"), exports);
170
176
  __exportStar(require("./JobStatus"), exports);
@@ -0,0 +1,63 @@
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 { CreateBlock } from "./CreateBlock";
8
+ import { InternalTemplateAgentCreateToolRulesItem } from "./InternalTemplateAgentCreateToolRulesItem";
9
+ import { AgentType } from "./AgentType";
10
+ import { LlmConfig } from "./LlmConfig";
11
+ import { EmbeddingConfig } from "./EmbeddingConfig";
12
+ import { MessageCreate } from "./MessageCreate";
13
+ import { InternalTemplateAgentCreateResponseFormat } from "./InternalTemplateAgentCreateResponseFormat";
14
+ export declare const InternalTemplateAgentCreate: core.serialization.ObjectSchema<serializers.InternalTemplateAgentCreate.Raw, Letta.InternalTemplateAgentCreate>;
15
+ export declare namespace InternalTemplateAgentCreate {
16
+ interface Raw {
17
+ name?: string | null;
18
+ memory_blocks?: CreateBlock.Raw[] | null;
19
+ tools?: string[] | null;
20
+ tool_ids?: string[] | null;
21
+ source_ids?: string[] | null;
22
+ block_ids?: string[] | null;
23
+ tool_rules?: InternalTemplateAgentCreateToolRulesItem.Raw[] | null;
24
+ tags?: string[] | null;
25
+ system?: string | null;
26
+ agent_type?: AgentType.Raw | null;
27
+ llm_config?: LlmConfig.Raw | null;
28
+ embedding_config?: EmbeddingConfig.Raw | null;
29
+ initial_message_sequence?: MessageCreate.Raw[] | null;
30
+ include_base_tools?: boolean | null;
31
+ include_multi_agent_tools?: boolean | null;
32
+ include_base_tool_rules?: boolean | null;
33
+ include_default_source?: boolean | null;
34
+ description?: string | null;
35
+ metadata?: Record<string, unknown> | null;
36
+ model?: string | null;
37
+ embedding?: string | null;
38
+ context_window_limit?: number | null;
39
+ embedding_chunk_size?: number | null;
40
+ max_tokens?: number | null;
41
+ max_reasoning_tokens?: number | null;
42
+ enable_reasoner?: boolean | null;
43
+ reasoning?: boolean | null;
44
+ from_template?: string | null;
45
+ template?: boolean | null;
46
+ project?: string | null;
47
+ tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
48
+ memory_variables?: Record<string, string | null | undefined> | null;
49
+ project_id?: string | null;
50
+ template_id: string;
51
+ base_template_id: string;
52
+ identity_ids?: string[] | null;
53
+ message_buffer_autoclear?: boolean | null;
54
+ enable_sleeptime?: boolean | null;
55
+ response_format?: InternalTemplateAgentCreateResponseFormat.Raw | null;
56
+ timezone?: string | null;
57
+ max_files_open?: number | null;
58
+ per_file_view_window_char_limit?: number | null;
59
+ hidden?: boolean | null;
60
+ deployment_id: string;
61
+ entity_id: string;
62
+ }
63
+ }