@letta-ai/letta-client 0.1.157 → 0.1.159

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 (116) hide show
  1. package/api/resources/agents/client/Client.d.ts +33 -0
  2. package/api/resources/agents/client/Client.js +148 -11
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -0
  4. package/api/resources/agents/client/requests/UpdateAgent.d.ts +4 -0
  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/groups/client/Client.js +1 -1
  9. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  10. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  11. package/api/resources/agents/resources/passages/client/Client.js +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 +3 -3
  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/groups/client/Client.js +6 -6
  21. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  22. package/api/resources/health/client/Client.js +1 -1
  23. package/api/resources/identities/client/Client.js +7 -7
  24. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  25. package/api/resources/jobs/client/Client.js +5 -5
  26. package/api/resources/messages/client/Client.js +1 -1
  27. package/api/resources/models/client/Client.js +1 -1
  28. package/api/resources/projects/client/Client.js +1 -1
  29. package/api/resources/providers/client/Client.js +5 -5
  30. package/api/resources/runs/client/Client.js +4 -4
  31. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  32. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  33. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  34. package/api/resources/sources/client/Client.js +10 -10
  35. package/api/resources/sources/resources/files/client/Client.js +3 -3
  36. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  37. package/api/resources/steps/client/Client.js +2 -2
  38. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  39. package/api/resources/tags/client/Client.js +1 -1
  40. package/api/resources/telemetry/client/Client.js +1 -1
  41. package/api/resources/templates/client/Client.js +1 -1
  42. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  43. package/api/resources/tools/client/Client.js +19 -19
  44. package/api/resources/voice/client/Client.js +1 -1
  45. package/api/types/AgentState.d.ts +4 -0
  46. package/dist/api/resources/agents/client/Client.d.ts +33 -0
  47. package/dist/api/resources/agents/client/Client.js +148 -11
  48. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -0
  49. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +4 -0
  50. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  51. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  52. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  53. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  54. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  55. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  56. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  57. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  58. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  59. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  60. package/dist/api/resources/batches/client/Client.js +4 -4
  61. package/dist/api/resources/blocks/client/Client.js +6 -6
  62. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  63. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  64. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  65. package/dist/api/resources/groups/client/Client.js +6 -6
  66. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  67. package/dist/api/resources/health/client/Client.js +1 -1
  68. package/dist/api/resources/identities/client/Client.js +7 -7
  69. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  70. package/dist/api/resources/jobs/client/Client.js +5 -5
  71. package/dist/api/resources/messages/client/Client.js +1 -1
  72. package/dist/api/resources/models/client/Client.js +1 -1
  73. package/dist/api/resources/projects/client/Client.js +1 -1
  74. package/dist/api/resources/providers/client/Client.js +5 -5
  75. package/dist/api/resources/runs/client/Client.js +4 -4
  76. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  77. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  78. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  79. package/dist/api/resources/sources/client/Client.js +10 -10
  80. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  81. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  82. package/dist/api/resources/steps/client/Client.js +2 -2
  83. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  84. package/dist/api/resources/tags/client/Client.js +1 -1
  85. package/dist/api/resources/telemetry/client/Client.js +1 -1
  86. package/dist/api/resources/templates/client/Client.js +1 -1
  87. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  88. package/dist/api/resources/tools/client/Client.js +19 -19
  89. package/dist/api/resources/voice/client/Client.js +1 -1
  90. package/dist/api/types/AgentState.d.ts +4 -0
  91. package/dist/serialization/resources/agents/client/index.d.ts +1 -0
  92. package/dist/serialization/resources/agents/client/index.js +2 -1
  93. package/dist/serialization/resources/agents/client/openFile.d.ts +9 -0
  94. package/dist/serialization/resources/agents/client/openFile.js +41 -0
  95. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  96. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
  97. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  98. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  99. package/dist/serialization/types/AgentState.d.ts +2 -0
  100. package/dist/serialization/types/AgentState.js +2 -0
  101. package/dist/version.d.ts +1 -1
  102. package/dist/version.js +1 -1
  103. package/package.json +1 -1
  104. package/reference.md +149 -0
  105. package/serialization/resources/agents/client/index.d.ts +1 -0
  106. package/serialization/resources/agents/client/index.js +2 -1
  107. package/serialization/resources/agents/client/openFile.d.ts +9 -0
  108. package/serialization/resources/agents/client/openFile.js +41 -0
  109. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -0
  110. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -0
  111. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  112. package/serialization/resources/agents/client/requests/UpdateAgent.js +2 -0
  113. package/serialization/types/AgentState.d.ts +2 -0
  114. package/serialization/types/AgentState.js +2 -0
  115. package/version.d.ts +1 -1
  116. package/version.js +1 -1
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.157";
4
+ exports.SDK_VERSION = "0.1.159";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.157",
3
+ "version": "0.1.159",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2472,6 +2472,155 @@ await client.agents.closeAllOpenFiles("agent_id");
2472
2472
  </dl>
