@letta-ai/letta-client 0.1.159 → 0.1.161

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 (246) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +43 -38
  3. package/api/resources/agents/client/Client.js +13 -13
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  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 +4 -4
  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/batches/client/Client.js +4 -4
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  17. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  18. package/api/resources/embeddingModels/client/Client.js +1 -1
  19. package/api/resources/folders/client/Client.d.ts +206 -0
  20. package/api/resources/folders/client/Client.js +981 -0
  21. package/api/resources/folders/client/index.d.ts +1 -0
  22. package/api/resources/folders/client/index.js +17 -0
  23. package/api/resources/folders/client/requests/BodyUploadFileToFolder.d.ts +14 -0
  24. package/api/resources/folders/client/requests/BodyUploadFileToFolder.js +5 -0
  25. package/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
  26. package/api/resources/folders/client/requests/FolderCreate.js +5 -0
  27. package/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
  28. package/api/resources/folders/client/requests/FolderUpdate.js +5 -0
  29. package/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
  30. package/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
  31. package/api/resources/folders/client/requests/ListFolderFilesRequest.d.ts +21 -0
  32. package/api/resources/folders/client/requests/ListFolderFilesRequest.js +5 -0
  33. package/api/resources/folders/client/requests/ListFolderPassagesRequest.d.ts +21 -0
  34. package/api/resources/folders/client/requests/ListFolderPassagesRequest.js +5 -0
  35. package/api/resources/folders/client/requests/index.d.ts +6 -0
  36. package/api/resources/folders/client/requests/index.js +2 -0
  37. package/api/resources/folders/index.d.ts +1 -0
  38. package/api/resources/folders/index.js +17 -0
  39. package/api/resources/groups/client/Client.js +6 -6
  40. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  41. package/api/resources/health/client/Client.js +1 -1
  42. package/api/resources/identities/client/Client.js +7 -7
  43. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  44. package/api/resources/index.d.ts +2 -0
  45. package/api/resources/index.js +3 -1
  46. package/api/resources/jobs/client/Client.js +5 -5
  47. package/api/resources/messages/client/Client.js +1 -1
  48. package/api/resources/models/client/Client.js +1 -1
  49. package/api/resources/projects/client/Client.js +1 -1
  50. package/api/resources/providers/client/Client.js +5 -5
  51. package/api/resources/runs/client/Client.js +4 -4
  52. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  53. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  54. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  55. package/api/resources/sources/client/Client.js +10 -10
  56. package/api/resources/sources/resources/files/client/Client.js +3 -3
  57. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  58. package/api/resources/steps/client/Client.js +2 -2
  59. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  60. package/api/resources/tags/client/Client.js +1 -1
  61. package/api/resources/telemetry/client/Client.js +1 -1
  62. package/api/resources/templates/client/Client.js +1 -1
  63. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  64. package/api/resources/tools/client/Client.js +19 -19
  65. package/api/resources/voice/client/Client.js +1 -1
  66. package/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  67. package/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  68. package/api/types/FileBlock.d.ts +37 -0
  69. package/api/types/FileBlock.js +5 -0
  70. package/api/types/Folder.d.ts +37 -0
  71. package/api/types/Folder.js +5 -0
  72. package/api/types/GenerateToolInput.d.ts +15 -0
  73. package/api/types/GenerateToolInput.js +5 -0
  74. package/api/types/GenerateToolOutput.d.ts +12 -0
  75. package/api/types/GenerateToolOutput.js +5 -0
  76. package/api/types/Memory.d.ts +2 -2
  77. package/api/types/ProviderType.d.ts +3 -1
  78. package/api/types/ProviderType.js +2 -0
  79. package/api/types/index.d.ts +4 -0
  80. package/api/types/index.js +4 -0
  81. package/dist/Client.d.ts +3 -0
  82. package/dist/Client.js +43 -38
  83. package/dist/api/resources/agents/client/Client.js +13 -13
  84. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  85. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  86. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  87. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  88. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  89. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  90. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  91. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  92. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  93. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  94. package/dist/api/resources/batches/client/Client.js +4 -4
  95. package/dist/api/resources/blocks/client/Client.js +6 -6
  96. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  97. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  98. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  99. package/dist/api/resources/folders/client/Client.d.ts +206 -0
  100. package/dist/api/resources/folders/client/Client.js +981 -0
  101. package/dist/api/resources/folders/client/index.d.ts +1 -0
  102. package/dist/api/resources/folders/client/index.js +17 -0
  103. package/dist/api/resources/folders/client/requests/BodyUploadFileToFolder.d.ts +14 -0
  104. package/dist/api/resources/folders/client/requests/BodyUploadFileToFolder.js +5 -0
  105. package/dist/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
  106. package/dist/api/resources/folders/client/requests/FolderCreate.js +5 -0
  107. package/dist/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
  108. package/dist/api/resources/folders/client/requests/FolderUpdate.js +5 -0
  109. package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
  110. package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
  111. package/dist/api/resources/folders/client/requests/ListFolderFilesRequest.d.ts +21 -0
  112. package/dist/api/resources/folders/client/requests/ListFolderFilesRequest.js +5 -0
  113. package/dist/api/resources/folders/client/requests/ListFolderPassagesRequest.d.ts +21 -0
  114. package/dist/api/resources/folders/client/requests/ListFolderPassagesRequest.js +5 -0
  115. package/dist/api/resources/folders/client/requests/index.d.ts +6 -0
  116. package/dist/api/resources/folders/client/requests/index.js +2 -0
  117. package/dist/api/resources/folders/index.d.ts +1 -0
  118. package/dist/api/resources/folders/index.js +17 -0
  119. package/dist/api/resources/groups/client/Client.js +6 -6
  120. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  121. package/dist/api/resources/health/client/Client.js +1 -1
  122. package/dist/api/resources/identities/client/Client.js +7 -7
  123. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  124. package/dist/api/resources/index.d.ts +2 -0
  125. package/dist/api/resources/index.js +3 -1
  126. package/dist/api/resources/jobs/client/Client.js +5 -5
  127. package/dist/api/resources/messages/client/Client.js +1 -1
  128. package/dist/api/resources/models/client/Client.js +1 -1
  129. package/dist/api/resources/projects/client/Client.js +1 -1
  130. package/dist/api/resources/providers/client/Client.js +5 -5
  131. package/dist/api/resources/runs/client/Client.js +4 -4
  132. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  133. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  134. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  135. package/dist/api/resources/sources/client/Client.js +10 -10
  136. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  137. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  138. package/dist/api/resources/steps/client/Client.js +2 -2
  139. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  140. package/dist/api/resources/tags/client/Client.js +1 -1
  141. package/dist/api/resources/telemetry/client/Client.js +1 -1
  142. package/dist/api/resources/templates/client/Client.js +1 -1
  143. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  144. package/dist/api/resources/tools/client/Client.js +19 -19
  145. package/dist/api/resources/voice/client/Client.js +1 -1
  146. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.d.ts +2 -1
  147. package/dist/api/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  148. package/dist/api/types/FileBlock.d.ts +37 -0
  149. package/dist/api/types/FileBlock.js +5 -0
  150. package/dist/api/types/Folder.d.ts +37 -0
  151. package/dist/api/types/Folder.js +5 -0
  152. package/dist/api/types/GenerateToolInput.d.ts +15 -0
  153. package/dist/api/types/GenerateToolInput.js +5 -0
  154. package/dist/api/types/GenerateToolOutput.d.ts +12 -0
  155. package/dist/api/types/GenerateToolOutput.js +5 -0
  156. package/dist/api/types/Memory.d.ts +2 -2
  157. package/dist/api/types/ProviderType.d.ts +3 -1
  158. package/dist/api/types/ProviderType.js +2 -0
  159. package/dist/api/types/index.d.ts +4 -0
  160. package/dist/api/types/index.js +4 -0
  161. package/dist/serialization/resources/folders/client/countFolders.d.ts +9 -0
  162. package/dist/serialization/resources/folders/client/countFolders.js +41 -0
  163. package/dist/serialization/resources/folders/client/getAgentsForFolder.d.ts +9 -0
  164. package/dist/serialization/resources/folders/client/getAgentsForFolder.js +41 -0
  165. package/dist/serialization/resources/folders/client/getFolderIdByName.d.ts +9 -0
  166. package/dist/serialization/resources/folders/client/getFolderIdByName.js +41 -0
  167. package/dist/serialization/resources/folders/client/index.d.ts +7 -0
  168. package/dist/serialization/resources/folders/client/index.js +46 -0
  169. package/dist/serialization/resources/folders/client/listFolderFiles.d.ts +11 -0
  170. package/dist/serialization/resources/folders/client/listFolderFiles.js +42 -0
  171. package/dist/serialization/resources/folders/client/listFolderPassages.d.ts +11 -0
  172. package/dist/serialization/resources/folders/client/listFolderPassages.js +42 -0
  173. package/dist/serialization/resources/folders/client/listFolders.d.ts +11 -0
  174. package/dist/serialization/resources/folders/client/listFolders.js +42 -0
  175. package/dist/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
  176. package/dist/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
  177. package/dist/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
  178. package/dist/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
  179. package/dist/serialization/resources/folders/client/requests/index.d.ts +2 -0
  180. package/dist/serialization/resources/folders/client/requests/index.js +7 -0
  181. package/dist/serialization/resources/folders/index.d.ts +1 -0
  182. package/dist/serialization/resources/folders/index.js +17 -0
  183. package/dist/serialization/resources/index.d.ts +2 -0
  184. package/dist/serialization/resources/index.js +3 -1
  185. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  186. package/dist/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  187. package/dist/serialization/types/FileBlock.d.ts +27 -0
  188. package/dist/serialization/types/FileBlock.js +58 -0
  189. package/dist/serialization/types/Folder.d.ts +22 -0
  190. package/dist/serialization/types/Folder.js +53 -0
  191. package/dist/serialization/types/GenerateToolInput.d.ts +16 -0
  192. package/dist/serialization/types/GenerateToolInput.js +47 -0
  193. package/dist/serialization/types/GenerateToolOutput.d.ts +15 -0
  194. package/dist/serialization/types/GenerateToolOutput.js +46 -0
  195. package/dist/serialization/types/Memory.d.ts +2 -1
  196. package/dist/serialization/types/Memory.js +2 -1
  197. package/dist/serialization/types/ProviderType.d.ts +1 -1
  198. package/dist/serialization/types/ProviderType.js +2 -0
  199. package/dist/serialization/types/index.d.ts +4 -0
  200. package/dist/serialization/types/index.js +4 -0
  201. package/dist/version.d.ts +1 -1
  202. package/dist/version.js +1 -1
  203. package/package.json +1 -1
  204. package/reference.md +861 -0
  205. package/serialization/resources/folders/client/countFolders.d.ts +9 -0
  206. package/serialization/resources/folders/client/countFolders.js +41 -0
  207. package/serialization/resources/folders/client/getAgentsForFolder.d.ts +9 -0
  208. package/serialization/resources/folders/client/getAgentsForFolder.js +41 -0
  209. package/serialization/resources/folders/client/getFolderIdByName.d.ts +9 -0
  210. package/serialization/resources/folders/client/getFolderIdByName.js +41 -0
  211. package/serialization/resources/folders/client/index.d.ts +7 -0
  212. package/serialization/resources/folders/client/index.js +46 -0
  213. package/serialization/resources/folders/client/listFolderFiles.d.ts +11 -0
  214. package/serialization/resources/folders/client/listFolderFiles.js +42 -0
  215. package/serialization/resources/folders/client/listFolderPassages.d.ts +11 -0
  216. package/serialization/resources/folders/client/listFolderPassages.js +42 -0
  217. package/serialization/resources/folders/client/listFolders.d.ts +11 -0
  218. package/serialization/resources/folders/client/listFolders.js +42 -0
  219. package/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
  220. package/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
  221. package/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
  222. package/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
  223. package/serialization/resources/folders/client/requests/index.d.ts +2 -0
  224. package/serialization/resources/folders/client/requests/index.js +7 -0
  225. package/serialization/resources/folders/index.d.ts +1 -0
  226. package/serialization/resources/folders/index.js +17 -0
  227. package/serialization/resources/index.d.ts +2 -0
  228. package/serialization/resources/index.js +3 -1
  229. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.d.ts +1 -1
  230. package/serialization/types/EmbeddingConfigEmbeddingEndpointType.js +1 -0
  231. package/serialization/types/FileBlock.d.ts +27 -0
  232. package/serialization/types/FileBlock.js +58 -0
  233. package/serialization/types/Folder.d.ts +22 -0
  234. package/serialization/types/Folder.js +53 -0
  235. package/serialization/types/GenerateToolInput.d.ts +16 -0
  236. package/serialization/types/GenerateToolInput.js +47 -0
  237. package/serialization/types/GenerateToolOutput.d.ts +15 -0
  238. package/serialization/types/GenerateToolOutput.js +46 -0
  239. package/serialization/types/Memory.d.ts +2 -1
  240. package/serialization/types/Memory.js +2 -1
  241. package/serialization/types/ProviderType.d.ts +1 -1
  242. package/serialization/types/ProviderType.js +2 -0
  243. package/serialization/types/index.d.ts +4 -0
  244. package/serialization/types/index.js +4 -0
  245. package/version.d.ts +1 -1
  246. package/version.js +1 -1
