@letta-ai/letta-client 0.1.15 → 0.1.16

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 (59) hide show
  1. package/api/resources/agents/client/Client.js +7 -7
  2. package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  5. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +9 -6
  7. package/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/blocks/client/Client.js +6 -6
  12. package/api/resources/health/client/Client.js +1 -1
  13. package/api/resources/jobs/client/Client.js +4 -4
  14. package/api/resources/models/client/Client.js +2 -2
  15. package/api/resources/providers/client/Client.js +4 -4
  16. package/api/resources/runs/client/Client.js +6 -6
  17. package/api/resources/sources/client/Client.js +6 -6
  18. package/api/resources/sources/resources/files/client/Client.js +3 -3
  19. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  20. package/api/resources/tag/client/Client.js +1 -1
  21. package/api/resources/tools/client/Client.js +11 -11
  22. package/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
  23. package/api/types/ToolCreate.d.ts +0 -2
  24. package/dist/api/resources/agents/client/Client.js +7 -7
  25. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  26. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  27. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  28. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  29. package/dist/api/resources/agents/resources/messages/client/Client.js +9 -6
  30. package/dist/api/resources/agents/resources/messages/client/requests/MessagesListRequest.d.ts +4 -0
  31. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  32. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  33. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  34. package/dist/api/resources/blocks/client/Client.js +6 -6
  35. package/dist/api/resources/health/client/Client.js +1 -1
  36. package/dist/api/resources/jobs/client/Client.js +4 -4
  37. package/dist/api/resources/models/client/Client.js +2 -2
  38. package/dist/api/resources/providers/client/Client.js +4 -4
  39. package/dist/api/resources/runs/client/Client.js +6 -6
  40. package/dist/api/resources/sources/client/Client.js +6 -6
  41. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  42. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  43. package/dist/api/resources/tag/client/Client.js +1 -1
  44. package/dist/api/resources/tools/client/Client.js +11 -11
  45. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +0 -2
  46. package/dist/api/types/ToolCreate.d.ts +0 -2
  47. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
  48. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
  49. package/dist/serialization/types/ToolCreate.d.ts +0 -1
  50. package/dist/serialization/types/ToolCreate.js +0 -1
  51. package/dist/version.d.ts +1 -1
  52. package/dist/version.js +1 -1
  53. package/package.json +1 -1
  54. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +0 -1
  55. package/serialization/resources/tools/client/requests/ToolUpdate.js +0 -1
  56. package/serialization/types/ToolCreate.d.ts +0 -1
  57. package/serialization/types/ToolCreate.js +0 -1
  58. package/version.d.ts +1 -1
  59. 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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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" }),
