@letta-ai/letta-client 0.1.43 → 0.1.45

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 (82) hide show
  1. package/api/resources/agents/client/Client.d.ts +16 -0
  2. package/api/resources/agents/client/Client.js +77 -7
  3. package/api/resources/agents/client/requests/PassageUpdate.d.ts +38 -0
  4. package/api/resources/agents/client/requests/PassageUpdate.js +5 -0
  5. package/api/resources/agents/client/requests/index.d.ts +1 -0
  6. package/api/resources/agents/resources/blocks/client/Client.d.ts +5 -5
  7. package/api/resources/agents/resources/blocks/client/Client.js +10 -10
  8. package/api/resources/agents/resources/context/client/Client.js +1 -1
  9. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  10. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  11. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  12. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  13. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  14. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  15. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  16. package/api/resources/blocks/client/Client.js +6 -6
  17. package/api/resources/health/client/Client.js +1 -1
  18. package/api/resources/identities/client/Client.js +6 -6
  19. package/api/resources/jobs/client/Client.js +4 -4
  20. package/api/resources/models/client/Client.js +2 -2
  21. package/api/resources/providers/client/Client.js +4 -4
  22. package/api/resources/runs/client/Client.js +6 -6
  23. package/api/resources/sources/client/Client.js +6 -6
  24. package/api/resources/sources/resources/files/client/Client.js +3 -3
  25. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  26. package/api/resources/steps/client/Client.js +2 -2
  27. package/api/resources/tag/client/Client.js +1 -1
  28. package/api/resources/templates/client/Client.js +1 -1
  29. package/api/resources/tools/client/Client.js +11 -11
  30. package/api/resources/voice/client/Client.js +1 -1
  31. package/dist/api/resources/agents/client/Client.d.ts +16 -0
  32. package/dist/api/resources/agents/client/Client.js +77 -7
  33. package/dist/api/resources/agents/client/requests/PassageUpdate.d.ts +38 -0
  34. package/dist/api/resources/agents/client/requests/PassageUpdate.js +5 -0
  35. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  36. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +5 -5
  37. package/dist/api/resources/agents/resources/blocks/client/Client.js +10 -10
  38. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  39. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  40. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  41. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  42. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  43. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  44. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  45. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  46. package/dist/api/resources/blocks/client/Client.js +6 -6
  47. package/dist/api/resources/health/client/Client.js +1 -1
  48. package/dist/api/resources/identities/client/Client.js +6 -6
  49. package/dist/api/resources/jobs/client/Client.js +4 -4
  50. package/dist/api/resources/models/client/Client.js +2 -2
  51. package/dist/api/resources/providers/client/Client.js +4 -4
  52. package/dist/api/resources/runs/client/Client.js +6 -6
  53. package/dist/api/resources/sources/client/Client.js +6 -6
  54. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  55. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  56. package/dist/api/resources/steps/client/Client.js +2 -2
  57. package/dist/api/resources/tag/client/Client.js +1 -1
  58. package/dist/api/resources/templates/client/Client.js +1 -1
  59. package/dist/api/resources/tools/client/Client.js +11 -11
  60. package/dist/api/resources/voice/client/Client.js +1 -1
  61. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  62. package/dist/serialization/resources/agents/client/index.js +2 -1
  63. package/dist/serialization/resources/agents/client/modifyPassage.d.ts +11 -0
  64. package/dist/serialization/resources/agents/client/modifyPassage.js +42 -0
  65. package/dist/serialization/resources/agents/client/requests/PassageUpdate.d.ts +25 -0
  66. package/dist/serialization/resources/agents/client/requests/PassageUpdate.js +56 -0
  67. package/dist/serialization/resources/agents/client/requests/index.d.ts +1 -0
  68. package/dist/serialization/resources/agents/client/requests/index.js +3 -1
  69. package/dist/version.d.ts +1 -1
  70. package/dist/version.js +1 -1
  71. package/package.json +1 -1
  72. package/reference.md +86 -5
  73. package/serialization/resources/agents/client/index.d.ts +1 -0
  74. package/serialization/resources/agents/client/index.js +2 -1
  75. package/serialization/resources/agents/client/modifyPassage.d.ts +11 -0
  76. package/serialization/resources/agents/client/modifyPassage.js +42 -0
  77. package/serialization/resources/agents/client/requests/PassageUpdate.d.ts +25 -0
  78. package/serialization/resources/agents/client/requests/PassageUpdate.js +56 -0
  79. package/serialization/resources/agents/client/requests/index.d.ts +1 -0
  80. package/serialization/resources/agents/client/requests/index.js +3 -1
  81. package/version.d.ts +1 -1
  82. package/version.js +1 -1
@@ -100,7 +100,7 @@ class Steps {
100
100
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
101
101
  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/steps"),
102
102
  method: "GET",
103
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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),
103
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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),
104
104
  contentType: "application/json",
105
105
  queryParameters: _queryParams,
106
106
  requestType: "json",