@@ -0,0 +1,58 @@
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.FileBlock = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.FileBlock = core.serialization.object({
42
+ value: core.serialization.string(),
43
+ limit: core.serialization.number().optional(),
44
+ name: core.serialization.string().optional(),
45
+ isTemplate: core.serialization.property("is_template", core.serialization.boolean().optional()),
46
+ preserveOnMigration: core.serialization.property("preserve_on_migration", core.serialization.boolean().optional()),
47
+ label: core.serialization.string().optional(),
48
+ readOnly: core.serialization.property("read_only", core.serialization.boolean().optional()),
49
+ description: core.serialization.string().optional(),
50
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
+ id: core.serialization.string().optional(),
52
+ createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
53
+ lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
54
+ fileId: core.serialization.property("file_id", core.serialization.string()),
55
+ sourceId: core.serialization.property("source_id", core.serialization.string()),
56
+ isOpen: core.serialization.property("is_open", core.serialization.boolean()),
57
+ lastAccessedAt: core.serialization.property("last_accessed_at", core.serialization.date().optional()),
58
+ });
@@ -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
+ import { EmbeddingConfig } from "./EmbeddingConfig";
8
+ export declare const Folder: core.serialization.ObjectSchema<serializers.Folder.Raw, Letta.Folder>;
9
+ export declare namespace Folder {
10
+ interface Raw {
11
+ name: string;
12
+ description?: string | null;
13
+ instructions?: string | null;
14
+ metadata?: Record<string, unknown> | null;
15
+ id?: string | null;
16
+ embedding_config: EmbeddingConfig.Raw;
17
+ created_by_id?: string | null;
18
+ last_updated_by_id?: string | null;
19
+ created_at?: string | null;
20
+ updated_at?: string | null;
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.Folder = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const EmbeddingConfig_1 = require("./EmbeddingConfig");
42
+ exports.Folder = core.serialization.object({
43
+ name: core.serialization.string(),
44
+ description: core.serialization.string().optional(),
45
+ instructions: core.serialization.string().optional(),
46
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
47
+ id: core.serialization.string().optional(),
48
+ embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig),
49
+ createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
50
+ lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
51
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
52
+ updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
53
+ });
@@ -0,0 +1,16 @@
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 GenerateToolInput: core.serialization.ObjectSchema<serializers.GenerateToolInput.Raw, Letta.GenerateToolInput>;
8
+ export declare namespace GenerateToolInput {
9
+ interface Raw {
10
+ tool_name: string;
11
+ prompt: string;
12
+ handle?: string | null;
13
+ starter_code?: string | null;
14
+ validation_errors: string[];
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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.GenerateToolInput = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.GenerateToolInput = core.serialization.object({
42
+ toolName: core.serialization.property("tool_name", core.serialization.string()),
43
+ prompt: core.serialization.string(),
44
+ handle: core.serialization.string().optional(),
45
+ starterCode: core.serialization.property("starter_code", core.serialization.string().optional()),
46
+ validationErrors: core.serialization.property("validation_errors", core.serialization.list(core.serialization.string())),
47
+ });
@@ -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 { Tool } from "./Tool";
8
+ export declare const GenerateToolOutput: core.serialization.ObjectSchema<serializers.GenerateToolOutput.Raw, Letta.GenerateToolOutput>;
9
+ export declare namespace GenerateToolOutput {
10
+ interface Raw {
11
+ tool: Tool.Raw;
12
+ sample_args: Record<string, unknown>;
13
+ response: string;
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.GenerateToolOutput = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const Tool_1 = require("./Tool");
42
+ exports.GenerateToolOutput = core.serialization.object({
43
+ tool: Tool_1.Tool,
44
+ sampleArgs: core.serialization.property("sample_args", core.serialization.record(core.serialization.string(), core.serialization.unknown())),
45
+ response: core.serialization.string(),
46
+ });
@@ -5,11 +5,12 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { Block } from "./Block";
8
+ import { FileBlock } from "./FileBlock";
8
9
  export declare const Memory: core.serialization.ObjectSchema<serializers.Memory.Raw, Letta.Memory>;
9
10
  export declare namespace Memory {
10
11
  interface Raw {
11
12
  blocks: Block.Raw[];
12
- file_blocks?: Block.Raw[] | null;
13
+ file_blocks?: FileBlock.Raw[] | null;
13
14
  prompt_template?: string | null;
14
15
  }
15
16
  }
@@ -39,8 +39,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Memory = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const Block_1 = require("./Block");
42
+ const FileBlock_1 = require("./FileBlock");
42
43
  exports.Memory = core.serialization.object({
43
44
  blocks: core.serialization.list(Block_1.Block),
44
- fileBlocks: core.serialization.property("file_blocks", core.serialization.list(Block_1.Block).optional()),
45
+ fileBlocks: core.serialization.property("file_blocks", core.serialization.list(FileBlock_1.FileBlock).optional()),
45
46
  promptTemplate: core.serialization.property("prompt_template", core.serialization.string().optional()),
46
47
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ProviderType: core.serialization.Schema<serializers.ProviderType.Raw, Letta.ProviderType>;
8
8
  export declare namespace ProviderType {
9
- type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock";
9
+ type Raw = "anthropic" | "google_ai" | "google_vertex" | "openai" | "letta" | "deepseek" | "cerebras" | "lmstudio_openai" | "xai" | "mistral" | "ollama" | "groq" | "together" | "azure" | "vllm" | "bedrock" | "cohere";
10
10
  }
@@ -45,6 +45,7 @@ exports.ProviderType = core.serialization.enum_([
45
45
  "openai",
46
46
  "letta",
47
47
  "deepseek",
48
+ "cerebras",
48
49
  "lmstudio_openai",
49
50
  "xai",
50
51
  "mistral",
@@ -54,4 +55,5 @@ exports.ProviderType = core.serialization.enum_([
54
55
  "azure",
55
56
  "vllm",
56
57
  "bedrock",
58
+ "cohere",
57
59
  ]);
@@ -93,15 +93,19 @@ export * from "./EmbeddingConfigEmbeddingEndpointType";
93
93
  export * from "./EmbeddingConfig";
94
94
  export * from "./FeedbackType";
95
95
  export * from "./File_";
96
+ export * from "./FileBlock";
96
97
  export * from "./FileFile";
97
98
  export * from "./FileMetadata";
98
99
  export * from "./FileProcessingStatus";
99
100
  export * from "./FileStats";
101
+ export * from "./Folder";
100
102
  export * from "./FunctionOutput";
101
103
  export * from "./FunctionCall";
102
104
  export * from "./FunctionDefinitionInput";
103
105
  export * from "./FunctionDefinitionOutput";
104
106
  export * from "./FunctionTool";
107
+ export * from "./GenerateToolInput";
108
+ export * from "./GenerateToolOutput";
105
109
  export * from "./Group";
106
110
  export * from "./HttpValidationError";
107
111
  export * from "./Health";
@@ -109,15 +109,19 @@ __exportStar(require("./EmbeddingConfigEmbeddingEndpointType"), exports);
109
109
  __exportStar(require("./EmbeddingConfig"), exports);
110
110
  __exportStar(require("./FeedbackType"), exports);
111
111
  __exportStar(require("./File_"), exports);
112
+ __exportStar(require("./FileBlock"), exports);
112
113
  __exportStar(require("./FileFile"), exports);
113
114
  __exportStar(require("./FileMetadata"), exports);
114
115
  __exportStar(require("./FileProcessingStatus"), exports);
115
116
  __exportStar(require("./FileStats"), exports);
117
+ __exportStar(require("./Folder"), exports);
116
118
  __exportStar(require("./FunctionOutput"), exports);
117
119
  __exportStar(require("./FunctionCall"), exports);
118
120
  __exportStar(require("./FunctionDefinitionInput"), exports);
119
121
  __exportStar(require("./FunctionDefinitionOutput"), exports);
120
122
  __exportStar(require("./FunctionTool"), exports);
123
+ __exportStar(require("./GenerateToolInput"), exports);
124
+ __exportStar(require("./GenerateToolOutput"), exports);
121
125
  __exportStar(require("./Group"), exports);
122
126
  __exportStar(require("./HttpValidationError"), exports);
123
127
  __exportStar(require("./Health"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.159";
1
+ export declare const SDK_VERSION = "0.1.161";
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.159";
4
+ exports.SDK_VERSION = "0.1.161";