@letta-ai/letta-client 0.1.63 → 0.1.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/api/resources/agents/client/Client.d.ts +7 -7
  2. package/api/resources/agents/client/Client.js +28 -22
  3. package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  4. package/api/resources/agents/client/requests/index.d.ts +1 -1
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  10. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/groups/client/Client.js +7 -7
  16. package/api/resources/health/client/Client.js +1 -1
  17. package/api/resources/identities/client/Client.js +6 -6
  18. package/api/resources/jobs/client/Client.js +4 -4
  19. package/api/resources/models/client/Client.js +2 -2
  20. package/api/resources/providers/client/Client.js +4 -4
  21. package/api/resources/runs/client/Client.js +7 -7
  22. package/api/resources/sources/client/Client.js +6 -6
  23. package/api/resources/sources/resources/files/client/Client.js +3 -3
  24. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  25. package/api/resources/steps/client/Client.js +2 -2
  26. package/api/resources/tag/client/Client.js +1 -1
  27. package/api/resources/templates/client/Client.js +1 -1
  28. package/api/resources/tools/client/Client.js +16 -16
  29. package/api/resources/voice/client/Client.js +1 -1
  30. package/api/types/AgentSchema.d.ts +27 -0
  31. package/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  32. package/api/types/CoreMemoryBlockSchema.js +5 -0
  33. package/api/types/MessageSchema.d.ts +16 -0
  34. package/api/types/MessageSchema.js +5 -0
  35. package/api/types/ParameterProperties.d.ts +7 -0
  36. package/api/types/ParameterProperties.js +5 -0
  37. package/api/types/ParametersSchema.d.ts +9 -0
  38. package/api/types/ParametersSchema.js +5 -0
  39. package/api/types/TagSchema.d.ts +6 -0
  40. package/api/types/TagSchema.js +5 -0
  41. package/api/types/ToolEnvVarSchema.d.ts +11 -0
  42. package/api/types/ToolEnvVarSchema.js +5 -0
  43. package/api/types/ToolJsonSchema.d.ts +11 -0
  44. package/api/types/ToolJsonSchema.js +5 -0
  45. package/api/types/ToolRuleSchema.d.ts +7 -0
  46. package/api/types/ToolRuleSchema.js +5 -0
  47. package/api/types/ToolSchema.d.ts +18 -0
  48. package/api/types/ToolSchema.js +5 -0
  49. package/api/types/index.d.ts +10 -0
  50. package/api/types/index.js +10 -0
  51. package/dist/api/resources/agents/client/Client.d.ts +7 -7
  52. package/dist/api/resources/agents/client/Client.js +28 -22
  53. package/dist/api/resources/agents/client/requests/{BodyUploadAgentSerialized.d.ts → BodyImportAgentSerialized.d.ts} +1 -1
  54. package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.js +5 -0
  55. package/dist/api/resources/agents/client/requests/index.d.ts +1 -1
  56. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  57. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  58. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  60. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  61. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  62. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  63. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  64. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  65. package/dist/api/resources/blocks/client/Client.js +6 -6
  66. package/dist/api/resources/groups/client/Client.js +7 -7
  67. package/dist/api/resources/health/client/Client.js +1 -1
  68. package/dist/api/resources/identities/client/Client.js +6 -6
  69. package/dist/api/resources/jobs/client/Client.js +4 -4
  70. package/dist/api/resources/models/client/Client.js +2 -2
  71. package/dist/api/resources/providers/client/Client.js +4 -4
  72. package/dist/api/resources/runs/client/Client.js +7 -7
  73. package/dist/api/resources/sources/client/Client.js +6 -6
  74. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  75. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  76. package/dist/api/resources/steps/client/Client.js +2 -2
  77. package/dist/api/resources/tag/client/Client.js +1 -1
  78. package/dist/api/resources/templates/client/Client.js +1 -1
  79. package/dist/api/resources/tools/client/Client.js +16 -16
  80. package/dist/api/resources/voice/client/Client.js +1 -1
  81. package/dist/api/types/AgentSchema.d.ts +27 -0
  82. package/dist/api/types/AgentSchema.js +5 -0
  83. package/dist/api/types/CoreMemoryBlockSchema.d.ts +16 -0
  84. package/dist/api/types/CoreMemoryBlockSchema.js +5 -0
  85. package/dist/api/types/MessageSchema.d.ts +16 -0
  86. package/dist/api/types/MessageSchema.js +5 -0
  87. package/dist/api/types/ParameterProperties.d.ts +7 -0
  88. package/dist/api/types/ParameterProperties.js +5 -0
  89. package/dist/api/types/ParametersSchema.d.ts +9 -0
  90. package/dist/api/types/ParametersSchema.js +5 -0
  91. package/dist/api/types/TagSchema.d.ts +6 -0
  92. package/dist/api/types/TagSchema.js +5 -0
  93. package/dist/api/types/ToolEnvVarSchema.d.ts +11 -0
  94. package/dist/api/types/ToolEnvVarSchema.js +5 -0
  95. package/dist/api/types/ToolJsonSchema.d.ts +11 -0
  96. package/dist/api/types/ToolJsonSchema.js +5 -0
  97. package/dist/api/types/ToolRuleSchema.d.ts +7 -0
  98. package/dist/api/types/ToolRuleSchema.js +5 -0
  99. package/dist/api/types/ToolSchema.d.ts +18 -0
  100. package/dist/api/types/ToolSchema.js +5 -0
  101. package/dist/api/types/index.d.ts +10 -0
  102. package/dist/api/types/index.js +10 -0
  103. package/dist/serialization/types/AgentSchema.d.ts +40 -0
  104. package/dist/serialization/types/AgentSchema.js +71 -0
  105. package/dist/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  106. package/dist/serialization/types/CoreMemoryBlockSchema.js +53 -0
  107. package/dist/serialization/types/MessageSchema.d.ts +22 -0
  108. package/dist/serialization/types/MessageSchema.js +53 -0
  109. package/dist/serialization/types/ParameterProperties.d.ts +13 -0
  110. package/dist/serialization/types/ParameterProperties.js +44 -0
  111. package/dist/serialization/types/ParametersSchema.d.ts +15 -0
  112. package/dist/serialization/types/ParametersSchema.js +46 -0
  113. package/dist/serialization/types/TagSchema.d.ts +12 -0
  114. package/dist/serialization/types/TagSchema.js +43 -0
  115. package/dist/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  116. package/dist/serialization/types/ToolEnvVarSchema.js +48 -0
  117. package/dist/serialization/types/ToolJsonSchema.d.ts +17 -0
  118. package/dist/serialization/types/ToolJsonSchema.js +48 -0
  119. package/dist/serialization/types/ToolRuleSchema.d.ts +13 -0
  120. package/dist/serialization/types/ToolRuleSchema.js +44 -0
  121. package/dist/serialization/types/ToolSchema.d.ts +24 -0
  122. package/dist/serialization/types/ToolSchema.js +55 -0
  123. package/dist/serialization/types/index.d.ts +10 -0
  124. package/dist/serialization/types/index.js +10 -0
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +7 -7
  129. package/serialization/types/AgentSchema.d.ts +40 -0
  130. package/serialization/types/AgentSchema.js +71 -0
  131. package/serialization/types/CoreMemoryBlockSchema.d.ts +22 -0
  132. package/serialization/types/CoreMemoryBlockSchema.js +53 -0
  133. package/serialization/types/MessageSchema.d.ts +22 -0
  134. package/serialization/types/MessageSchema.js +53 -0
  135. package/serialization/types/ParameterProperties.d.ts +13 -0
  136. package/serialization/types/ParameterProperties.js +44 -0
  137. package/serialization/types/ParametersSchema.d.ts +15 -0
  138. package/serialization/types/ParametersSchema.js +46 -0
  139. package/serialization/types/TagSchema.d.ts +12 -0
  140. package/serialization/types/TagSchema.js +43 -0
  141. package/serialization/types/ToolEnvVarSchema.d.ts +17 -0
  142. package/serialization/types/ToolEnvVarSchema.js +48 -0
  143. package/serialization/types/ToolJsonSchema.d.ts +17 -0
  144. package/serialization/types/ToolJsonSchema.js +48 -0
  145. package/serialization/types/ToolRuleSchema.d.ts +13 -0
  146. package/serialization/types/ToolRuleSchema.js +44 -0
  147. package/serialization/types/ToolSchema.d.ts +24 -0
  148. package/serialization/types/ToolSchema.js +55 -0
  149. package/serialization/types/index.d.ts +10 -0
  150. package/serialization/types/index.js +10 -0
  151. package/version.d.ts +1 -1
  152. package/version.js +1 -1
  153. /package/api/resources/agents/client/requests/{BodyUploadAgentSerialized.js → BodyImportAgentSerialized.js} +0 -0
  154. /package/{dist/api/resources/agents/client/requests/BodyUploadAgentSerialized.js → api/types/AgentSchema.js} +0 -0