2473
2473
  </details>
2474
2474
 
2475
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">openFile</a>(agentId, fileId) -> string[]</code></summary>
2476
+ <dl>
2477
+ <dd>
2478
+
2479
+ #### 📝 Description
2480
+
2481
+ <dl>
2482
+ <dd>
2483
+
2484
+ <dl>
2485
+ <dd>
2486
+
2487
+ Opens a specific file for a given agent.
2488
+
2489
+ This endpoint marks a specific file as open in the agent's file state.
2490
+ The file will be included in the agent's working memory view.
2491
+ Returns a list of file names that were closed due to LRU eviction.
2492
+
2493
+ </dd>
2494
+ </dl>
2495
+ </dd>
2496
+ </dl>
2497
+
2498
+ #### 🔌 Usage
2499
+
2500
+ <dl>
2501
+ <dd>
2502
+
2503
+ <dl>
2504
+ <dd>
2505
+
2506
+ ```typescript
2507
+ await client.agents.openFile("agent_id", "file_id");
2508
+ ```
2509
+
2510
+ </dd>
2511
+ </dl>
2512
+ </dd>
2513
+ </dl>
2514
+
2515
+ #### ⚙️ Parameters
2516
+
2517
+ <dl>
2518
+ <dd>
2519
+
2520
+ <dl>
2521
+ <dd>
2522
+
2523
+ **agentId:** `string`
2524
+
2525
+ </dd>
2526
+ </dl>
2527
+
2528
+ <dl>
2529
+ <dd>
2530
+
2531
+ **fileId:** `string`
2532
+
2533
+ </dd>
2534
+ </dl>
2535
+
2536
+ <dl>
2537
+ <dd>
2538
+
2539
+ **requestOptions:** `Agents.RequestOptions`
2540
+
2541
+ </dd>
2542
+ </dl>
2543
+ </dd>
2544
+ </dl>
2545
+
2546
+ </dd>
2547
+ </dl>
2548
+ </details>
2549
+
2550
+ <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">closeFile</a>(agentId, fileId) -> unknown</code></summary>
2551
+ <dl>
2552
+ <dd>
2553
+
2554
+ #### 📝 Description
2555
+
2556
+ <dl>
2557
+ <dd>
2558
+
2559
+ <dl>
2560
+ <dd>
2561
+
2562
+ Closes a specific file for a given agent.
2563
+
2564
+ This endpoint marks a specific file as closed in the agent's file state.
2565
+ The file will be removed from the agent's working memory view.
2566
+
2567
+ </dd>
2568
+ </dl>
2569
+ </dd>
2570
+ </dl>
2571
+
2572
+ #### 🔌 Usage
2573
+
2574
+ <dl>
2575
+ <dd>
2576
+
2577
+ <dl>
2578
+ <dd>
2579
+
2580
+ ```typescript
2581
+ await client.agents.closeFile("agent_id", "file_id");
2582
+ ```
2583
+
2584
+ </dd>
2585
+ </dl>
2586
+ </dd>
2587
+ </dl>
2588
+
2589
+ #### ⚙️ Parameters
2590
+
2591
+ <dl>
2592
+ <dd>
2593
+
2594
+ <dl>
2595
+ <dd>
2596
+
2597
+ **agentId:** `string`
2598
+
2599
+ </dd>
2600
+ </dl>
2601
+
2602
+ <dl>
2603
+ <dd>
2604
+
2605
+ **fileId:** `string`
2606
+
2607
+ </dd>
2608
+ </dl>
2609
+
2610
+ <dl>
2611
+ <dd>
2612
+
2613
+ **requestOptions:** `Agents.RequestOptions`
2614
+
2615
+ </dd>
2616
+ </dl>
2617
+ </dd>
2618
+ </dl>
2619
+
2620
+ </dd>
2621
+ </dl>
2622
+ </details>
2623
+
2475
2624
  <details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">summarizeAgentConversation</a>(agentId, { ...params }) -> Letta.AgentState</code></summary>