@@ -166,7 +166,7 @@ class Steps {
166
166
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
167
167
  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/steps/${encodeURIComponent(stepId)}`),
168
168
  method: "GET",
169
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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),
169
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tag {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  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/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -75,7 +75,7 @@ class Templates {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  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/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
77
77
  method: "POST",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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),
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  body: serializers.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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,
@@ -80,7 +80,7 @@ class Voice {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  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/chat/completions"),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.43", "User-Agent": "@letta-ai/letta-client/0.1.43", "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),
83
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.45", "User-Agent": "@letta-ai/letta-client/0.1.45", "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
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  body: serializers.CreateVoiceChatCompletionsRequest.jsonOrThrow(request, {
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as modifyPassage from "./modifyPassage";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.list = void 0;
39
+ exports.modifyPassage = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
+ exports.modifyPassage = __importStar(require("./modifyPassage"));
41
42
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,11 @@
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 { Passage } from "../../../types/Passage";
8
+ export declare const Response: core.serialization.Schema<serializers.agents.modifyPassage.Response.Raw, Letta.Passage[]>;
9
+ export declare namespace Response {
10
+ type Raw = Passage.Raw[];
11
+ }
@@ -0,0 +1,42 @@
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.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const Passage_1 = require("../../../types/Passage");
42
+ exports.Response = core.serialization.list(Passage_1.Passage);
@@ -0,0 +1,25 @@
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 { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
8
+ export declare const PassageUpdate: core.serialization.Schema<serializers.PassageUpdate.Raw, Letta.PassageUpdate>;
9
+ export declare namespace PassageUpdate {
10
+ interface Raw {
11
+ created_by_id?: string | null;
12
+ last_updated_by_id?: string | null;
13
+ created_at?: string | null;
14
+ updated_at?: string | null;
15
+ is_deleted?: boolean | null;
16
+ agent_id?: string | null;
17
+ source_id?: string | null;
18
+ file_id?: string | null;
19
+ metadata_?: Record<string, unknown> | null;
20
+ text?: string | null;
21
+ embedding?: number[] | null;
22
+ embedding_config?: EmbeddingConfig.Raw | null;
23
+ id: string;
24
+ }
25
+ }
@@ -0,0 +1,56 @@
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.PassageUpdate = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
42
+ exports.PassageUpdate = core.serialization.object({
43
+ createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
44
+ lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
45
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
46
+ updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
47
+ isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
48
+ passageUpdateAgentId: core.serialization.property("agent_id", core.serialization.string().optional()),
49
+ sourceId: core.serialization.property("source_id", core.serialization.string().optional()),
50
+ fileId: core.serialization.property("file_id", core.serialization.string().optional()),
51
+ metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
52
+ text: core.serialization.string().optional(),
53
+ embedding: core.serialization.list(core.serialization.number()).optional(),
54
+ embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
55
+ id: core.serialization.string(),
56
+ });
@@ -1,3 +1,4 @@
1
1
  export { CreateAgentRequest } from "./CreateAgentRequest";
2
2
  export { UpdateAgent } from "./UpdateAgent";
3
+ export { PassageUpdate } from "./PassageUpdate";
3
4
  export { AgentsSearchRequest } from "./AgentsSearchRequest";
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AgentsSearchRequest = exports.UpdateAgent = exports.CreateAgentRequest = void 0;
3
+ exports.AgentsSearchRequest = exports.PassageUpdate = exports.UpdateAgent = exports.CreateAgentRequest = void 0;
4
4
  var CreateAgentRequest_1 = require("./CreateAgentRequest");
5
5
  Object.defineProperty(exports, "CreateAgentRequest", { enumerable: true, get: function () { return CreateAgentRequest_1.CreateAgentRequest; } });
6
6
  var UpdateAgent_1 = require("./UpdateAgent");
7
7
  Object.defineProperty(exports, "UpdateAgent", { enumerable: true, get: function () { return UpdateAgent_1.UpdateAgent; } });
8
+ var PassageUpdate_1 = require("./PassageUpdate");
9
+ Object.defineProperty(exports, "PassageUpdate", { enumerable: true, get: function () { return PassageUpdate_1.PassageUpdate; } });
8
10
  var AgentsSearchRequest_1 = require("./AgentsSearchRequest");
9
11
  Object.defineProperty(exports, "AgentsSearchRequest", { enumerable: true, get: function () { return AgentsSearchRequest_1.AgentsSearchRequest; } });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.43";
1
+ export declare const SDK_VERSION = "0.1.45";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.43";
4
+ exports.SDK_VERSION = "0.1.45";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.43",
3
+ "version": "0.1.45",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1404,6 +1404,87 @@ await client.agents.modify("agent_id");
1404
1404
  </dl>
1405
1405
  </details>
1406
1406
 
1407
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">modifyPassage</a>(agentId, memoryId, { ...params }) -> Letta.Passage[]</code></summary>
1408
+ <dl>
1409
+ <dd>
1410
+
1411
+ #### 📝 Description
1412
+
1413
+ <dl>
1414
+ <dd>
1415
+
1416
+ <dl>
1417
+ <dd>
1418
+
1419
+ Modify a memory in the agent's archival memory store.
1420
+
1421
+ </dd>
1422
+ </dl>
1423
+ </dd>
1424
+ </dl>
1425
+
1426
+ #### 🔌 Usage
1427
+
1428
+ <dl>
1429
+ <dd>
1430
+
1431
+ <dl>
1432
+ <dd>
1433
+
1434
+ ```typescript
1435
+ await client.agents.modifyPassage("agent_id", "memory_id", {
1436
+ id: "id",
1437
+ });
1438
+ ```
1439
+
1440
+ </dd>
1441
+ </dl>
1442
+ </dd>
1443
+ </dl>
1444
+
1445
+ #### ⚙️ Parameters
1446
+
1447
+ <dl>
1448
+ <dd>
1449
+
1450
+ <dl>
1451
+ <dd>
1452
+
1453
+ **agentId:** `string`
1454
+
1455
+ </dd>
1456
+ </dl>
1457
+
1458
+ <dl>
1459
+ <dd>
1460
+
1461
+ **memoryId:** `string`
1462
+
1463
+ </dd>
1464
+ </dl>
1465
+
1466
+ <dl>
1467
+ <dd>
1468
+
1469
+ **request:** `Letta.PassageUpdate`
1470
+
1471
+ </dd>
1472
+ </dl>
1473
+
1474
+ <dl>
1475
+ <dd>
1476
+
1477
+ **requestOptions:** `Agents.RequestOptions`
1478
+
1479
+ </dd>
1480
+ </dl>
1481
+ </dd>
1482
+ </dl>
1483
+
1484
+ </dd>
1485
+ </dl>
1486
+ </details>
1487
+
1407
1488
  <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">resetMessages</a>(agentId, { ...params }) -> Letta.AgentState</code></summary>
1408
1489
  <dl>
1409
1490
  <dd>
@@ -4106,7 +4187,7 @@ await client.agents.coreMemory.retrieve("agent_id");
4106
4187
  <dl>
4107
4188
  <dd>
4108
4189
 
4109
- Retrieve a memory block from an agent.
4190
+ Retrieve a core memory block from an agent.
4110
4191
 
4111
4192
  </dd>
4112
4193
  </dl>
@@ -4177,7 +4258,7 @@ await client.agents.blocks.retrieve("agent_id", "block_label");
4177
4258
  <dl>
4178
4259
  <dd>
4179
4260
 
4180
- Updates a memory block of an agent.
4261
+ Updates a core memory block of an agent.
4181
4262
 
4182
4263
  </dd>
4183
4264
  </dl>
@@ -4256,7 +4337,7 @@ await client.agents.blocks.modify("agent_id", "block_label", {});
4256
4337
  <dl>
4257
4338
  <dd>
4258
4339
 
4259
- Retrieve the memory blocks of a specific agent.
4340
+ Retrieve the core memory blocks of a specific agent.
4260
4341
 
4261
4342
  </dd>
4262
4343
  </dl>
@@ -4319,7 +4400,7 @@ await client.agents.blocks.list("agent_id");
4319
4400
  <dl>
4320
4401
  <dd>
4321
4402
 
4322
- Attach a block to an agent.
4403
+ Attach a core memoryblock to an agent.
4323
4404
 
4324
4405
  </dd>
4325
4406
  </dl>
@@ -4390,7 +4471,7 @@ await client.agents.blocks.attach("agent_id", "block_id");
4390
4471
  <dl>
4391
4472
  <dd>
4392
4473
 
4393
- Detach a block from an agent.
4474
+ Detach a core memory block from an agent.
4394
4475
 
4395
4476
  </dd>
4396
4477
  </dl>
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as modifyPassage from "./modifyPassage";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.list = void 0;
39
+ exports.modifyPassage = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
+ exports.modifyPassage = __importStar(require("./modifyPassage"));
41
42
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,11 @@
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 { Passage } from "../../../types/Passage";
8
+ export declare const Response: core.serialization.Schema<serializers.agents.modifyPassage.Response.Raw, Letta.Passage[]>;
9
+ export declare namespace Response {
10
+ type Raw = Passage.Raw[];
11
+ }
@@ -0,0 +1,42 @@
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.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const Passage_1 = require("../../../types/Passage");
42
+ exports.Response = core.serialization.list(Passage_1.Passage);
@@ -0,0 +1,25 @@
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 { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
8
+ export declare const PassageUpdate: core.serialization.Schema<serializers.PassageUpdate.Raw, Letta.PassageUpdate>;
9
+ export declare namespace PassageUpdate {
10
+ interface Raw {
11
+ created_by_id?: string | null;
12
+ last_updated_by_id?: string | null;
13
+ created_at?: string | null;
14
+ updated_at?: string | null;
15
+ is_deleted?: boolean | null;
16
+ agent_id?: string | null;
17
+ source_id?: string | null;
18
+ file_id?: string | null;
19
+ metadata_?: Record<string, unknown> | null;
20
+ text?: string | null;
21
+ embedding?: number[] | null;
22
+ embedding_config?: EmbeddingConfig.Raw | null;
23
+ id: string;
24
+ }
25
+ }