@letta-ai/letta-client 0.1.101 → 0.1.102

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 (163) hide show
  1. package/api/resources/agents/client/Client.js +8 -8
  2. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  3. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  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 +6 -6
  10. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  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/agents/types/CreateAgentRequestResponseFormat.d.ts +5 -0
  15. package/api/resources/agents/types/CreateAgentRequestResponseFormat.js +5 -0
  16. package/api/resources/agents/types/UpdateAgentResponseFormat.d.ts +5 -0
  17. package/api/resources/agents/types/UpdateAgentResponseFormat.js +5 -0
  18. package/api/resources/agents/types/index.d.ts +2 -0
  19. package/api/resources/agents/types/index.js +2 -0
  20. package/api/resources/batches/client/Client.js +4 -4
  21. package/api/resources/blocks/client/Client.js +5 -5
  22. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  23. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  24. package/api/resources/embeddings/client/Client.js +1 -1
  25. package/api/resources/groups/client/Client.js +5 -5
  26. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  27. package/api/resources/health/client/Client.js +1 -1
  28. package/api/resources/identities/client/Client.js +6 -6
  29. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  30. package/api/resources/jobs/client/Client.js +4 -4
  31. package/api/resources/models/client/Client.js +1 -1
  32. package/api/resources/projects/client/Client.js +1 -1
  33. package/api/resources/providers/client/Client.js +4 -4
  34. package/api/resources/runs/client/Client.js +4 -4
  35. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  36. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  37. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  38. package/api/resources/sources/client/Client.js +6 -6
  39. package/api/resources/sources/resources/files/client/Client.js +3 -3
  40. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  41. package/api/resources/steps/client/Client.js +3 -3
  42. package/api/resources/tags/client/Client.js +1 -1
  43. package/api/resources/templates/client/Client.js +1 -1
  44. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  45. package/api/resources/tools/client/Client.js +16 -16
  46. package/api/resources/voice/client/Client.js +1 -1
  47. package/api/types/AgentState.d.ts +2 -0
  48. package/api/types/AgentStateResponseFormat.d.ts +5 -0
  49. package/api/types/AgentStateResponseFormat.js +5 -0
  50. package/api/types/JsonObjectResponseFormat.d.ts +9 -0
  51. package/api/types/JsonObjectResponseFormat.js +5 -0
  52. package/api/types/JsonSchemaResponseFormat.d.ts +11 -0
  53. package/api/types/JsonSchemaResponseFormat.js +5 -0
  54. package/api/types/TextResponseFormat.d.ts +9 -0
  55. package/api/types/TextResponseFormat.js +5 -0
  56. package/api/types/index.d.ts +4 -0
  57. package/api/types/index.js +4 -0
  58. package/dist/api/resources/agents/client/Client.js +8 -8
  59. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  60. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  61. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  62. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  67. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  68. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  69. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  70. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  71. package/dist/api/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +5 -0
  72. package/dist/api/resources/agents/types/CreateAgentRequestResponseFormat.js +5 -0
  73. package/dist/api/resources/agents/types/UpdateAgentResponseFormat.d.ts +5 -0
  74. package/dist/api/resources/agents/types/UpdateAgentResponseFormat.js +5 -0
  75. package/dist/api/resources/agents/types/index.d.ts +2 -0
  76. package/dist/api/resources/agents/types/index.js +2 -0
  77. package/dist/api/resources/batches/client/Client.js +4 -4
  78. package/dist/api/resources/blocks/client/Client.js +5 -5
  79. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  80. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  81. package/dist/api/resources/embeddings/client/Client.js +1 -1
  82. package/dist/api/resources/groups/client/Client.js +5 -5
  83. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  84. package/dist/api/resources/health/client/Client.js +1 -1
  85. package/dist/api/resources/identities/client/Client.js +6 -6
  86. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  87. package/dist/api/resources/jobs/client/Client.js +4 -4
  88. package/dist/api/resources/models/client/Client.js +1 -1
  89. package/dist/api/resources/projects/client/Client.js +1 -1
  90. package/dist/api/resources/providers/client/Client.js +4 -4
  91. package/dist/api/resources/runs/client/Client.js +4 -4
  92. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  93. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  94. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  95. package/dist/api/resources/sources/client/Client.js +6 -6
  96. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  97. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  98. package/dist/api/resources/steps/client/Client.js +3 -3
  99. package/dist/api/resources/tags/client/Client.js +1 -1
  100. package/dist/api/resources/templates/client/Client.js +1 -1
  101. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  102. package/dist/api/resources/tools/client/Client.js +16 -16
  103. package/dist/api/resources/voice/client/Client.js +1 -1
  104. package/dist/api/types/AgentState.d.ts +2 -0
  105. package/dist/api/types/AgentStateResponseFormat.d.ts +5 -0
  106. package/dist/api/types/AgentStateResponseFormat.js +5 -0
  107. package/dist/api/types/JsonObjectResponseFormat.d.ts +9 -0
  108. package/dist/api/types/JsonObjectResponseFormat.js +5 -0
  109. package/dist/api/types/JsonSchemaResponseFormat.d.ts +11 -0
  110. package/dist/api/types/JsonSchemaResponseFormat.js +5 -0
  111. package/dist/api/types/TextResponseFormat.d.ts +9 -0
  112. package/dist/api/types/TextResponseFormat.js +5 -0
  113. package/dist/api/types/index.d.ts +4 -0
  114. package/dist/api/types/index.js +4 -0
  115. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  116. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
  117. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  118. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  119. package/dist/serialization/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +13 -0
  120. package/dist/serialization/resources/agents/types/CreateAgentRequestResponseFormat.js +44 -0
  121. package/dist/serialization/resources/agents/types/UpdateAgentResponseFormat.d.ts +13 -0
  122. package/dist/serialization/resources/agents/types/UpdateAgentResponseFormat.js +44 -0
  123. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  124. package/dist/serialization/resources/agents/types/index.js +2 -0
  125. package/dist/serialization/types/AgentState.d.ts +2 -0
  126. package/dist/serialization/types/AgentState.js +2 -0
  127. package/dist/serialization/types/AgentStateResponseFormat.d.ts +13 -0
  128. package/dist/serialization/types/AgentStateResponseFormat.js +44 -0
  129. package/dist/serialization/types/JsonObjectResponseFormat.d.ts +12 -0
  130. package/dist/serialization/types/JsonObjectResponseFormat.js +43 -0
  131. package/dist/serialization/types/JsonSchemaResponseFormat.d.ts +13 -0
  132. package/dist/serialization/types/JsonSchemaResponseFormat.js +44 -0
  133. package/dist/serialization/types/TextResponseFormat.d.ts +12 -0
  134. package/dist/serialization/types/TextResponseFormat.js +43 -0
  135. package/dist/serialization/types/index.d.ts +4 -0
  136. package/dist/serialization/types/index.js +4 -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/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  141. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
  142. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  143. package/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  144. package/serialization/resources/agents/types/CreateAgentRequestResponseFormat.d.ts +13 -0
  145. package/serialization/resources/agents/types/CreateAgentRequestResponseFormat.js +44 -0
  146. package/serialization/resources/agents/types/UpdateAgentResponseFormat.d.ts +13 -0
  147. package/serialization/resources/agents/types/UpdateAgentResponseFormat.js +44 -0
  148. package/serialization/resources/agents/types/index.d.ts +2 -0
  149. package/serialization/resources/agents/types/index.js +2 -0
  150. package/serialization/types/AgentState.d.ts +2 -0
  151. package/serialization/types/AgentState.js +2 -0
  152. package/serialization/types/AgentStateResponseFormat.d.ts +13 -0
  153. package/serialization/types/AgentStateResponseFormat.js +44 -0
  154. package/serialization/types/JsonObjectResponseFormat.d.ts +12 -0
  155. package/serialization/types/JsonObjectResponseFormat.js +43 -0
  156. package/serialization/types/JsonSchemaResponseFormat.d.ts +13 -0
  157. package/serialization/types/JsonSchemaResponseFormat.js +44 -0
  158. package/serialization/types/TextResponseFormat.d.ts +12 -0
  159. package/serialization/types/TextResponseFormat.js +43 -0
  160. package/serialization/types/index.d.ts +4 -0
  161. package/serialization/types/index.js +4 -0
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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" }),
@@ -616,7 +616,7 @@ class Tools {
616
616
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
617
617
  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"),
618
618
  method: "GET",
619
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
619
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
620
620
  contentType: "application/json",
621
621
  requestType: "json",
622
622
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -681,7 +681,7 @@ class Tools {
681
681
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
682
682
  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`),
683
683
  method: "GET",
684
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
684
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
685
685
  contentType: "application/json",
686
686
  requestType: "json",
687
687
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -746,7 +746,7 @@ class Tools {
746
746
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
747
747
  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)}`),
748
748
  method: "POST",
749
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
749
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
750
750
  contentType: "application/json",
751
751
  requestType: "json",
752
752
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -812,7 +812,7 @@ class Tools {
812
812
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
813
813
  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"),
814
814
  method: "GET",
815
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
815
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
816
816
  contentType: "application/json",
817
817
  requestType: "json",
818
818
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -881,7 +881,7 @@ class Tools {
881
881
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
882
882
  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"),
883
883
  method: "PUT",
884
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
884
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
885
885
  contentType: "application/json",
886
886
  requestType: "json",
887
887
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -947,7 +947,7 @@ class Tools {
947
947
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
948
948
  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`),
949
949
  method: "GET",
950
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
950
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
951
951
  contentType: "application/json",
952
952
  requestType: "json",
953
953
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1013,7 +1013,7 @@ class Tools {
1013
1013
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1014
1014
  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)}`),
1015
1015
  method: "POST",
1016
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
1016
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
1017
1017
  contentType: "application/json",
1018
1018
  requestType: "json",
1019
1019
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1078,7 +1078,7 @@ class Tools {
1078
1078
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1079
1079
  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)}`),
1080
1080
  method: "DELETE",
1081
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "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),
1081
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "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),
1082
1082
  contentType: "application/json",
1083
1083
  requestType: "json",
1084
1084
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.101", "User-Agent": "@letta-ai/letta-client/0.1.101", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.102", "User-Agent": "@letta-ai/letta-client/0.1.102", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -41,6 +41,8 @@ export interface AgentState {
41
41
  llmConfig: Letta.LlmConfig;
42
42
  /** The embedding configuration used by the agent. */
43
43
  embeddingConfig: Letta.EmbeddingConfig;
44
+ /** The response format used by the agent when returning from `send_message`. */
45
+ responseFormat?: Letta.AgentStateResponseFormat;
44
46
  /** The description of the agent. */
45
47
  description?: string;
46
48
  /** The metadata of the agent. */
@@ -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 AgentStateResponseFormat = 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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response format for JSON object responses.
6
+ */
7
+ export interface JsonObjectResponseFormat {
8
+ type: "json_object";
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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response format for JSON schema-based responses.
6
+ */
7
+ export interface JsonSchemaResponseFormat {
8
+ type: "json_schema";
9
+ /** The JSON schema of the response. */
10
+ jsonSchema: Record<string, unknown>;
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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Response format for plain text responses.
6
+ */
7
+ export interface TextResponseFormat {
8
+ type: "text";
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 });
@@ -10,6 +10,7 @@ export * from "./AgentEnvironmentVariable";
10
10
  export * from "./AgentSchemaToolRulesItem";
11
11
  export * from "./AgentSchema";
12
12
  export * from "./AgentStateToolRulesItem";
13
+ export * from "./AgentStateResponseFormat";
13
14
  export * from "./AgentState";
14
15
  export * from "./AgentType";
15
16
  export * from "./AppAuthSchemeAuthMode";
@@ -113,6 +114,8 @@ export * from "./JsonSchema";
113
114
  export * from "./Job";
114
115
  export * from "./JobStatus";
115
116
  export * from "./JobType";
117
+ export * from "./JsonObjectResponseFormat";
118
+ export * from "./JsonSchemaResponseFormat";
116
119
  export * from "./LlmConfigModelEndpointType";
117
120
  export * from "./LlmConfigReasoningEffort";
118
121
  export * from "./LlmConfig";
@@ -177,6 +180,7 @@ export * from "./SystemMessage";
177
180
  export * from "./TagSchema";
178
181
  export * from "./TerminalToolRule";
179
182
  export * from "./TextContent";
183
+ export * from "./TextResponseFormat";
180
184
  export * from "./Tool";
181
185
  export * from "./ToolCall";
182
186
  export * from "./ToolCallContent";
@@ -26,6 +26,7 @@ __exportStar(require("./AgentEnvironmentVariable"), exports);
26
26
  __exportStar(require("./AgentSchemaToolRulesItem"), exports);
27
27
  __exportStar(require("./AgentSchema"), exports);
28
28
  __exportStar(require("./AgentStateToolRulesItem"), exports);
29
+ __exportStar(require("./AgentStateResponseFormat"), exports);
29
30
  __exportStar(require("./AgentState"), exports);
30
31
  __exportStar(require("./AgentType"), exports);
31
32
  __exportStar(require("./AppAuthSchemeAuthMode"), exports);
@@ -129,6 +130,8 @@ __exportStar(require("./JsonSchema"), exports);
129
130
  __exportStar(require("./Job"), exports);
130
131
  __exportStar(require("./JobStatus"), exports);
131
132
  __exportStar(require("./JobType"), exports);
133
+ __exportStar(require("./JsonObjectResponseFormat"), exports);
134
+ __exportStar(require("./JsonSchemaResponseFormat"), exports);
132
135
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
133
136
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
134
137
  __exportStar(require("./LlmConfig"), exports);
@@ -193,6 +196,7 @@ __exportStar(require("./SystemMessage"), exports);
193
196
  __exportStar(require("./TagSchema"), exports);
194
197
  __exportStar(require("./TerminalToolRule"), exports);
195
198
  __exportStar(require("./TextContent"), exports);
199
+ __exportStar(require("./TextResponseFormat"), exports);
196
200
  __exportStar(require("./Tool"), exports);
197
201
  __exportStar(require("./ToolCall"), exports);
198
202
  __exportStar(require("./ToolCallContent"), exports);
@@ -10,6 +10,7 @@ import { AgentType } from "../../../../types/AgentType";
10
10
  import { LlmConfig } from "../../../../types/LlmConfig";
11
11
  import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
12
12
  import { MessageCreate } from "../../../../types/MessageCreate";
13
+ import { CreateAgentRequestResponseFormat } from "../../types/CreateAgentRequestResponseFormat";
13
14
  export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Omit<Letta.CreateAgentRequest, "project">>;
14
15
  export declare namespace CreateAgentRequest {
15
16
  interface Raw {
@@ -49,5 +50,6 @@ export declare namespace CreateAgentRequest {
49
50
  identity_ids?: string[] | null;
50
51
  message_buffer_autoclear?: boolean | null;
51
52
  enable_sleeptime?: boolean | null;
53
+ response_format?: CreateAgentRequestResponseFormat.Raw | null;
52
54
  }
53
55
  }
@@ -44,6 +44,7 @@ const AgentType_1 = require("../../../../types/AgentType");
44
44
  const LlmConfig_1 = require("../../../../types/LlmConfig");
45
45
  const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
46
46
  const MessageCreate_1 = require("../../../../types/MessageCreate");
47
+ const CreateAgentRequestResponseFormat_1 = require("../../types/CreateAgentRequestResponseFormat");
47
48
  exports.CreateAgentRequest = core.serialization.object({
48
49
  name: core.serialization.string().optional(),
49
50
  memoryBlocks: core.serialization.property("memory_blocks", core.serialization.list(CreateBlock_1.CreateBlock).optional()),
@@ -81,4 +82,5 @@ exports.CreateAgentRequest = core.serialization.object({
81
82
  identityIds: core.serialization.property("identity_ids", core.serialization.list(core.serialization.string()).optional()),
82
83
  messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean().optional()),
83
84
  enableSleeptime: core.serialization.property("enable_sleeptime", core.serialization.boolean().optional()),
85
+ responseFormat: core.serialization.property("response_format", CreateAgentRequestResponseFormat_1.CreateAgentRequestResponseFormat.optional()),
84
86
  });
@@ -7,6 +7,7 @@ import * as core from "../../../../../core";
7
7
  import { UpdateAgentToolRulesItem } from "../../types/UpdateAgentToolRulesItem";
8
8
  import { LlmConfig } from "../../../../types/LlmConfig";
9
9
  import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
10
+ import { UpdateAgentResponseFormat } from "../../types/UpdateAgentResponseFormat";
10
11
  export declare const UpdateAgent: core.serialization.Schema<serializers.UpdateAgent.Raw, Letta.UpdateAgent>;
11
12
  export declare namespace UpdateAgent {
12
13
  interface Raw {
@@ -31,5 +32,6 @@ export declare namespace UpdateAgent {
31
32
  model?: string | null;
32
33
  embedding?: string | null;
33
34
  enable_sleeptime?: boolean | null;
35
+ response_format?: UpdateAgentResponseFormat.Raw | null;
34
36
  }
35
37
  }
@@ -41,6 +41,7 @@ const core = __importStar(require("../../../../../core"));
41
41
  const UpdateAgentToolRulesItem_1 = require("../../types/UpdateAgentToolRulesItem");
42
42
  const LlmConfig_1 = require("../../../../types/LlmConfig");
43
43
  const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
44
+ const UpdateAgentResponseFormat_1 = require("../../types/UpdateAgentResponseFormat");
44
45
  exports.UpdateAgent = core.serialization.object({
45
46
  name: core.serialization.string().optional(),
46
47
  toolIds: core.serialization.property("tool_ids", core.serialization.list(core.serialization.string()).optional()),
@@ -63,4 +64,5 @@ exports.UpdateAgent = core.serialization.object({
63
64
  model: core.serialization.string().optional(),
64
65
  embedding: core.serialization.string().optional(),
65
66
  enableSleeptime: core.serialization.property("enable_sleeptime", core.serialization.boolean().optional()),
67
+ responseFormat: core.serialization.property("response_format", UpdateAgentResponseFormat_1.UpdateAgentResponseFormat.optional()),
66
68
  });
@@ -0,0 +1,13 @@
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 { JsonObjectResponseFormat } from "../../../types/JsonObjectResponseFormat";
8
+ import { JsonSchemaResponseFormat } from "../../../types/JsonSchemaResponseFormat";
9
+ import { TextResponseFormat } from "../../../types/TextResponseFormat";
10
+ export declare const CreateAgentRequestResponseFormat: core.serialization.Schema<serializers.CreateAgentRequestResponseFormat.Raw, Letta.CreateAgentRequestResponseFormat>;
11
+ export declare namespace CreateAgentRequestResponseFormat {
12
+ type Raw = JsonObjectResponseFormat.Raw | JsonSchemaResponseFormat.Raw | TextResponseFormat.Raw;
13
+ }
@@ -0,0 +1,44 @@
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.CreateAgentRequestResponseFormat = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const JsonObjectResponseFormat_1 = require("../../../types/JsonObjectResponseFormat");
42
+ const JsonSchemaResponseFormat_1 = require("../../../types/JsonSchemaResponseFormat");
43
+ const TextResponseFormat_1 = require("../../../types/TextResponseFormat");
44
+ exports.CreateAgentRequestResponseFormat = core.serialization.undiscriminatedUnion([JsonObjectResponseFormat_1.JsonObjectResponseFormat, JsonSchemaResponseFormat_1.JsonSchemaResponseFormat, TextResponseFormat_1.TextResponseFormat]);
@@ -0,0 +1,13 @@
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 { JsonObjectResponseFormat } from "../../../types/JsonObjectResponseFormat";
8
+ import { JsonSchemaResponseFormat } from "../../../types/JsonSchemaResponseFormat";
9
+ import { TextResponseFormat } from "../../../types/TextResponseFormat";
10
+ export declare const UpdateAgentResponseFormat: core.serialization.Schema<serializers.UpdateAgentResponseFormat.Raw, Letta.UpdateAgentResponseFormat>;
11
+ export declare namespace UpdateAgentResponseFormat {
12
+ type Raw = JsonObjectResponseFormat.Raw | JsonSchemaResponseFormat.Raw | TextResponseFormat.Raw;
13
+ }
@@ -0,0 +1,44 @@
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.UpdateAgentResponseFormat = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const JsonObjectResponseFormat_1 = require("../../../types/JsonObjectResponseFormat");
42
+ const JsonSchemaResponseFormat_1 = require("../../../types/JsonSchemaResponseFormat");
43
+ const TextResponseFormat_1 = require("../../../types/TextResponseFormat");
44
+ exports.UpdateAgentResponseFormat = core.serialization.undiscriminatedUnion([JsonObjectResponseFormat_1.JsonObjectResponseFormat, JsonSchemaResponseFormat_1.JsonSchemaResponseFormat, TextResponseFormat_1.TextResponseFormat]);
@@ -1,5 +1,7 @@
1
1
  export * from "./CreateAgentRequestToolRulesItem";
2
+ export * from "./CreateAgentRequestResponseFormat";
2
3
  export * from "./UpdateAgentToolRulesItem";
4
+ export * from "./UpdateAgentResponseFormat";
3
5
  export * from "./AgentsSearchRequestSearchItemZero";
4
6
  export * from "./AgentsSearchRequestSearchItemOneOperator";
5
7
  export * from "./AgentsSearchRequestSearchItemOne";
@@ -15,7 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateAgentRequestToolRulesItem"), exports);
18
+ __exportStar(require("./CreateAgentRequestResponseFormat"), exports);
18
19
  __exportStar(require("./UpdateAgentToolRulesItem"), exports);
20
+ __exportStar(require("./UpdateAgentResponseFormat"), exports);
19
21
  __exportStar(require("./AgentsSearchRequestSearchItemZero"), exports);
20
22
  __exportStar(require("./AgentsSearchRequestSearchItemOneOperator"), exports);
21
23
  __exportStar(require("./AgentsSearchRequestSearchItemOne"), exports);
@@ -8,6 +8,7 @@ import { AgentStateToolRulesItem } from "./AgentStateToolRulesItem";
8
8
  import { AgentType } from "./AgentType";
9
9
  import { LlmConfig } from "./LlmConfig";
10
10
  import { EmbeddingConfig } from "./EmbeddingConfig";
11
+ import { AgentStateResponseFormat } from "./AgentStateResponseFormat";
11
12
  import { Memory } from "./Memory";
12
13
  import { Tool } from "./Tool";
13
14
  import { Source } from "./Source";
@@ -28,6 +29,7 @@ export declare namespace AgentState {
28
29
  agent_type: AgentType.Raw;
29
30
  llm_config: LlmConfig.Raw;
30
31
  embedding_config: EmbeddingConfig.Raw;
32
+ response_format?: AgentStateResponseFormat.Raw | null;
31
33
  description?: string | null;
32
34
  metadata?: Record<string, unknown> | null;
33
35
  memory: Memory.Raw;
@@ -42,6 +42,7 @@ const AgentStateToolRulesItem_1 = require("./AgentStateToolRulesItem");
42
42
  const AgentType_1 = require("./AgentType");
43
43
  const LlmConfig_1 = require("./LlmConfig");
44
44
  const EmbeddingConfig_1 = require("./EmbeddingConfig");
45
+ const AgentStateResponseFormat_1 = require("./AgentStateResponseFormat");
45
46
  const Memory_1 = require("./Memory");
46
47
  const Tool_1 = require("./Tool");
47
48
  const Source_1 = require("./Source");
@@ -60,6 +61,7 @@ exports.AgentState = core.serialization.object({
60
61
  agentType: core.serialization.property("agent_type", AgentType_1.AgentType),
61
62
  llmConfig: core.serialization.property("llm_config", LlmConfig_1.LlmConfig),
62
63
  embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig),
64
+ responseFormat: core.serialization.property("response_format", AgentStateResponseFormat_1.AgentStateResponseFormat.optional()),
63
65
  description: core.serialization.string().optional(),
64
66
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
65
67
  memory: Memory_1.Memory,
@@ -0,0 +1,13 @@
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 { JsonObjectResponseFormat } from "./JsonObjectResponseFormat";
8
+ import { JsonSchemaResponseFormat } from "./JsonSchemaResponseFormat";
9
+ import { TextResponseFormat } from "./TextResponseFormat";
10
+ export declare const AgentStateResponseFormat: core.serialization.Schema<serializers.AgentStateResponseFormat.Raw, Letta.AgentStateResponseFormat>;
11
+ export declare namespace AgentStateResponseFormat {
12
+ type Raw = JsonObjectResponseFormat.Raw | JsonSchemaResponseFormat.Raw | TextResponseFormat.Raw;
13
+ }
@@ -0,0 +1,44 @@
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.AgentStateResponseFormat = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const JsonObjectResponseFormat_1 = require("./JsonObjectResponseFormat");
42
+ const JsonSchemaResponseFormat_1 = require("./JsonSchemaResponseFormat");
43
+ const TextResponseFormat_1 = require("./TextResponseFormat");
44
+ exports.AgentStateResponseFormat = core.serialization.undiscriminatedUnion([JsonObjectResponseFormat_1.JsonObjectResponseFormat, JsonSchemaResponseFormat_1.JsonSchemaResponseFormat, TextResponseFormat_1.TextResponseFormat]);