2476
2625
  <dl>
2477
2626
  <dd>
@@ -2,4 +2,5 @@ export * as list from "./list";
2
2
  export * as count from "./count";
3
3
  export * as exportFile from "./exportFile";
4
4
  export * as closeAllOpenFiles from "./closeAllOpenFiles";
5
+ export * as openFile from "./openFile";
5
6
  export * from "./requests";
@@ -36,9 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.closeAllOpenFiles = exports.exportFile = exports.count = exports.list = void 0;
39
+ exports.openFile = exports.closeAllOpenFiles = exports.exportFile = exports.count = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.count = __importStar(require("./count"));
42
42
  exports.exportFile = __importStar(require("./exportFile"));
43
43
  exports.closeAllOpenFiles = __importStar(require("./closeAllOpenFiles"));
44
+ exports.openFile = __importStar(require("./openFile"));
44
45
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.agents.openFile.Response.Raw, string[]>;
7
+ export declare namespace Response {
8
+ type Raw = string[];
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.list(core.serialization.string());
@@ -53,5 +53,7 @@ export declare namespace CreateAgentRequest {
53
53
  enable_sleeptime?: boolean | null;
54
54
  response_format?: CreateAgentRequestResponseFormat.Raw | null;
55
55
  timezone?: string | null;
56
+ max_files_open?: number | null;
57
+ per_file_view_window_char_limit?: number | null;
56
58
  }
57
59
  }
@@ -85,4 +85,6 @@ exports.CreateAgentRequest = core.serialization.object({
85
85
  enableSleeptime: core.serialization.property("enable_sleeptime", core.serialization.boolean().optional()),
86
86
  responseFormat: core.serialization.property("response_format", CreateAgentRequestResponseFormat_1.CreateAgentRequestResponseFormat.optional()),
87
87
  timezone: core.serialization.string().optional(),
88
+ maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
89
+ perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
88
90
  });
@@ -36,5 +36,7 @@ export declare namespace UpdateAgent {
36
36
  last_run_completion?: string | null;
37
37
  last_run_duration_ms?: number | null;
38
38
  timezone?: string | null;
39
+ max_files_open?: number | null;
40
+ per_file_view_window_char_limit?: number | null;
39
41
  }
40
42
  }
@@ -68,4 +68,6 @@ exports.UpdateAgent = core.serialization.object({
68
68
  lastRunCompletion: core.serialization.property("last_run_completion", core.serialization.date().optional()),
69
69
  lastRunDurationMs: core.serialization.property("last_run_duration_ms", core.serialization.number().optional()),
70
70
  timezone: core.serialization.string().optional(),
71
+ maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
72
+ perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
71
73
  });
@@ -47,5 +47,7 @@ export declare namespace AgentState {
47
47
  last_run_completion?: string | null;
48
48
  last_run_duration_ms?: number | null;
49
49
  timezone?: string | null;
50
+ max_files_open?: number | null;
51
+ per_file_view_window_char_limit?: number | null;
50
52
  }
51
53
  }
@@ -79,4 +79,6 @@ exports.AgentState = core.serialization.object({
79
79
  lastRunCompletion: core.serialization.property("last_run_completion", core.serialization.date().optional()),
80
80
  lastRunDurationMs: core.serialization.property("last_run_duration_ms", core.serialization.number().optional()),
81
81
  timezone: core.serialization.string().optional(),
82
+ maxFilesOpen: core.serialization.property("max_files_open", core.serialization.number().optional()),
83
+ perFileViewWindowCharLimit: core.serialization.property("per_file_view_window_char_limit", core.serialization.number().optional()),
82
84
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.157";
1
+ export declare const SDK_VERSION = "0.1.159";
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.157";
4
+ exports.SDK_VERSION = "0.1.159";