@@ -275,7 +275,7 @@ class Tools {
275
275
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
276
276
  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/"),
277
277
  method: "GET",
278
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
278
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
279
279
  contentType: "application/json",
280
280
  queryParameters: _queryParams,
281
281
  requestType: "json",
@@ -343,7 +343,7 @@ class Tools {
343
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
344
  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/"),
345
345
  method: "POST",
346
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
346
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
347
347
  contentType: "application/json",
348
348
  requestType: "json",
349
349
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -411,7 +411,7 @@ class Tools {
411
411
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
412
412
  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/"),
413
413
  method: "PUT",
414
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
414
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
415
415
  contentType: "application/json",
416
416
  requestType: "json",
417
417
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -476,7 +476,7 @@ class Tools {
476
476
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
477
477
  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"),
478
478
  method: "POST",
479
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
479
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
480
480
  contentType: "application/json",
481
481
  requestType: "json",
482
482
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -546,7 +546,7 @@ class Tools {
546
546
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
547
547
  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"),
548
548
  method: "POST",
549
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
549
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
550
550
  contentType: "application/json",
551
551
  requestType: "json",
552
552
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -611,7 +611,7 @@ class Tools {
611
611
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
612
612
  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"),
613
613
  method: "GET",
614
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
614
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
615
615
  contentType: "application/json",
616
616
  requestType: "json",
617
617
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -676,7 +676,7 @@ class Tools {
676
676
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
677
677
  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`),
678
678
  method: "GET",
679
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
679
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
680
680
  contentType: "application/json",
681
681
  requestType: "json",
682
682
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -741,7 +741,7 @@ class Tools {
741
741
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
742
742
  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)}`),
743
743
  method: "POST",
744
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.15", "User-Agent": "@letta-ai/letta-client/0.1.15", "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),
744
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.16", "User-Agent": "@letta-ai/letta-client/0.1.16", "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),
745
745
  contentType: "application/json",
746
746
  requestType: "json",
747
747
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,8 +8,6 @@
8
8
  export interface ToolUpdate {
9
9
  /** The description of the tool. */
10
10
  description?: string;
11
- /** The name of the function. */
12
- name?: string;
13
11
  /** Metadata tags. */
14
12
  tags?: string[];
15
13
  /** The source code of the function. */
@@ -2,8 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface ToolCreate {
5
- /** The name of the function (auto-generated from source_code if not provided). */
6
- name?: string;
7
5
  /** The description of the tool. */
8
6
  description?: string;
9
7
  /** Metadata tags. */
@@ -8,7 +8,6 @@ export declare const ToolUpdate: core.serialization.Schema<serializers.ToolUpdat
8
8
  export declare namespace ToolUpdate {
9
9
  interface Raw {
10
10
  description?: string | null;
11
- name?: string | null;
12
11
  tags?: string[] | null;
13
12
  source_code?: string | null;
14
13
  source_type?: string | null;
@@ -40,7 +40,6 @@ exports.ToolUpdate = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  exports.ToolUpdate = core.serialization.object({
42
42
  description: core.serialization.string().optional(),
43
- name: core.serialization.string().optional(),
44
43
  tags: core.serialization.list(core.serialization.string()).optional(),
45
44
  sourceCode: core.serialization.property("source_code", core.serialization.string().optional()),
46
45
  sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
@@ -7,7 +7,6 @@ import * as core from "../../core";
7
7
  export declare const ToolCreate: core.serialization.ObjectSchema<serializers.ToolCreate.Raw, Letta.ToolCreate>;
8
8
  export declare namespace ToolCreate {
9
9
  interface Raw {
10
- name?: string | null;
11
10
  description?: string | null;
12
11
  tags?: string[] | null;
13
12
  source_code: string;
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolCreate = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.ToolCreate = core.serialization.object({
42
- name: core.serialization.string().optional(),
43
42
  description: core.serialization.string().optional(),
44
43
  tags: core.serialization.list(core.serialization.string()).optional(),
45
44
  sourceCode: core.serialization.property("source_code", core.serialization.string()),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.15";
1
+ export declare const SDK_VERSION = "0.1.16";
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.15";
4
+ exports.SDK_VERSION = "0.1.16";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -8,7 +8,6 @@ export declare const ToolUpdate: core.serialization.Schema<serializers.ToolUpdat
8
8
  export declare namespace ToolUpdate {
9
9
  interface Raw {
10
10
  description?: string | null;
11
- name?: string | null;
12
11
  tags?: string[] | null;
13
12
  source_code?: string | null;
14
13
  source_type?: string | null;
@@ -40,7 +40,6 @@ exports.ToolUpdate = void 0;
40
40
  const core = __importStar(require("../../../../../core"));
41
41
  exports.ToolUpdate = core.serialization.object({
42
42
  description: core.serialization.string().optional(),
43
- name: core.serialization.string().optional(),
44
43
  tags: core.serialization.list(core.serialization.string()).optional(),
45
44
  sourceCode: core.serialization.property("source_code", core.serialization.string().optional()),
46
45
  sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
@@ -7,7 +7,6 @@ import * as core from "../../core";
7
7
  export declare const ToolCreate: core.serialization.ObjectSchema<serializers.ToolCreate.Raw, Letta.ToolCreate>;
8
8
  export declare namespace ToolCreate {
9
9
  interface Raw {
10
- name?: string | null;
11
10
  description?: string | null;
12
11
  tags?: string[] | null;
13
12
  source_code: string;
@@ -39,7 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ToolCreate = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.ToolCreate = core.serialization.object({
42
- name: core.serialization.string().optional(),
43
42
  description: core.serialization.string().optional(),
44
43
  tags: core.serialization.list(core.serialization.string()).optional(),
45
44
  sourceCode: core.serialization.property("source_code", core.serialization.string()),
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.15";
1
+ export declare const SDK_VERSION = "0.1.16";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.15";
4
+ exports.SDK_VERSION = "0.1.16";