@letta-ai/letta-client 0.1.49 → 0.1.51

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 (87) hide show
  1. package/api/resources/agents/client/Client.js +15 -12
  2. package/api/resources/agents/client/requests/BodyUploadAgentSerialized.d.ts +6 -2
  3. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  8. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/blocks/client/Client.js +6 -6
  13. package/api/resources/health/client/Client.js +1 -1
  14. package/api/resources/identities/client/Client.js +6 -6
  15. package/api/resources/jobs/client/Client.js +4 -4
  16. package/api/resources/models/client/Client.js +2 -2
  17. package/api/resources/providers/client/Client.js +4 -4
  18. package/api/resources/runs/client/Client.js +7 -7
  19. package/api/resources/sources/client/Client.js +6 -6
  20. package/api/resources/sources/resources/files/client/Client.js +3 -3
  21. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  22. package/api/resources/steps/client/Client.js +2 -2
  23. package/api/resources/tag/client/Client.js +1 -1
  24. package/api/resources/templates/client/Client.js +1 -1
  25. package/api/resources/tools/client/Client.js +11 -11
  26. package/api/resources/voice/client/Client.js +1 -1
  27. package/api/types/Message.d.ts +4 -0
  28. package/api/types/ToolReturn.d.ts +12 -0
  29. package/api/types/ToolReturn.js +5 -0
  30. package/api/types/ToolReturnStatus.d.ts +11 -0
  31. package/api/types/ToolReturnStatus.js +10 -0
  32. package/api/types/index.d.ts +2 -0
  33. package/api/types/index.js +2 -0
  34. package/dist/api/resources/agents/client/Client.js +15 -12
  35. package/dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.d.ts +6 -2
  36. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  37. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  38. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  39. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  40. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  41. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  42. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  43. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  44. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  45. package/dist/api/resources/blocks/client/Client.js +6 -6
  46. package/dist/api/resources/health/client/Client.js +1 -1
  47. package/dist/api/resources/identities/client/Client.js +6 -6
  48. package/dist/api/resources/jobs/client/Client.js +4 -4
  49. package/dist/api/resources/models/client/Client.js +2 -2
  50. package/dist/api/resources/providers/client/Client.js +4 -4
  51. package/dist/api/resources/runs/client/Client.js +7 -7
  52. package/dist/api/resources/sources/client/Client.js +6 -6
  53. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  54. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  55. package/dist/api/resources/steps/client/Client.js +2 -2
  56. package/dist/api/resources/tag/client/Client.js +1 -1
  57. package/dist/api/resources/templates/client/Client.js +1 -1
  58. package/dist/api/resources/tools/client/Client.js +11 -11
  59. package/dist/api/resources/voice/client/Client.js +1 -1
  60. package/dist/api/types/Message.d.ts +4 -0
  61. package/dist/api/types/ToolReturn.d.ts +12 -0
  62. package/dist/api/types/ToolReturn.js +5 -0
  63. package/dist/api/types/ToolReturnStatus.d.ts +11 -0
  64. package/dist/api/types/ToolReturnStatus.js +10 -0
  65. package/dist/api/types/index.d.ts +2 -0
  66. package/dist/api/types/index.js +2 -0
  67. package/dist/serialization/types/Message.d.ts +3 -0
  68. package/dist/serialization/types/Message.js +3 -0
  69. package/dist/serialization/types/ToolReturn.d.ts +15 -0
  70. package/dist/serialization/types/ToolReturn.js +46 -0
  71. package/dist/serialization/types/ToolReturnStatus.d.ts +10 -0
  72. package/dist/serialization/types/ToolReturnStatus.js +41 -0
  73. package/dist/serialization/types/index.d.ts +2 -0
  74. package/dist/serialization/types/index.js +2 -0
  75. package/dist/version.d.ts +1 -1
  76. package/dist/version.js +1 -1
  77. package/package.json +1 -1
  78. package/serialization/types/Message.d.ts +3 -0
  79. package/serialization/types/Message.js +3 -0
  80. package/serialization/types/ToolReturn.d.ts +15 -0
  81. package/serialization/types/ToolReturn.js +46 -0
  82. package/serialization/types/ToolReturnStatus.d.ts +10 -0
  83. package/serialization/types/ToolReturnStatus.js +41 -0
  84. package/serialization/types/index.d.ts +2 -0
  85. package/serialization/types/index.js +2 -0
  86. package/version.d.ts +1 -1
  87. package/version.js +1 -1
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  const MessageRole_1 = require("./MessageRole");
42
42
  const TextContent_1 = require("./TextContent");
