@letta-ai/letta-client 0.1.63 → 0.1.64

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 (154) hide show
  1. package/api/resources/agents/client/Client.d.ts +7 -7
  2. package/api/resources/agents/client/Client.js +28 -22
  3. package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  4. package/api/resources/agents/client/requests/index.d.ts +1 -1
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/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 +5 -5
  10. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/groups/client/Client.js +7 -7
  16. package/api/resources/health/client/Client.js +1 -1
  17. package/api/resources/identities/client/Client.js +6 -6
  18. package/api/resources/jobs/client/Client.js +4 -4
  19. package/api/resources/models/client/Client.js +2 -2
  20. package/api/resources/providers/client/Client.js +4 -4
  21. package/api/resources/runs/client/Client.js +7 -7
  22. package/api/resources/sources/client/Client.js +6 -6
  23. package/api/resources/sources/resources/files/client/Client.js +3 -3
  24. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  25. package/api/resources/steps/client/Client.js +2 -2
  26. package/api/resources/tag/client/Client.js +1 -1
  27. package/api/resources/templates/client/Client.js +1 -1
  28. package/api/resources/tools/client/Client.js +16 -16
  29. package/api/resources/voice/client/Client.js +1 -1
  30. package/api/types/AgentSchema.d.ts +27 -0
  31. package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  32. package/api/types/CoreMemoryBlockSchema.js +5 -0
  33. package/api/types/MessageSchema.d.ts +16 -0
  34. package/api/types/MessageSchema.js +5 -0
  35. package/api/types/ParameterProperties.d.ts +7 -0
  36. package/api/types/ParameterProperties.js +5 -0
  37. package/api/types/ParametersSchema.d.ts +9 -0
  38. package/api/types/ParametersSchema.js +5 -0
  39. package/api/types/TagSchema.d.ts +6 -0
  40. package/api/types/TagSchema.js +5 -0
  41. package/api/types/ToolEnvVarSchema.d.ts +11 -0
  42. package/api/types/ToolEnvVarSchema.js +5 -0
  43. package/api/types/ToolJsonSchema.d.ts +11 -0
  44. package/api/types/ToolJsonSchema.js +5 -0
  45. package/api/types/ToolRuleSchema.d.ts +7 -0
  46. package/api/types/ToolRuleSchema.js +5 -0
  47. package/api/types/ToolSchema.d.ts +18 -0
  48. package/api/types/ToolSchema.js +5 -0
  49. package/api/types/index.d.ts +10 -0
  50. package/api/types/index.js +10 -0
  51. package/dist/api/resources/agents/client/Client.d.ts +7 -7
  52. package/dist/api/resources/agents/client/Client.js +28 -22
  53. package/dist/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  54. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js +5 -0
  55. package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
  56. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  57. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  58. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  61. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  62. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  63. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  64. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  65. package/dist/api/resources/blocks/client/Client.js +6 -6
  66. package/dist/api/resources/groups/client/Client.js +7 -7
  67. package/dist/api/resources/health/client/Client.js +1 -1
  68. package/dist/api/resources/identities/client/Client.js +6 -6
  69. package/dist/api/resources/jobs/client/Client.js +4 -4
  70. package/dist/api/resources/models/client/Client.js +2 -2
  71. package/dist/api/resources/providers/client/Client.js +4 -4
  72. package/dist/api/resources/runs/client/Client.js +7 -7
  73. package/dist/api/resources/sources/client/Client.js +6 -6
  74. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  75. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  76. package/dist/api/resources/steps/client/Client.js +2 -2
  77. package/dist/api/resources/tag/client/Client.js +1 -1
  78. package/dist/api/resources/templates/client/Client.js +1 -1
  79. package/dist/api/resources/tools/client/Client.js +16 -16
  80. package/dist/api/resources/voice/client/Client.js +1 -1
  81. package/dist/api/types/AgentSchema.d.ts +27 -0
  82. package/dist/api/types/AgentSchema.js +5 -0
  83. package/dist/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  84. package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
  85. package/dist/api/types/MessageSchema.d.ts +16 -0
  86. package/dist/api/types/MessageSchema.js +5 -0
  87. package/dist/api/types/ParameterProperties.d.ts +7 -0
  88. package/dist/api/types/ParameterProperties.js +5 -0
  89. package/dist/api/types/ParametersSchema.d.ts +9 -0
  90. package/dist/api/types/ParametersSchema.js +5 -0
  91. package/dist/api/types/TagSchema.d.ts +6 -0
  92. package/dist/api/types/TagSchema.js +5 -0
  93. package/dist/api/types/ToolEnvVarSchema.d.ts +11 -0
  94. package/dist/api/types/ToolEnvVarSchema.js +5 -0
  95. package/dist/api/types/ToolJsonSchema.d.ts +11 -0
  96. package/dist/api/types/ToolJsonSchema.js +5 -0
  97. package/dist/api/types/ToolRuleSchema.d.ts +7 -0
  98. package/dist/api/types/ToolRuleSchema.js +5 -0
  99. package/dist/api/types/ToolSchema.d.ts +18 -0
  100. package/dist/api/types/ToolSchema.js +5 -0
  101. package/dist/api/types/index.d.ts +10 -0
  102. package/dist/api/types/index.js +10 -0
  103. package/dist/serialization/types/AgentSchema.d.ts +40 -0
  104. package/dist/serialization/types/AgentSchema.js +71 -0
  105. package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  106. package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
  107. package/dist/serialization/types/MessageSchema.d.ts +22 -0
  108. package/dist/serialization/types/MessageSchema.js +53 -0
  109. package/dist/serialization/types/ParameterProperties.d.ts +13 -0
  110. package/dist/serialization/types/ParameterProperties.js +44 -0
  111. package/dist/serialization/types/ParametersSchema.d.ts +15 -0
  112. package/dist/serialization/types/ParametersSchema.js +46 -0
  113. package/dist/serialization/types/TagSchema.d.ts +12 -0
  114. package/dist/serialization/types/TagSchema.js +43 -0
  115. package/dist/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  116. package/dist/serialization/types/ToolEnvVarSchema.js +48 -0
  117. package/dist/serialization/types/ToolJsonSchema.d.ts +17 -0
  118. package/dist/serialization/types/ToolJsonSchema.js +48 -0
  119. package/dist/serialization/types/ToolRuleSchema.d.ts +13 -0
  120. package/dist/serialization/types/ToolRuleSchema.js +44 -0
  121. package/dist/serialization/types/ToolSchema.d.ts +24 -0
  122. package/dist/serialization/types/ToolSchema.js +55 -0
  123. package/dist/serialization/types/index.d.ts +10 -0
  124. package/dist/serialization/types/index.js +10 -0
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +7 -7
  129. package/serialization/types/AgentSchema.d.ts +40 -0
  130. package/serialization/types/AgentSchema.js +71 -0
  131. package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  132. package/serialization/types/CoreMemoryBlockSchema.js +53 -0
  133. package/serialization/types/MessageSchema.d.ts +22 -0
  134. package/serialization/types/MessageSchema.js +53 -0
  135. package/serialization/types/ParameterProperties.d.ts +13 -0
  136. package/serialization/types/ParameterProperties.js +44 -0
  137. package/serialization/types/ParametersSchema.d.ts +15 -0
  138. package/serialization/types/ParametersSchema.js +46 -0
  139. package/serialization/types/TagSchema.d.ts +12 -0
  140. package/serialization/types/TagSchema.js +43 -0
  141. package/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  142. package/serialization/types/ToolEnvVarSchema.js +48 -0
  143. package/serialization/types/ToolJsonSchema.d.ts +17 -0
  144. package/serialization/types/ToolJsonSchema.js +48 -0
  145. package/serialization/types/ToolRuleSchema.d.ts +13 -0
  146. package/serialization/types/ToolRuleSchema.js +44 -0
  147. package/serialization/types/ToolSchema.d.ts +24 -0
  148. package/serialization/types/ToolSchema.js +55 -0
  149. package/serialization/types/index.d.ts +10 -0
  150. package/serialization/types/index.js +10 -0
  151. package/version.d.ts +1 -1
  152. package/version.js +1 -1
  153. /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
  154. /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/types/AgentSchema.js} +0 -0
