@letta-ai/letta-client 0.1.204 → 0.1.205

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 (155) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +4 -4
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  10. package/api/resources/agents/resources/passages/client/Client.js +7 -7
  11. package/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +4 -4
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  15. package/api/resources/batches/client/Client.js +4 -4
  16. package/api/resources/blocks/client/Client.js +6 -6
  17. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  18. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  19. package/api/resources/embeddingModels/client/Client.js +1 -1
  20. package/api/resources/folders/client/Client.js +9 -9
  21. package/api/resources/folders/resources/files/client/Client.js +3 -3
  22. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  23. package/api/resources/groups/client/Client.js +6 -6
  24. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  25. package/api/resources/health/client/Client.js +1 -1
  26. package/api/resources/identities/client/Client.js +7 -7
  27. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  28. package/api/resources/jobs/client/Client.js +5 -5
  29. package/api/resources/messages/client/Client.js +1 -1
  30. package/api/resources/models/client/Client.js +2 -2
  31. package/api/resources/projects/client/Client.js +1 -1
  32. package/api/resources/providers/client/Client.js +6 -6
  33. package/api/resources/runs/client/Client.js +5 -5
  34. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  35. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  36. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  37. package/api/resources/sources/client/Client.js +10 -10
  38. package/api/resources/sources/resources/files/client/Client.js +3 -3
  39. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  40. package/api/resources/steps/client/Client.js +3 -3
  41. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  42. package/api/resources/tags/client/Client.js +1 -1
  43. package/api/resources/telemetry/client/Client.js +1 -1
  44. package/api/resources/templates/client/Client.js +9 -9
  45. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  46. package/api/resources/tools/client/Client.js +20 -20
  47. package/api/resources/voice/client/Client.js +1 -1
  48. package/api/types/InternalTemplateAgentCreate.d.ts +99 -0
  49. package/api/types/InternalTemplateAgentCreate.js +5 -0
  50. package/api/types/InternalTemplateAgentCreateResponseFormat.d.ts +5 -0
  51. package/api/types/InternalTemplateAgentCreateResponseFormat.js +5 -0
  52. package/api/types/InternalTemplateAgentCreateToolRulesItem.d.ts +5 -0
  53. package/api/types/InternalTemplateAgentCreateToolRulesItem.js +5 -0
  54. package/api/types/InternalTemplateBlockCreate.d.ts +35 -0
  55. package/api/types/InternalTemplateBlockCreate.js +5 -0
  56. package/api/types/InternalTemplateGroupCreate.d.ts +25 -0
  57. package/api/types/InternalTemplateGroupCreate.js +5 -0
  58. package/api/types/InternalTemplateGroupCreateManagerConfig.d.ts +8 -0
  59. package/api/types/InternalTemplateGroupCreateManagerConfig.js +5 -0
  60. package/api/types/index.d.ts +6 -0
  61. package/api/types/index.js +6 -0
  62. package/dist/api/resources/agents/client/Client.js +11 -11
  63. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  64. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  67. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  71. package/dist/api/resources/agents/resources/passages/client/Client.js +7 -7
  72. package/dist/api/resources/agents/resources/passages/client/requests/PassagesSearchRequest.d.ts +4 -4
  73. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  75. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  76. package/dist/api/resources/batches/client/Client.js +4 -4
  77. package/dist/api/resources/blocks/client/Client.js +6 -6
  78. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  79. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  80. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  81. package/dist/api/resources/folders/client/Client.js +9 -9
  82. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  83. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  84. package/dist/api/resources/groups/client/Client.js +6 -6
  85. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  86. package/dist/api/resources/health/client/Client.js +1 -1
  87. package/dist/api/resources/identities/client/Client.js +7 -7
  88. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  89. package/dist/api/resources/jobs/client/Client.js +5 -5
  90. package/dist/api/resources/messages/client/Client.js +1 -1
  91. package/dist/api/resources/models/client/Client.js +2 -2
  92. package/dist/api/resources/projects/client/Client.js +1 -1
  93. package/dist/api/resources/providers/client/Client.js +6 -6
  94. package/dist/api/resources/runs/client/Client.js +5 -5
  95. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  96. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  97. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  98. package/dist/api/resources/sources/client/Client.js +10 -10
  99. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  100. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  101. package/dist/api/resources/steps/client/Client.js +3 -3
  102. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  103. package/dist/api/resources/tags/client/Client.js +1 -1
  104. package/dist/api/resources/telemetry/client/Client.js +1 -1
  105. package/dist/api/resources/templates/client/Client.js +9 -9
  106. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  107. package/dist/api/resources/tools/client/Client.js +20 -20
  108. package/dist/api/resources/voice/client/Client.js +1 -1
  109. package/dist/api/types/InternalTemplateAgentCreate.d.ts +99 -0
  110. package/dist/api/types/InternalTemplateAgentCreate.js +5 -0
  111. package/dist/api/types/InternalTemplateAgentCreateResponseFormat.d.ts +5 -0
  112. package/dist/api/types/InternalTemplateAgentCreateResponseFormat.js +5 -0
  113. package/dist/api/types/InternalTemplateAgentCreateToolRulesItem.d.ts +5 -0
  114. package/dist/api/types/InternalTemplateAgentCreateToolRulesItem.js +5 -0
  115. package/dist/api/types/InternalTemplateBlockCreate.d.ts +35 -0
  116. package/dist/api/types/InternalTemplateBlockCreate.js +5 -0
  117. package/dist/api/types/InternalTemplateGroupCreate.d.ts +25 -0
  118. package/dist/api/types/InternalTemplateGroupCreate.js +5 -0
  119. package/dist/api/types/InternalTemplateGroupCreateManagerConfig.d.ts +8 -0
  120. package/dist/api/types/InternalTemplateGroupCreateManagerConfig.js +5 -0
  121. package/dist/api/types/index.d.ts +6 -0
  122. package/dist/api/types/index.js +6 -0
  123. package/dist/serialization/types/InternalTemplateAgentCreate.d.ts +63 -0
  124. package/dist/serialization/types/InternalTemplateAgentCreate.js +94 -0
  125. package/dist/serialization/types/InternalTemplateAgentCreateResponseFormat.d.ts +13 -0
  126. package/dist/serialization/types/InternalTemplateAgentCreateResponseFormat.js +44 -0
  127. package/dist/serialization/types/InternalTemplateAgentCreateToolRulesItem.d.ts +19 -0
  128. package/dist/serialization/types/InternalTemplateAgentCreateToolRulesItem.js +60 -0
  129. package/dist/serialization/types/InternalTemplateBlockCreate.d.ts +25 -0
  130. package/dist/serialization/types/InternalTemplateBlockCreate.js +56 -0
  131. package/dist/serialization/types/InternalTemplateGroupCreate.d.ts +20 -0
  132. package/dist/serialization/types/InternalTemplateGroupCreate.js +51 -0
  133. package/dist/serialization/types/InternalTemplateGroupCreateManagerConfig.d.ts +15 -0
  134. package/dist/serialization/types/InternalTemplateGroupCreateManagerConfig.js +52 -0
  135. package/dist/serialization/types/index.d.ts +6 -0
  136. package/dist/serialization/types/index.js +6 -0
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +1 -1
  140. package/serialization/types/InternalTemplateAgentCreate.d.ts +63 -0
  141. package/serialization/types/InternalTemplateAgentCreate.js +94 -0
  142. package/serialization/types/InternalTemplateAgentCreateResponseFormat.d.ts +13 -0
  143. package/serialization/types/InternalTemplateAgentCreateResponseFormat.js +44 -0
  144. package/serialization/types/InternalTemplateAgentCreateToolRulesItem.d.ts +19 -0
  145. package/serialization/types/InternalTemplateAgentCreateToolRulesItem.js +60 -0
  146. package/serialization/types/InternalTemplateBlockCreate.d.ts +25 -0
  147. package/serialization/types/InternalTemplateBlockCreate.js +56 -0
  148. package/serialization/types/InternalTemplateGroupCreate.d.ts +20 -0
  149. package/serialization/types/InternalTemplateGroupCreate.js +51 -0
  150. package/serialization/types/InternalTemplateGroupCreateManagerConfig.d.ts +15 -0
  151. package/serialization/types/InternalTemplateGroupCreateManagerConfig.js +52 -0
  152. package/serialization/types/index.d.ts +6 -0
  153. package/serialization/types/index.js +6 -0
  154. package/version.d.ts +1 -1
  155. package/version.js +1 -1