@@ -0,0 +1,22 @@
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 CoreMemoryBlockSchema: core.serialization.ObjectSchema<serializers.CoreMemoryBlockSchema.Raw, Letta.CoreMemoryBlockSchema>;
8
+ export declare namespace CoreMemoryBlockSchema {
9
+ interface Raw {
10
+ created_at: string;
11
+ description?: string | null;
12
+ identities: unknown[];
13
+ is_deleted: boolean;
14
+ is_template: boolean;
15
+ label: string;
16
+ limit: number;
17
+ metadata_?: Record<string, unknown> | null;
18
+ template_name?: string | null;
19
+ updated_at: string;
20
+ value: string;
21
+ }
22
+ }
@@ -0,0 +1,53 @@
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.CoreMemoryBlockSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.CoreMemoryBlockSchema = core.serialization.object({
42
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
43
+ description: core.serialization.string().optional(),
44
+ identities: core.serialization.list(core.serialization.unknown()),
45
+ isDeleted: core.serialization.property("is_deleted", core.serialization.boolean()),
46
+ isTemplate: core.serialization.property("is_template", core.serialization.boolean()),
47
+ label: core.serialization.string(),
48
+ limit: core.serialization.number(),
49
+ metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
50
+ templateName: core.serialization.property("template_name", core.serialization.string().optional()),
51
+ updatedAt: core.serialization.property("updated_at", core.serialization.string()),
52
+ value: core.serialization.string(),
53
+ });
@@ -0,0 +1,22 @@
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 MessageSchema: core.serialization.ObjectSchema<serializers.MessageSchema.Raw, Letta.MessageSchema>;
8
+ export declare namespace MessageSchema {
9
+ interface Raw {
10
+ created_at: string;
11
+ group_id?: string | null;
12
+ in_context: boolean;
13
+ model?: string | null;
14
+ name?: string | null;
15
+ role: string;
16
+ text: string;
17
+ tool_call_id?: string | null;
18
+ tool_calls: unknown[];
19
+ tool_returns: unknown[];
20
+ updated_at: string;
21
+ }
22
+ }
@@ -0,0 +1,53 @@
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.MessageSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.MessageSchema = core.serialization.object({
42
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
43
+ groupId: core.serialization.property("group_id", core.serialization.string().optional()),
44
+ inContext: core.serialization.property("in_context", core.serialization.boolean()),
45
+ model: core.serialization.string().optional(),
46
+ name: core.serialization.string().optional(),
47
+ role: core.serialization.string(),
48
+ text: core.serialization.string(),
49
+ toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
50
+ toolCalls: core.serialization.property("tool_calls", core.serialization.list(core.serialization.unknown())),
51
+ toolReturns: core.serialization.property("tool_returns", core.serialization.list(core.serialization.unknown())),
52
+ updatedAt: core.serialization.property("updated_at", core.serialization.string()),
53
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ParameterProperties: core.serialization.ObjectSchema<serializers.ParameterProperties.Raw, Letta.ParameterProperties>;
8
+ export declare namespace ParameterProperties {
9
+ interface Raw {
10
+ type: string;
11
+ description?: string | null;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ParameterProperties = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ParameterProperties = core.serialization.object({
42
+ type: core.serialization.string(),
43
+ description: core.serialization.string().optional(),
44
+ });
@@ -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 { ParameterProperties } from "./ParameterProperties";
8
+ export declare const ParametersSchema: core.serialization.ObjectSchema<serializers.ParametersSchema.Raw, Letta.ParametersSchema>;
9
+ export declare namespace ParametersSchema {
10
+ interface Raw {
11
+ type?: string | null;
12
+ properties: Record<string, ParameterProperties.Raw>;
13
+ required?: 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.ParametersSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ParameterProperties_1 = require("./ParameterProperties");
42
+ exports.ParametersSchema = core.serialization.object({
43
+ type: core.serialization.string().optional(),
44
+ properties: core.serialization.record(core.serialization.string(), ParameterProperties_1.ParameterProperties),
45
+ required: core.serialization.list(core.serialization.string()).optional(),
46
+ });
@@ -0,0 +1,12 @@
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 TagSchema: core.serialization.ObjectSchema<serializers.TagSchema.Raw, Letta.TagSchema>;
8
+ export declare namespace TagSchema {
9
+ interface Raw {
10
+ tag: string;
11
+ }
12
+ }
@@ -0,0 +1,43 @@
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.TagSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.TagSchema = core.serialization.object({
42
+ tag: core.serialization.string(),
43
+ });
@@ -0,0 +1,17 @@
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 ToolEnvVarSchema: core.serialization.ObjectSchema<serializers.ToolEnvVarSchema.Raw, Letta.ToolEnvVarSchema>;
8
+ export declare namespace ToolEnvVarSchema {
9
+ interface Raw {
10
+ created_at: string;
11
+ description?: string | null;
12
+ is_deleted: boolean;
13
+ key: string;
14
+ updated_at: string;
15
+ value: string;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
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.ToolEnvVarSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ToolEnvVarSchema = core.serialization.object({
42
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
43
+ description: core.serialization.string().optional(),
44
+ isDeleted: core.serialization.property("is_deleted", core.serialization.boolean()),
45
+ key: core.serialization.string(),
46
+ updatedAt: core.serialization.property("updated_at", core.serialization.string()),
47
+ value: core.serialization.string(),
48
+ });
@@ -0,0 +1,17 @@
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 { ParametersSchema } from "./ParametersSchema";
8
+ export declare const ToolJsonSchema: core.serialization.ObjectSchema<serializers.ToolJsonSchema.Raw, Letta.ToolJsonSchema>;
9
+ export declare namespace ToolJsonSchema {
10
+ interface Raw {
11
+ name: string;
12
+ description: string;
13
+ parameters: ParametersSchema.Raw;
14
+ type?: string | null;
15
+ required?: string[] | null;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
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.ToolJsonSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ParametersSchema_1 = require("./ParametersSchema");
42
+ exports.ToolJsonSchema = core.serialization.object({
43
+ name: core.serialization.string(),
44
+ description: core.serialization.string(),
45
+ parameters: ParametersSchema_1.ParametersSchema,
46
+ type: core.serialization.string().optional(),
47
+ required: core.serialization.list(core.serialization.string()).optional(),
48
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ToolRuleSchema: core.serialization.ObjectSchema<serializers.ToolRuleSchema.Raw, Letta.ToolRuleSchema>;
8
+ export declare namespace ToolRuleSchema {
9
+ interface Raw {
10
+ tool_name: string;
11
+ type: string;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ToolRuleSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ToolRuleSchema = core.serialization.object({
42
+ toolName: core.serialization.property("tool_name", core.serialization.string()),
43
+ type: core.serialization.string(),
44
+ });
@@ -0,0 +1,24 @@
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 { ToolJsonSchema } from "./ToolJsonSchema";
8
+ export declare const ToolSchema: core.serialization.ObjectSchema<serializers.ToolSchema.Raw, Letta.ToolSchema>;
9
+ export declare namespace ToolSchema {
10
+ interface Raw {
11
+ args_json_schema?: unknown;
12
+ created_at: string;
13
+ description: string;
14
+ is_deleted: boolean;
15
+ json_schema: ToolJsonSchema.Raw;
16
+ name: string;
17
+ return_char_limit: number;
18
+ source_code?: string | null;
19
+ source_type: string;
20
+ tags: string[];
21
+ tool_type: string;
22
+ updated_at: string;
23
+ }
24
+ }
@@ -0,0 +1,55 @@
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.ToolSchema = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ToolJsonSchema_1 = require("./ToolJsonSchema");
42
+ exports.ToolSchema = core.serialization.object({
43
+ argsJsonSchema: core.serialization.property("args_json_schema", core.serialization.unknown()),
44
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
45
+ description: core.serialization.string(),
46
+ isDeleted: core.serialization.property("is_deleted", core.serialization.boolean()),
47
+ jsonSchema: core.serialization.property("json_schema", ToolJsonSchema_1.ToolJsonSchema),
48
+ name: core.serialization.string(),
49
+ returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number()),
50
+ sourceCode: core.serialization.property("source_code", core.serialization.string().optional()),
51
+ sourceType: core.serialization.property("source_type", core.serialization.string()),
52
+ tags: core.serialization.list(core.serialization.string()),
53
+ toolType: core.serialization.property("tool_type", core.serialization.string()),
54
+ updatedAt: core.serialization.property("updated_at", core.serialization.string()),
55
+ });
@@ -6,6 +6,7 @@ export * from "./ActionModel";
6
6
  export * from "./ActionParametersModel";
7
7
  export * from "./ActionResponseModel";
8
8
  export * from "./AgentEnvironmentVariable";
9
+ export * from "./AgentSchema";
9
10
  export * from "./AgentStateToolRulesItem";
10
11
  export * from "./AgentState";
11
12
  export * from "./AgentType";
@@ -72,6 +73,7 @@ export * from "./CompletionCreateParamsStreaming";
72
73
  export * from "./ConditionalToolRule";
73
74
  export * from "./ContextWindowOverview";
74
75
  export * from "./ContinueToolRule";
76
+ export * from "./CoreMemoryBlockSchema";
75
77
  export * from "./CreateBlock";
76
78
  export * from "./DynamicManager";
77
79
  export * from "./E2BSandboxConfig";
@@ -122,8 +124,11 @@ export * from "./MessageCreateRole";
122
124
  export * from "./MessageCreateContent";
123
125
  export * from "./MessageCreate";
124
126
  export * from "./MessageRole";
127
+ export * from "./MessageSchema";
125
128
  export * from "./Organization";
126
129
  export * from "./OrganizationCreate";
130
+ export * from "./ParameterProperties";
131
+ export * from "./ParametersSchema";
127
132
  export * from "./Passage";
128
133
  export * from "./PipRequirement";
129
134
  export * from "./Provider";
@@ -149,6 +154,7 @@ export * from "./Step";
149
154
  export * from "./SupervisorManager";
150
155
  export * from "./SystemMessageContent";
151
156
  export * from "./SystemMessage";
157
+ export * from "./TagSchema";
152
158
  export * from "./TerminalToolRule";
153
159
  export * from "./TextContent";
154
160
  export * from "./Tool";
@@ -157,10 +163,14 @@ export * from "./ToolCallDelta";
157
163
  export * from "./ToolCallMessageToolCall";
158
164
  export * from "./ToolCallMessage";
159
165
  export * from "./ToolCreate";
166
+ export * from "./ToolEnvVarSchema";
167
+ export * from "./ToolJsonSchema";
160
168
  export * from "./ToolReturnStatus";
161
169
  export * from "./ToolReturn";
162
170
  export * from "./ToolReturnMessageStatus";
163
171
  export * from "./ToolReturnMessage";
172
+ export * from "./ToolRuleSchema";
173
+ export * from "./ToolSchema";
164
174
  export * from "./ToolType";
165
175
  export * from "./UpdateAssistantMessageContent";
166
176
  export * from "./UpdateAssistantMessage";