@@ -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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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" }),
@@ -278,7 +278,7 @@ class Tools {
278
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
279
  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/"),
280
280
  method: "GET",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
281
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
282
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
284
284
  requestType: "json",
@@ -346,7 +346,7 @@ class Tools {
346
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
347
  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/"),
348
348
  method: "POST",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
349
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Tools {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  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/"),
416
416
  method: "PUT",
417
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
417
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
418
418
  contentType: "application/json",
419
419
  requestType: "json",
420
420
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -479,7 +479,7 @@ class Tools {
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  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"),
481
481
  method: "POST",
482
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
482
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -549,7 +549,7 @@ class Tools {
549
549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
550
550
  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"),
551
551
  method: "POST",
552
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
552
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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
553
  contentType: "application/json",
554
554
  requestType: "json",
555
555
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -614,7 +614,7 @@ class Tools {
614
614
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
615
615
  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"),
616
616
  method: "GET",
617
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
617
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
618
618
  contentType: "application/json",
619
619
  requestType: "json",
620
620
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -679,7 +679,7 @@ class Tools {
679
679
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
680
680
  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`),
681
681
  method: "GET",
682
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
682
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
683
683
  contentType: "application/json",
684
684
  requestType: "json",
685
685
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -744,7 +744,7 @@ class Tools {
744
744
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
745
745
  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)}`),
746
746
  method: "POST",
747
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
747
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
748
748
  contentType: "application/json",
749
749
  requestType: "json",
750
750
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -808,7 +808,7 @@ class Tools {
808
808
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
809
809
  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"),
810
810
  method: "GET",
811
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
811
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
812
812
  contentType: "application/json",
813
813
  requestType: "json",
814
814
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -877,7 +877,7 @@ class Tools {
877
877
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
878
878
  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"),
879
879
  method: "PUT",
880
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
880
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
881
881
  contentType: "application/json",
882
882
  requestType: "json",
883
883
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -943,7 +943,7 @@ class Tools {
943
943
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
944
944
  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`),
945
945
  method: "GET",
946
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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,
@@ -1009,7 +1009,7 @@ class Tools {
1009
1009
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1010
1010
  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)}`),
1011
1011
  method: "POST",
1012
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
1012
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
1013
1013
  contentType: "application/json",
1014
1014
  requestType: "json",
1015
1015
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1074,7 +1074,7 @@ class Tools {
1074
1074
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1075
1075
  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)}`),
1076
1076
  method: "DELETE",
1077
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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),
1077
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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),
1078
1078
  contentType: "application/json",
1079
1079
  requestType: "json",
1080
1080
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Voice {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  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/${encodeURIComponent(agentId)}/chat/completions`),
83
83
  method: "POST",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.63", "User-Agent": "@letta-ai/letta-client/0.1.63", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.64", "User-Agent": "@letta-ai/letta-client/0.1.64", "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
  body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface AgentSchema {
6
+ agentType: string;
7
+ coreMemory: Letta.CoreMemoryBlockSchema[];
8
+ createdAt: string;
9
+ description: string;
10
+ embeddingConfig: Letta.EmbeddingConfig;
11
+ groups: unknown[];
12
+ identities: unknown[];
13
+ isDeleted: boolean;
14
+ llmConfig: Letta.LlmConfig;
15
+ messageBufferAutoclear: boolean;
16
+ messages: Letta.MessageSchema[];
17
+ metadata: Record<string, unknown>;
18
+ multiAgentGroup?: unknown;
19
+ name: string;
20
+ system: string;
21
+ tags: Letta.TagSchema[];
22
+ toolExecEnvironmentVariables: Letta.ToolEnvVarSchema[];
23
+ toolRules: Letta.ToolRuleSchema[];
24
+ tools: Letta.ToolSchema[];
25
+ updatedAt: string;
26
+ version: string;
27
+ }
@@ -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,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CoreMemoryBlockSchema {
5
+ createdAt: string;
6
+ description?: string;
7
+ identities: unknown[];
8
+ isDeleted: boolean;
9
+ isTemplate: boolean;
10
+ label: string;
11
+ limit: number;
12
+ metadata?: Record<string, unknown>;
13
+ templateName?: string;
14
+ updatedAt: string;
15
+ value: string;
16
+ }
@@ -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,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface MessageSchema {
5
+ createdAt: string;
6
+ groupId?: string;
7
+ inContext: boolean;
8
+ model?: string;
9
+ name?: string;
10
+ role: string;
11
+ text: string;
12
+ toolCallId?: string;
13
+ toolCalls: unknown[];
14
+ toolReturns: unknown[];
15
+ updatedAt: string;
16
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ParameterProperties {
5
+ type: string;
6
+ description?: string;
7
+ }
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ParametersSchema {
6
+ type?: string;
7
+ properties: Record<string, Letta.ParameterProperties>;
8
+ required?: string[];
9
+ }
@@ -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,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TagSchema {
5
+ tag: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolEnvVarSchema {
5
+ createdAt: string;
6
+ description?: string;
7
+ isDeleted: boolean;
8
+ key: string;
9
+ updatedAt: string;
10
+ value: string;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ToolJsonSchema {
6
+ name: string;
7
+ description: string;
8
+ parameters: Letta.ParametersSchema;
9
+ type?: string;
10
+ required?: string[];
11
+ }
@@ -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,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ToolRuleSchema {
5
+ toolName: string;
6
+ type: string;
7
+ }
@@ -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,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ToolSchema {
6
+ argsJsonSchema?: unknown;
7
+ createdAt: string;
8
+ description: string;
9
+ isDeleted: boolean;
10
+ jsonSchema: Letta.ToolJsonSchema;
11
+ name: string;
12
+ returnCharLimit: number;
13
+ sourceCode?: string;
14
+ sourceType: string;
15
+ tags: string[];
16
+ toolType: string;
17
+ updatedAt: string;
18
+ }
@@ -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 });
@@ -6,6 +6,7 @@ export * from "./ActionModel";
6
6
  export * from "./ActionParametersModel";
7
7
  export * from "./ActionResponseModel";
8
8
  export * from "./AgentEnvironmentVariable";
9
+ export * from "./AgentSchema";
9
10
  export * from "./AgentStateToolRulesItem";
10
11
  export * from "./AgentState";
11
12
  export * from "./AgentType";
@@ -72,6 +73,7 @@ export * from "./CompletionCreateParamsStreaming";
72
73
  export * from "./ConditionalToolRule";
73
74
  export * from "./ContextWindowOverview";
74
75
  export * from "./ContinueToolRule";
76
+ export * from "./CoreMemoryBlockSchema";
75
77
  export * from "./CreateBlock";
76
78
  export * from "./DynamicManager";
77
79
  export * from "./E2BSandboxConfig";
@@ -122,8 +124,11 @@ export * from "./MessageCreateRole";
122
124
  export * from "./MessageCreateContent";
123
125
  export * from "./MessageCreate";
124
126
  export * from "./MessageRole";
127
+ export * from "./MessageSchema";
125
128
  export * from "./Organization";
126
129
  export * from "./OrganizationCreate";
130
+ export * from "./ParameterProperties";
131
+ export * from "./ParametersSchema";
127
132
  export * from "./Passage";
128
133
  export * from "./PipRequirement";
129
134
  export * from "./Provider";
@@ -149,6 +154,7 @@ export * from "./Step";
149
154
  export * from "./SupervisorManager";
150
155
  export * from "./SystemMessageContent";
151
156
  export * from "./SystemMessage";
157
+ export * from "./TagSchema";
152
158
  export * from "./TerminalToolRule";
153
159
  export * from "./TextContent";
154
160
  export * from "./Tool";
@@ -157,10 +163,14 @@ export * from "./ToolCallDelta";
157
163
  export * from "./ToolCallMessageToolCall";
158
164
  export * from "./ToolCallMessage";
159
165
  export * from "./ToolCreate";
166
+ export * from "./ToolEnvVarSchema";
167
+ export * from "./ToolJsonSchema";
160
168
  export * from "./ToolReturnStatus";
161
169
  export * from "./ToolReturn";
162
170
  export * from "./ToolReturnMessageStatus";
163
171
  export * from "./ToolReturnMessage";
172
+ export * from "./ToolRuleSchema";
173
+ export * from "./ToolSchema";
164
174
  export * from "./ToolType";
165
175
  export * from "./UpdateAssistantMessageContent";
166
176
  export * from "./UpdateAssistantMessage";
@@ -22,6 +22,7 @@ __exportStar(require("./ActionModel"), exports);
22
22
  __exportStar(require("./ActionParametersModel"), exports);
23
23
  __exportStar(require("./ActionResponseModel"), exports);
24
24
  __exportStar(require("./AgentEnvironmentVariable"), exports);
25
+ __exportStar(require("./AgentSchema"), exports);
25
26
  __exportStar(require("./AgentStateToolRulesItem"), exports);
26
27
  __exportStar(require("./AgentState"), exports);
27
28
  __exportStar(require("./AgentType"), exports);
@@ -88,6 +89,7 @@ __exportStar(require("./CompletionCreateParamsStreaming"), exports);
88
89
  __exportStar(require("./ConditionalToolRule"), exports);
89
90
  __exportStar(require("./ContextWindowOverview"), exports);
90
91
  __exportStar(require("./ContinueToolRule"), exports);
92
+ __exportStar(require("./CoreMemoryBlockSchema"), exports);
91
93
  __exportStar(require("./CreateBlock"), exports);
92
94
  __exportStar(require("./DynamicManager"), exports);
93
95
  __exportStar(require("./E2BSandboxConfig"), exports);
@@ -138,8 +140,11 @@ __exportStar(require("./MessageCreateRole"), exports);
138
140
  __exportStar(require("./MessageCreateContent"), exports);
139
141
  __exportStar(require("./MessageCreate"), exports);
140
142
  __exportStar(require("./MessageRole"), exports);
143
+ __exportStar(require("./MessageSchema"), exports);
141
144
  __exportStar(require("./Organization"), exports);
142
145
  __exportStar(require("./OrganizationCreate"), exports);
146
+ __exportStar(require("./ParameterProperties"), exports);
147
+ __exportStar(require("./ParametersSchema"), exports);
143
148
  __exportStar(require("./Passage"), exports);
144
149
  __exportStar(require("./PipRequirement"), exports);
145
150
  __exportStar(require("./Provider"), exports);
@@ -165,6 +170,7 @@ __exportStar(require("./Step"), exports);
165
170
  __exportStar(require("./SupervisorManager"), exports);
166
171
  __exportStar(require("./SystemMessageContent"), exports);
167
172
  __exportStar(require("./SystemMessage"), exports);
173
+ __exportStar(require("./TagSchema"), exports);
168
174
  __exportStar(require("./TerminalToolRule"), exports);
169
175
  __exportStar(require("./TextContent"), exports);
170
176
  __exportStar(require("./Tool"), exports);
@@ -173,10 +179,14 @@ __exportStar(require("./ToolCallDelta"), exports);
173
179
  __exportStar(require("./ToolCallMessageToolCall"), exports);
174
180
  __exportStar(require("./ToolCallMessage"), exports);
175
181
  __exportStar(require("./ToolCreate"), exports);
182
+ __exportStar(require("./ToolEnvVarSchema"), exports);
183
+ __exportStar(require("./ToolJsonSchema"), exports);
176
184
  __exportStar(require("./ToolReturnStatus"), exports);
177
185
  __exportStar(require("./ToolReturn"), exports);
178
186
  __exportStar(require("./ToolReturnMessageStatus"), exports);
179
187
  __exportStar(require("./ToolReturnMessage"), exports);
188
+ __exportStar(require("./ToolRuleSchema"), exports);
189
+ __exportStar(require("./ToolSchema"), exports);
180
190
  __exportStar(require("./ToolType"), exports);
181
191
  __exportStar(require("./UpdateAssistantMessageContent"), exports);
182
192
  __exportStar(require("./UpdateAssistantMessage"), exports);
@@ -0,0 +1,40 @@
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 { CoreMemoryBlockSchema } from "./CoreMemoryBlockSchema";
8
+ import { EmbeddingConfig } from "./EmbeddingConfig";
9
+ import { LlmConfig } from "./LlmConfig";
10
+ import { MessageSchema } from "./MessageSchema";
11
+ import { TagSchema } from "./TagSchema";
12
+ import { ToolEnvVarSchema } from "./ToolEnvVarSchema";
13
+ import { ToolRuleSchema } from "./ToolRuleSchema";
14
+ import { ToolSchema } from "./ToolSchema";
15
+ export declare const AgentSchema: core.serialization.ObjectSchema<serializers.AgentSchema.Raw, Letta.AgentSchema>;
16
+ export declare namespace AgentSchema {
17
+ interface Raw {
18
+ agent_type: string;
19
+ core_memory: CoreMemoryBlockSchema.Raw[];
20
+ created_at: string;
21
+ description: string;
22
+ embedding_config: EmbeddingConfig.Raw;
23
+ groups: unknown[];
24
+ identities: unknown[];
25
+ is_deleted: boolean;
26
+ llm_config: LlmConfig.Raw;
27
+ message_buffer_autoclear: boolean;
28
+ messages: MessageSchema.Raw[];
29
+ metadata_: Record<string, unknown>;
30
+ multi_agent_group?: unknown;
31
+ name: string;
32
+ system: string;
33
+ tags: TagSchema.Raw[];
34
+ tool_exec_environment_variables: ToolEnvVarSchema.Raw[];
35
+ tool_rules: ToolRuleSchema.Raw[];
36
+ tools: ToolSchema.Raw[];
37
+ updated_at: string;
38
+ version: string;
39
+ }
40
+ }
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AgentSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const CoreMemoryBlockSchema_1 = require("./CoreMemoryBlockSchema");
42
+ const EmbeddingConfig_1 = require("./EmbeddingConfig");
43
+ const LlmConfig_1 = require("./LlmConfig");
44
+ const MessageSchema_1 = require("./MessageSchema");
45
+ const TagSchema_1 = require("./TagSchema");
46
+ const ToolEnvVarSchema_1 = require("./ToolEnvVarSchema");
47
+ const ToolRuleSchema_1 = require("./ToolRuleSchema");
48
+ const ToolSchema_1 = require("./ToolSchema");
49
+ exports.AgentSchema = core.serialization.object({
50
+ agentType: core.serialization.property("agent_type", core.serialization.string()),
51
+ coreMemory: core.serialization.property("core_memory", core.serialization.list(CoreMemoryBlockSchema_1.CoreMemoryBlockSchema)),
52
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
53
+ description: core.serialization.string(),
54
+ embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig),
55
+ groups: core.serialization.list(core.serialization.unknown()),
56
+ identities: core.serialization.list(core.serialization.unknown()),
57
+ isDeleted: core.serialization.property("is_deleted", core.serialization.boolean()),
58
+ llmConfig: core.serialization.property("llm_config", LlmConfig_1.LlmConfig),
59
+ messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean()),
60
+ messages: core.serialization.list(MessageSchema_1.MessageSchema),
61
+ metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
62
+ multiAgentGroup: core.serialization.property("multi_agent_group", core.serialization.unknown()),
63
+ name: core.serialization.string(),
64
+ system: core.serialization.string(),
65
+ tags: core.serialization.list(TagSchema_1.TagSchema),
66
+ toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.list(ToolEnvVarSchema_1.ToolEnvVarSchema)),
67
+ toolRules: core.serialization.property("tool_rules", core.serialization.list(ToolRuleSchema_1.ToolRuleSchema)),
68
+ tools: core.serialization.list(ToolSchema_1.ToolSchema),
69
+ updatedAt: core.serialization.property("updated_at", core.serialization.string()),
70
+ version: core.serialization.string(),
71
+ });