@@ -0,0 +1,94 @@
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.InternalTemplateAgentCreate = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const CreateBlock_1 = require("./CreateBlock");
42
+ const InternalTemplateAgentCreateToolRulesItem_1 = require("./InternalTemplateAgentCreateToolRulesItem");
43
+ const AgentType_1 = require("./AgentType");
44
+ const LlmConfig_1 = require("./LlmConfig");
45
+ const EmbeddingConfig_1 = require("./EmbeddingConfig");
46
+ const MessageCreate_1 = require("./MessageCreate");
47
+ const InternalTemplateAgentCreateResponseFormat_1 = require("./InternalTemplateAgentCreateResponseFormat");
48
+ exports.InternalTemplateAgentCreate = core.serialization.object({
49
+ name: core.serialization.string().optional(),
50
+ memoryBlocks: core.serialization.property("memory_blocks", core.serialization.list(CreateBlock_1.CreateBlock).optional()),
51
+ tools: core.serialization.list(core.serialization.string()).optional(),
52
+ toolIds: core.serialization.property("tool_ids", core.serialization.list(core.serialization.string()).optional()),
53
+ sourceIds: core.serialization.property("source_ids", core.serialization.list(core.serialization.string()).optional()),
54
+ blockIds: core.serialization.property("block_ids", core.serialization.list(core.serialization.string()).optional()),
55
+ toolRules: core.serialization.property("tool_rules", core.serialization.list(InternalTemplateAgentCreateToolRulesItem_1.InternalTemplateAgentCreateToolRulesItem).optional()),
56
+ tags: core.serialization.list(core.serialization.string()).optional(),
57
+ system: core.serialization.string().optional(),
58
+ agentType: core.serialization.property("agent_type", AgentType_1.AgentType.optional()),
59
+ llmConfig: core.serialization.property("llm_config", LlmConfig_1.LlmConfig.optional()),
60
+ embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
61
+ initialMessageSequence: core.serialization.property("initial_message_sequence", core.serialization.list(MessageCreate_1.MessageCreate).optional()),
62
+ includeBaseTools: core.serialization.property("include_base_tools", core.serialization.boolean().optional()),
63
+ includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
64
+ includeBaseToolRules: core.serialization.property("include_base_tool_rules", core.serialization.boolean().optional()),
65
+ includeDefaultSource: core.serialization.property("include_default_source", core.serialization.boolean().optional()),
66
+ description: core.serialization.string().optional(),
67
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
68
+ model: core.serialization.string().optional(),
69
+ embedding: core.serialization.string().optional(),
70
+ contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
71
+ embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
72
+ maxTokens: core.serialization.property("max_tokens", core.serialization.number().optional()),
73
+ maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
74
+ enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
75
+ reasoning: core.serialization.boolean().optional(),
76
+ fromTemplate: core.serialization.property("from_template", core.serialization.string().optional()),
77
+ template: core.serialization.boolean().optional(),
78
+ project: core.serialization.string().optional(),
79
+ toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
80
+ memoryVariables: core.serialization.property("memory_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
81
+ projectId: core.serialization.property("project_id", core.serialization.string().optional()),
82
+ templateId: core.serialization.property("template_id", core.serialization.string()),
83
+ baseTemplateId: core.serialization.property("base_template_id", core.serialization.string()),
84
+ identityIds: core.serialization.property("identity_ids", core.serialization.list(core.serialization.string()).optional()),
85
+ messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean().optional()),
86
+ enableSleeptime: core.serialization.property("enable_sleeptime", core.serialization.boolean().optional()),
87
+ responseFormat: core.serialization.property("response_format", InternalTemplateAgentCreateResponseFormat_1.InternalTemplateAgentCreateResponseFormat.optional()),
88
+ timezone: core.serialization.string().optional(),
89
+ maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
90
+ perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
91
+ hidden: core.serialization.boolean().optional(),
92
+ deploymentId: core.serialization.property("deployment_id", core.serialization.string()),
93
+ entityId: core.serialization.property("entity_id", core.serialization.string()),
94
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { JsonObjectResponseFormat } from "./JsonObjectResponseFormat";
8
+ import { JsonSchemaResponseFormat } from "./JsonSchemaResponseFormat";
9
+ import { TextResponseFormat } from "./TextResponseFormat";
10
+ export declare const InternalTemplateAgentCreateResponseFormat: core.serialization.Schema<serializers.InternalTemplateAgentCreateResponseFormat.Raw, Letta.InternalTemplateAgentCreateResponseFormat>;
11
+ export declare namespace InternalTemplateAgentCreateResponseFormat {
12
+ type Raw = JsonObjectResponseFormat.Raw | JsonSchemaResponseFormat.Raw | TextResponseFormat.Raw;
13
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.InternalTemplateAgentCreateResponseFormat = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const JsonObjectResponseFormat_1 = require("./JsonObjectResponseFormat");
42
+ const JsonSchemaResponseFormat_1 = require("./JsonSchemaResponseFormat");
43
+ const TextResponseFormat_1 = require("./TextResponseFormat");
44
+ exports.InternalTemplateAgentCreateResponseFormat = core.serialization.undiscriminatedUnion([JsonObjectResponseFormat_1.JsonObjectResponseFormat, JsonSchemaResponseFormat_1.JsonSchemaResponseFormat, TextResponseFormat_1.TextResponseFormat]);
@@ -0,0 +1,19 @@
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 { ConditionalToolRule } from "./ConditionalToolRule";
8
+ import { ChildToolRule } from "./ChildToolRule";
9
+ import { ContinueToolRule } from "./ContinueToolRule";
10
+ import { TerminalToolRule } from "./TerminalToolRule";
11
+ import { MaxCountPerStepToolRule } from "./MaxCountPerStepToolRule";
12
+ import { ParentToolRule } from "./ParentToolRule";
13
+ import { RequiredBeforeExitToolRule } from "./RequiredBeforeExitToolRule";
14
+ import { RequiresApprovalToolRule } from "./RequiresApprovalToolRule";
15
+ import { InitToolRule } from "./InitToolRule";
16
+ export declare const InternalTemplateAgentCreateToolRulesItem: core.serialization.Schema<serializers.InternalTemplateAgentCreateToolRulesItem.Raw, Letta.InternalTemplateAgentCreateToolRulesItem>;
17
+ export declare namespace InternalTemplateAgentCreateToolRulesItem {
18
+ type Raw = ConditionalToolRule.Raw | ChildToolRule.Raw | ContinueToolRule.Raw | TerminalToolRule.Raw | MaxCountPerStepToolRule.Raw | ParentToolRule.Raw | RequiredBeforeExitToolRule.Raw | RequiresApprovalToolRule.Raw | InitToolRule.Raw;
19
+ }
@@ -0,0 +1,60 @@
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.InternalTemplateAgentCreateToolRulesItem = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ConditionalToolRule_1 = require("./ConditionalToolRule");
42
+ const ChildToolRule_1 = require("./ChildToolRule");
43
+ const ContinueToolRule_1 = require("./ContinueToolRule");
44
+ const TerminalToolRule_1 = require("./TerminalToolRule");
45
+ const MaxCountPerStepToolRule_1 = require("./MaxCountPerStepToolRule");
46
+ const ParentToolRule_1 = require("./ParentToolRule");
47
+ const RequiredBeforeExitToolRule_1 = require("./RequiredBeforeExitToolRule");
48
+ const RequiresApprovalToolRule_1 = require("./RequiresApprovalToolRule");
49
+ const InitToolRule_1 = require("./InitToolRule");
50
+ exports.InternalTemplateAgentCreateToolRulesItem = core.serialization.undiscriminatedUnion([
51
+ ConditionalToolRule_1.ConditionalToolRule,
52
+ ChildToolRule_1.ChildToolRule,
53
+ ContinueToolRule_1.ContinueToolRule,
54
+ TerminalToolRule_1.TerminalToolRule,
55
+ MaxCountPerStepToolRule_1.MaxCountPerStepToolRule,
56
+ ParentToolRule_1.ParentToolRule,
57
+ RequiredBeforeExitToolRule_1.RequiredBeforeExitToolRule,
58
+ RequiresApprovalToolRule_1.RequiresApprovalToolRule,
59
+ InitToolRule_1.InitToolRule,
60
+ ]);
@@ -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
+ export declare const InternalTemplateBlockCreate: core.serialization.ObjectSchema<serializers.InternalTemplateBlockCreate.Raw, Letta.InternalTemplateBlockCreate>;
8
+ export declare namespace InternalTemplateBlockCreate {
9
+ interface Raw {
10
+ value: string;
11
+ limit?: number | null;
12
+ project_id?: string | null;
13
+ name?: string | null;
14
+ is_template?: boolean | null;
15
+ template_id: string;
16
+ base_template_id: string;
17
+ deployment_id: string;
18
+ entity_id: string;
19
+ preserve_on_migration?: boolean | null;
20
+ label: string;
21
+ read_only?: boolean | null;
22
+ description?: string | null;
23
+ metadata?: Record<string, unknown> | null;
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.InternalTemplateBlockCreate = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.InternalTemplateBlockCreate = core.serialization.object({
42
+ value: core.serialization.string(),
43
+ limit: core.serialization.number().optional(),
44
+ projectId: core.serialization.property("project_id", core.serialization.string().optional()),
45
+ name: core.serialization.string().optional(),
46
+ isTemplate: core.serialization.property("is_template", core.serialization.boolean().optional()),
47
+ templateId: core.serialization.property("template_id", core.serialization.string()),
48
+ baseTemplateId: core.serialization.property("base_template_id", core.serialization.string()),
49
+ deploymentId: core.serialization.property("deployment_id", core.serialization.string()),
50
+ entityId: core.serialization.property("entity_id", core.serialization.string()),
51
+ preserveOnMigration: core.serialization.property("preserve_on_migration", core.serialization.boolean().optional()),
52
+ label: core.serialization.string(),
53
+ readOnly: core.serialization.property("read_only", core.serialization.boolean().optional()),
54
+ description: core.serialization.string().optional(),
55
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
56
+ });
@@ -0,0 +1,20 @@
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 { InternalTemplateGroupCreateManagerConfig } from "./InternalTemplateGroupCreateManagerConfig";
8
+ export declare const InternalTemplateGroupCreate: core.serialization.ObjectSchema<serializers.InternalTemplateGroupCreate.Raw, Letta.InternalTemplateGroupCreate>;
9
+ export declare namespace InternalTemplateGroupCreate {
10
+ interface Raw {
11
+ agent_ids: string[];
12
+ description: string;
13
+ manager_config?: InternalTemplateGroupCreateManagerConfig.Raw | null;
14
+ project_id?: string | null;
15
+ shared_block_ids?: string[] | null;
16
+ base_template_id: string;
17
+ template_id: string;
18
+ deployment_id: string;
19
+ }
20
+ }
@@ -0,0 +1,51 @@
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.InternalTemplateGroupCreate = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const InternalTemplateGroupCreateManagerConfig_1 = require("./InternalTemplateGroupCreateManagerConfig");
42
+ exports.InternalTemplateGroupCreate = core.serialization.object({
43
+ agentIds: core.serialization.property("agent_ids", core.serialization.list(core.serialization.string())),
44
+ description: core.serialization.string(),
45
+ managerConfig: core.serialization.property("manager_config", InternalTemplateGroupCreateManagerConfig_1.InternalTemplateGroupCreateManagerConfig.optional()),
46
+ projectId: core.serialization.property("project_id", core.serialization.string().optional()),
47
+ sharedBlockIds: core.serialization.property("shared_block_ids", core.serialization.list(core.serialization.string()).optional()),
48
+ baseTemplateId: core.serialization.property("base_template_id", core.serialization.string()),
49
+ templateId: core.serialization.property("template_id", core.serialization.string()),
50
+ deploymentId: core.serialization.property("deployment_id", core.serialization.string()),
51
+ });
@@ -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 { DynamicManager } from "./DynamicManager";
8
+ import { RoundRobinManager } from "./RoundRobinManager";
9
+ import { SleeptimeManager } from "./SleeptimeManager";
10
+ import { SupervisorManager } from "./SupervisorManager";
11
+ import { VoiceSleeptimeManager } from "./VoiceSleeptimeManager";
12
+ export declare const InternalTemplateGroupCreateManagerConfig: core.serialization.Schema<serializers.InternalTemplateGroupCreateManagerConfig.Raw, Letta.InternalTemplateGroupCreateManagerConfig>;
13
+ export declare namespace InternalTemplateGroupCreateManagerConfig {
14
+ type Raw = DynamicManager.Raw | RoundRobinManager.Raw | SleeptimeManager.Raw | SupervisorManager.Raw | VoiceSleeptimeManager.Raw;
15
+ }
@@ -0,0 +1,52 @@
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.InternalTemplateGroupCreateManagerConfig = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const DynamicManager_1 = require("./DynamicManager");
42
+ const RoundRobinManager_1 = require("./RoundRobinManager");
43
+ const SleeptimeManager_1 = require("./SleeptimeManager");
44
+ const SupervisorManager_1 = require("./SupervisorManager");
45
+ const VoiceSleeptimeManager_1 = require("./VoiceSleeptimeManager");
46
+ exports.InternalTemplateGroupCreateManagerConfig = core.serialization.undiscriminatedUnion([
47
+ DynamicManager_1.DynamicManager,
48
+ RoundRobinManager_1.RoundRobinManager,
49
+ SleeptimeManager_1.SleeptimeManager,
50
+ SupervisorManager_1.SupervisorManager,
51
+ VoiceSleeptimeManager_1.VoiceSleeptimeManager,
52
+ ]);
@@ -149,6 +149,12 @@ export * from "./ImportedAgentsResponse";
149
149
  export * from "./InitToolRule";
150
150
  export * from "./InputAudioFormat";
151
151
  export * from "./InputAudio";
152
+ export * from "./InternalTemplateAgentCreateToolRulesItem";
153
+ export * from "./InternalTemplateAgentCreateResponseFormat";
154
+ export * from "./InternalTemplateAgentCreate";
155
+ export * from "./InternalTemplateBlockCreate";
156
+ export * from "./InternalTemplateGroupCreateManagerConfig";
157
+ export * from "./InternalTemplateGroupCreate";
152
158
  export * from "./JsonSchema";
153
159
  export * from "./Job";
154
160
  export * from "./JobStatus";
@@ -165,6 +165,12 @@ __exportStar(require("./ImportedAgentsResponse"), exports);
165
165
  __exportStar(require("./InitToolRule"), exports);
166
166
  __exportStar(require("./InputAudioFormat"), exports);
167
167
  __exportStar(require("./InputAudio"), exports);
168
+ __exportStar(require("./InternalTemplateAgentCreateToolRulesItem"), exports);
169
+ __exportStar(require("./InternalTemplateAgentCreateResponseFormat"), exports);
170
+ __exportStar(require("./InternalTemplateAgentCreate"), exports);
171
+ __exportStar(require("./InternalTemplateBlockCreate"), exports);
172
+ __exportStar(require("./InternalTemplateGroupCreateManagerConfig"), exports);
173
+ __exportStar(require("./InternalTemplateGroupCreate"), exports);
168
174
  __exportStar(require("./JsonSchema"), exports);
169
175
  __exportStar(require("./Job"), exports);
170
176
  __exportStar(require("./JobStatus"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.204";
1
+ export declare const SDK_VERSION = "0.1.205";
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.204";
4
+ exports.SDK_VERSION = "0.1.205";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.204",
3
+ "version": "0.1.205",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -0,0 +1,63 @@
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 { CreateBlock } from "./CreateBlock";
8
+ import { InternalTemplateAgentCreateToolRulesItem } from "./InternalTemplateAgentCreateToolRulesItem";
9
+ import { AgentType } from "./AgentType";
10
+ import { LlmConfig } from "./LlmConfig";
11
+ import { EmbeddingConfig } from "./EmbeddingConfig";
12
+ import { MessageCreate } from "./MessageCreate";
13
+ import { InternalTemplateAgentCreateResponseFormat } from "./InternalTemplateAgentCreateResponseFormat";
14
+ export declare const InternalTemplateAgentCreate: core.serialization.ObjectSchema<serializers.InternalTemplateAgentCreate.Raw, Letta.InternalTemplateAgentCreate>;
15
+ export declare namespace InternalTemplateAgentCreate {
16
+ interface Raw {
17
+ name?: string | null;
18
+ memory_blocks?: CreateBlock.Raw[] | null;
19
+ tools?: string[] | null;
20
+ tool_ids?: string[] | null;
21
+ source_ids?: string[] | null;
22
+ block_ids?: string[] | null;
23
+ tool_rules?: InternalTemplateAgentCreateToolRulesItem.Raw[] | null;
24
+ tags?: string[] | null;
25
+ system?: string | null;
26
+ agent_type?: AgentType.Raw | null;
27
+ llm_config?: LlmConfig.Raw | null;
28
+ embedding_config?: EmbeddingConfig.Raw | null;
29
+ initial_message_sequence?: MessageCreate.Raw[] | null;
30
+ include_base_tools?: boolean | null;
31
+ include_multi_agent_tools?: boolean | null;
32
+ include_base_tool_rules?: boolean | null;
33
+ include_default_source?: boolean | null;
34
+ description?: string | null;
35
+ metadata?: Record<string, unknown> | null;
36
+ model?: string | null;
37
+ embedding?: string | null;
38
+ context_window_limit?: number | null;
39
+ embedding_chunk_size?: number | null;
40
+ max_tokens?: number | null;
41
+ max_reasoning_tokens?: number | null;
42
+ enable_reasoner?: boolean | null;
43
+ reasoning?: boolean | null;
44
+ from_template?: string | null;
45
+ template?: boolean | null;
46
+ project?: string | null;
47
+ tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
48
+ memory_variables?: Record<string, string | null | undefined> | null;
49
+ project_id?: string | null;
50
+ template_id: string;
51
+ base_template_id: string;
52
+ identity_ids?: string[] | null;
53
+ message_buffer_autoclear?: boolean | null;
54
+ enable_sleeptime?: boolean | null;
55
+ response_format?: InternalTemplateAgentCreateResponseFormat.Raw | null;
56
+ timezone?: string | null;
57
+ max_files_open?: number | null;
58
+ per_file_view_window_char_limit?: number | null;
59
+ hidden?: boolean | null;
60
+ deployment_id: string;
61
+ entity_id: string;
62
+ }
63
+ }