43
43
  const ChatCompletionMessageToolCallOutput_1 = require("./ChatCompletionMessageToolCallOutput");
44
+ const ToolReturn_1 = require("./ToolReturn");
44
45
  exports.Message = core.serialization.object({
45
46
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
46
47
  lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
@@ -55,4 +56,6 @@ exports.Message = core.serialization.object({
55
56
  toolCalls: core.serialization.property("tool_calls", core.serialization.list(ChatCompletionMessageToolCallOutput_1.ChatCompletionMessageToolCallOutput).optional()),
56
57
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
57
58
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
59
+ otid: core.serialization.string().optional(),
60
+ toolReturns: core.serialization.property("tool_returns", core.serialization.list(ToolReturn_1.ToolReturn).optional()),
58
61
  });
@@ -0,0 +1,15 @@
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 { ToolReturnStatus } from "./ToolReturnStatus";
8
+ export declare const ToolReturn: core.serialization.ObjectSchema<serializers.ToolReturn.Raw, Letta.ToolReturn>;
9
+ export declare namespace ToolReturn {
10
+ interface Raw {
11
+ status: ToolReturnStatus.Raw;
12
+ stdout?: string[] | null;
13
+ stderr?: string[] | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.ToolReturn = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ToolReturnStatus_1 = require("./ToolReturnStatus");
42
+ exports.ToolReturn = core.serialization.object({
43
+ status: ToolReturnStatus_1.ToolReturnStatus,
44
+ stdout: core.serialization.list(core.serialization.string()).optional(),
45
+ stderr: core.serialization.list(core.serialization.string()).optional(),
46
+ });
@@ -0,0 +1,10 @@
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
+ export declare const ToolReturnStatus: core.serialization.Schema<serializers.ToolReturnStatus.Raw, Letta.ToolReturnStatus>;
8
+ export declare namespace ToolReturnStatus {
9
+ type Raw = "success" | "error";
10
+ }
@@ -0,0 +1,41 @@
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.ToolReturnStatus = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ToolReturnStatus = core.serialization.enum_(["success", "error"]);
@@ -144,6 +144,8 @@ export * from "./ToolCallDelta";
144
144
  export * from "./ToolCallMessageToolCall";
145
145
  export * from "./ToolCallMessage";
146
146
  export * from "./ToolCreate";
147
+ export * from "./ToolReturnStatus";
148
+ export * from "./ToolReturn";
147
149
  export * from "./ToolReturnMessageStatus";
148
150
  export * from "./ToolReturnMessage";
149
151
  export * from "./ToolType";
@@ -160,6 +160,8 @@ __exportStar(require("./ToolCallDelta"), exports);
160
160
  __exportStar(require("./ToolCallMessageToolCall"), exports);
161
161
  __exportStar(require("./ToolCallMessage"), exports);
162
162
  __exportStar(require("./ToolCreate"), exports);
163
+ __exportStar(require("./ToolReturnStatus"), exports);
164
+ __exportStar(require("./ToolReturn"), exports);
163
165
  __exportStar(require("./ToolReturnMessageStatus"), exports);
164
166
  __exportStar(require("./ToolReturnMessage"), exports);
165
167
  __exportStar(require("./ToolType"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.49";
1
+ export declare const SDK_VERSION = "0.1.51";
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.49";
4
+ exports.SDK_VERSION = "0.1.51";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.49",
3
+ "version": "0.1.51",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -7,6 +7,7 @@ import * as core from "../../core";
7
7
  import { MessageRole } from "./MessageRole";
8
8
  import { TextContent } from "./TextContent";
9
9
  import { ChatCompletionMessageToolCallOutput } from "./ChatCompletionMessageToolCallOutput";
10
+ import { ToolReturn } from "./ToolReturn";
10
11
  export declare const Message: core.serialization.ObjectSchema<serializers.Message.Raw, Letta.Message>;
11
12
  export declare namespace Message {
12
13
  interface Raw {
@@ -23,5 +24,7 @@ export declare namespace Message {
23
24
  tool_calls?: ChatCompletionMessageToolCallOutput.Raw[] | null;
24
25
  tool_call_id?: string | null;
25
26
  step_id?: string | null;
27
+ otid?: string | null;
28
+ tool_returns?: ToolReturn.Raw[] | null;
26
29
  }
27
30
  }
@@ -41,6 +41,7 @@ const core = __importStar(require("../../core"));
41
41
  const MessageRole_1 = require("./MessageRole");
42
42
  const TextContent_1 = require("./TextContent");
43
43
  const ChatCompletionMessageToolCallOutput_1 = require("./ChatCompletionMessageToolCallOutput");
44
+ const ToolReturn_1 = require("./ToolReturn");
44
45
  exports.Message = core.serialization.object({
45
46
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
46
47
  lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
@@ -55,4 +56,6 @@ exports.Message = core.serialization.object({
55
56
  toolCalls: core.serialization.property("tool_calls", core.serialization.list(ChatCompletionMessageToolCallOutput_1.ChatCompletionMessageToolCallOutput).optional()),
56
57
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
57
58
  stepId: core.serialization.property("step_id", core.serialization.string().optional()),
59
+ otid: core.serialization.string().optional(),
60
+ toolReturns: core.serialization.property("tool_returns", core.serialization.list(ToolReturn_1.ToolReturn).optional()),
58
61
  });
@@ -0,0 +1,15 @@
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 { ToolReturnStatus } from "./ToolReturnStatus";
8
+ export declare const ToolReturn: core.serialization.ObjectSchema<serializers.ToolReturn.Raw, Letta.ToolReturn>;
9
+ export declare namespace ToolReturn {
10
+ interface Raw {
11
+ status: ToolReturnStatus.Raw;
12
+ stdout?: string[] | null;
13
+ stderr?: string[] | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.ToolReturn = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ToolReturnStatus_1 = require("./ToolReturnStatus");
42
+ exports.ToolReturn = core.serialization.object({
43
+ status: ToolReturnStatus_1.ToolReturnStatus,
44
+ stdout: core.serialization.list(core.serialization.string()).optional(),
45
+ stderr: core.serialization.list(core.serialization.string()).optional(),
46
+ });
@@ -0,0 +1,10 @@
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
+ export declare const ToolReturnStatus: core.serialization.Schema<serializers.ToolReturnStatus.Raw, Letta.ToolReturnStatus>;
8
+ export declare namespace ToolReturnStatus {
9
+ type Raw = "success" | "error";
10
+ }
@@ -0,0 +1,41 @@
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.ToolReturnStatus = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ToolReturnStatus = core.serialization.enum_(["success", "error"]);
@@ -144,6 +144,8 @@ export * from "./ToolCallDelta";
144
144
  export * from "./ToolCallMessageToolCall";
145
145
  export * from "./ToolCallMessage";
146
146
  export * from "./ToolCreate";
147
+ export * from "./ToolReturnStatus";
148
+ export * from "./ToolReturn";
147
149
  export * from "./ToolReturnMessageStatus";
148
150
  export * from "./ToolReturnMessage";
149
151
  export * from "./ToolType";
@@ -160,6 +160,8 @@ __exportStar(require("./ToolCallDelta"), exports);
160
160
  __exportStar(require("./ToolCallMessageToolCall"), exports);
161
161
  __exportStar(require("./ToolCallMessage"), exports);
162
162
  __exportStar(require("./ToolCreate"), exports);
163
+ __exportStar(require("./ToolReturnStatus"), exports);
164
+ __exportStar(require("./ToolReturn"), exports);
163
165
  __exportStar(require("./ToolReturnMessageStatus"), exports);
164
166
  __exportStar(require("./ToolReturnMessage"), exports);
165
167
  __exportStar(require("./ToolType"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.49";
1
+ export declare const SDK_VERSION = "0.1.51";
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.49";
4
+ exports.SDK_VERSION = "0.1.51";