@letta-ai/letta-client 0.1.11 → 0.1.12

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 (132) hide show
  1. package/api/resources/agents/client/Client.d.ts +1 -4
  2. package/api/resources/agents/client/Client.js +16 -21
  3. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  4. package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  5. package/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  8. package/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  9. package/api/resources/agents/resources/index.d.ts +0 -1
  10. package/api/resources/agents/resources/index.js +1 -2
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  12. package/api/resources/agents/resources/messages/client/Client.d.ts +5 -5
  13. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  14. package/api/resources/agents/resources/sources/client/Client.js +1 -1
  15. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  16. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  17. package/api/resources/blocks/client/Client.js +7 -7
  18. package/api/resources/health/client/Client.js +1 -1
  19. package/api/resources/jobs/client/Client.js +4 -4
  20. package/api/resources/models/client/Client.js +2 -2
  21. package/api/resources/providers/client/Client.d.ts +11 -11
  22. package/api/resources/providers/client/Client.js +32 -32
  23. package/api/resources/providers/client/requests/index.d.ts +1 -1
  24. package/api/resources/runs/client/Client.js +6 -6
  25. package/api/resources/sources/client/Client.js +8 -8
  26. package/api/resources/sources/resources/files/client/Client.js +3 -3
  27. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  28. package/api/resources/tag/client/Client.js +1 -1
  29. package/api/resources/tools/client/Client.d.ts +0 -12
  30. package/api/resources/tools/client/Client.js +11 -76
  31. package/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  32. package/api/types/index.d.ts +0 -2
  33. package/api/types/index.js +0 -2
  34. package/dist/api/resources/agents/client/Client.d.ts +1 -4
  35. package/dist/api/resources/agents/client/Client.js +16 -21
  36. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  37. package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +0 -12
  38. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +9 -74
  39. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  40. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +2 -14
  41. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +21 -86
  42. package/dist/api/resources/agents/resources/index.d.ts +0 -1
  43. package/dist/api/resources/agents/resources/index.js +1 -2
  44. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
  45. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +5 -5
  46. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  47. package/dist/api/resources/agents/resources/sources/client/Client.js +1 -1
  48. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  49. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  50. package/dist/api/resources/blocks/client/Client.js +7 -7
  51. package/dist/api/resources/health/client/Client.js +1 -1
  52. package/dist/api/resources/jobs/client/Client.js +4 -4
  53. package/dist/api/resources/models/client/Client.js +2 -2
  54. package/dist/api/resources/providers/client/Client.d.ts +11 -11
  55. package/dist/api/resources/providers/client/Client.js +32 -32
  56. package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
  57. package/dist/api/resources/runs/client/Client.js +6 -6
  58. package/dist/api/resources/sources/client/Client.js +8 -8
  59. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  60. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  61. package/dist/api/resources/tag/client/Client.js +1 -1
  62. package/dist/api/resources/tools/client/Client.d.ts +0 -12
  63. package/dist/api/resources/tools/client/Client.js +11 -76
  64. package/dist/api/types/LettaSchemasMessageMessage.d.ts +2 -0
  65. package/dist/api/types/index.d.ts +0 -2
  66. package/dist/api/types/index.js +0 -2
  67. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  68. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -4
  69. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  70. package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  71. package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  72. package/dist/serialization/resources/tools/client/index.d.ts +0 -1
  73. package/dist/serialization/resources/tools/client/index.js +1 -2
  74. package/dist/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  75. package/dist/serialization/types/LettaSchemasMessageMessage.js +1 -0
  76. package/dist/serialization/types/index.d.ts +0 -2
  77. package/dist/serialization/types/index.js +0 -2
  78. package/dist/version.d.ts +1 -1
  79. package/dist/version.js +1 -1
  80. package/package.json +1 -1
  81. package/reference.md +20 -274
  82. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  83. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +2 -4
  84. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -2
  85. package/serialization/resources/agents/resources/coreMemory/client/index.js +2 -3
  86. package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.d.ts → list.d.ts} +1 -1
  87. package/serialization/resources/tools/client/index.d.ts +0 -1
  88. package/serialization/resources/tools/client/index.js +1 -2
  89. package/serialization/types/LettaSchemasMessageMessage.d.ts +1 -0
  90. package/serialization/types/LettaSchemasMessageMessage.js +1 -0
  91. package/serialization/types/index.d.ts +0 -2
  92. package/serialization/types/index.js +0 -2
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  96. package/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  97. package/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  98. package/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  99. package/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  100. package/api/resources/agents/resources/recallMemory/index.js +0 -17
  101. package/api/types/ArchivalMemorySummary.d.ts +0 -7
  102. package/api/types/ArchivalMemorySummary.js +0 -5
  103. package/api/types/RecallMemorySummary.d.ts +0 -7
  104. package/api/types/RecallMemorySummary.js +0 -5
  105. package/dist/api/resources/agents/resources/recallMemory/client/Client.d.ts +0 -44
  106. package/dist/api/resources/agents/resources/recallMemory/client/Client.js +0 -134
  107. package/dist/api/resources/agents/resources/recallMemory/client/index.d.ts +0 -1
  108. package/dist/api/resources/agents/resources/recallMemory/client/index.js +0 -2
  109. package/dist/api/resources/agents/resources/recallMemory/index.d.ts +0 -1
  110. package/dist/api/resources/agents/resources/recallMemory/index.js +0 -17
  111. package/dist/api/types/ArchivalMemorySummary.d.ts +0 -7
  112. package/dist/api/types/ArchivalMemorySummary.js +0 -5
  113. package/dist/api/types/RecallMemorySummary.d.ts +0 -7
  114. package/dist/api/types/RecallMemorySummary.js +0 -5
  115. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  116. package/dist/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  117. package/dist/serialization/resources/tools/client/getByName.d.ts +0 -9
  118. package/dist/serialization/resources/tools/client/getByName.js +0 -41
  119. package/dist/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  120. package/dist/serialization/types/ArchivalMemorySummary.js +0 -43
  121. package/dist/serialization/types/RecallMemorySummary.d.ts +0 -12
  122. package/dist/serialization/types/RecallMemorySummary.js +0 -43
  123. package/serialization/resources/agents/resources/coreMemory/client/listInContext.d.ts +0 -11
  124. package/serialization/resources/agents/resources/coreMemory/client/listInContext.js +0 -42
  125. package/serialization/resources/tools/client/getByName.d.ts +0 -9
  126. package/serialization/resources/tools/client/getByName.js +0 -41
  127. package/serialization/types/ArchivalMemorySummary.d.ts +0 -12
  128. package/serialization/types/ArchivalMemorySummary.js +0 -43
  129. package/serialization/types/RecallMemorySummary.d.ts +0 -12
  130. package/serialization/types/RecallMemorySummary.js +0 -43
  131. /package/dist/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
  132. /package/serialization/resources/agents/resources/coreMemory/client/{getBlocks.js → list.js} +0 -0
package/reference.md CHANGED
@@ -199,69 +199,6 @@ await client.tools.update("tool_id");
199
199
  </dl>
200
200
  </details>
201
201
 
202
- <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">getByName</a>(toolName) -> string</code></summary>
203
- <dl>
204
- <dd>
205
-
206
- #### 📝 Description
207
-
208
- <dl>
209
- <dd>
210
-
211
- <dl>
212
- <dd>
213
-
214
- Get a tool ID by name
215
-
216
- </dd>
217
- </dl>
218
- </dd>
219
- </dl>
220
-
221
- #### 🔌 Usage
222
-
223
- <dl>
224
- <dd>
225
-
226
- <dl>
227
- <dd>
228
-
229
- ```typescript
230
- await client.tools.getByName("tool_name");
231
- ```
232
-
233
- </dd>
234
- </dl>
235
- </dd>
236
- </dl>
237
-
238
- #### ⚙️ Parameters
239
-
240
- <dl>
241
- <dd>
242
-
243
- <dl>
244
- <dd>
245
-
246
- **toolName:** `string`
247
-
248
- </dd>
249
- </dl>
250
-
251
- <dl>
252
- <dd>
253
-
254
- **requestOptions:** `Tools.RequestOptions`
255
-
256
- </dd>
257
- </dl>
258
- </dd>
259
- </dl>
260
-
261
- </dd>
262
- </dl>
263
- </details>
264
-
265
202
  <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">list</a>({ ...params }) -> Letta.LettaSchemasToolTool[]</code></summary>
266
203
  <dl>
267
204
  <dd>
@@ -1554,7 +1491,7 @@ await client.agents.delete("agent_id");
1554
1491
  <dl>
1555
1492
  <dd>
1556
1493
 
1557
- Update an exsiting agent
1494
+ Update an existing agent
1558
1495
 
1559
1496
  </dd>
1560
1497
  </dl>
@@ -2649,7 +2586,7 @@ await client.providers.createProvider({
2649
2586
  </dl>
2650
2587
  </details>
2651
2588
 
2652
- <details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">updateProvider</a>({ ...params }) -> Letta.Provider</code></summary>
2589
+ <details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">deleteProvider</a>({ ...params }) -> unknown</code></summary>
2653
2590
  <dl>
2654
2591
  <dd>
2655
2592
 
@@ -2661,7 +2598,7 @@ await client.providers.createProvider({
2661
2598
  <dl>
2662
2599
  <dd>
2663
2600
 
2664
- Update an existing custom provider
2601
+ Delete an existing custom provider
2665
2602
 
2666
2603
  </dd>
2667
2604
  </dl>
@@ -2677,9 +2614,8 @@ Update an existing custom provider
2677
2614
  <dd>
2678
2615
 
2679
2616
  ```typescript
2680
- await client.providers.updateProvider({
2681
- id: "id",
2682
- apiKey: "api_key",
2617
+ await client.providers.deleteProvider({
2618
+ providerId: "provider_id",
2683
2619
  });
2684
2620
  ```
2685
2621
 
@@ -2696,7 +2632,7 @@ await client.providers.updateProvider({
2696
2632
  <dl>
2697
2633
  <dd>
2698
2634
 
2699
- **request:** `Letta.ProviderUpdate`
2635
+ **request:** `Letta.DeleteProviderRequest`
2700
2636
 
2701
2637
  </dd>
2702
2638
  </dl>
@@ -2715,7 +2651,7 @@ await client.providers.updateProvider({
2715
2651
  </dl>
2716
2652
  </details>
2717
2653
 
2718
- <details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">deleteProvider</a>({ ...params }) -> unknown</code></summary>
2654
+ <details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">updateProvider</a>({ ...params }) -> Letta.Provider</code></summary>
2719
2655
  <dl>
2720
2656
  <dd>
2721
2657
 
@@ -2727,7 +2663,7 @@ await client.providers.updateProvider({
2727
2663
  <dl>
2728
2664
  <dd>
2729
2665
 
2730
- Delete an existing custom provider
2666
+ Update an existing custom provider
2731
2667
 
2732
2668
  </dd>
2733
2669
  </dl>
@@ -2743,8 +2679,9 @@ Delete an existing custom provider
2743
2679
  <dd>
2744
2680
 
2745
2681
  ```typescript
2746
- await client.providers.deleteProvider({
2747
- providerId: "provider_id",
2682
+ await client.providers.updateProvider({
2683
+ id: "id",
2684
+ apiKey: "api_key",
2748
2685
  });
2749
2686
  ```
2750
2687
 
@@ -2761,7 +2698,7 @@ await client.providers.deleteProvider({
2761
2698
  <dl>
2762
2699
  <dd>
2763
2700
 
2764
- **request:** `Letta.DeleteProviderRequest`
2701
+ **request:** `Letta.ProviderUpdate`
2765
2702
 
2766
2703
  </dd>
2767
2704
  </dl>
@@ -3568,69 +3505,6 @@ await client.agents.sources.get("agent_id");
3568
3505
 
3569
3506
  ## Agents CoreMemory
3570
3507
 
3571
- <details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">listInContext</a>(agentId) -> Letta.LettaSchemasMessageMessage[]</code></summary>
3572
- <dl>
3573
- <dd>
3574
-
3575
- #### 📝 Description
3576
-
3577
- <dl>
3578
- <dd>
3579
-
3580
- <dl>
3581
- <dd>
3582
-
3583
- Retrieve the messages in the context of a specific agent.
3584
-
3585
- </dd>
3586
- </dl>
3587
- </dd>
3588
- </dl>
3589
-
3590
- #### 🔌 Usage
3591
-
3592
- <dl>
3593
- <dd>
3594
-
3595
- <dl>
3596
- <dd>
3597
-
3598
- ```typescript
3599
- await client.agents.coreMemory.listInContext("agent_id");
3600
- ```
3601
-
3602
- </dd>
3603
- </dl>
3604
- </dd>
3605
- </dl>
3606
-
3607
- #### ⚙️ Parameters
3608
-
3609
- <dl>
3610
- <dd>
3611
-
3612
- <dl>
3613
- <dd>
3614
-
3615
- **agentId:** `string`
3616
-
3617
- </dd>
3618
- </dl>
3619
-
3620
- <dl>
3621
- <dd>
3622
-
3623
- **requestOptions:** `CoreMemory.RequestOptions`
3624
-
3625
- </dd>
3626
- </dl>
3627
- </dd>
3628
- </dl>
3629
-
3630
- </dd>
3631
- </dl>
3632
- </details>
3633
-
3634
3508
  <details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">get</a>(agentId) -> Letta.Memory</code></summary>
3635
3509
  <dl>
3636
3510
  <dd>
@@ -3916,7 +3790,7 @@ await client.agents.coreMemory.updateBlock("agent_id", "block_label", {});
3916
3790
  </dl>
3917
3791
  </details>
3918
3792
 
3919
- <details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">getBlocks</a>(agentId) -> Letta.Block[]</code></summary>
3793
+ <details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">list</a>(agentId) -> Letta.Block[]</code></summary>
3920
3794
  <dl>
3921
3795
  <dd>
3922
3796
 
@@ -3944,7 +3818,7 @@ Retrieve the memory blocks of a specific agent.
3944
3818
  <dd>
3945
3819
 
3946
3820
  ```typescript
3947
- await client.agents.coreMemory.getBlocks("agent_id");
3821
+ await client.agents.coreMemory.list("agent_id");
3948
3822
  ```
3949
3823
 
3950
3824
  </dd>
@@ -4053,136 +3927,8 @@ await client.agents.coreMemory.addBlock("agent_id", {
4053
3927
  </dl>
4054
3928
  </details>
4055
3929
 
4056
- ## Agents RecallMemory
4057
-
4058
- <details><summary><code>client.agents.recallMemory.<a href="/src/api/resources/agents/resources/recallMemory/client/Client.ts">getSummary</a>(agentId) -> Letta.RecallMemorySummary</code></summary>
4059
- <dl>
4060
- <dd>
4061
-
4062
- #### 📝 Description
4063
-
4064
- <dl>
4065
- <dd>
4066
-
4067
- <dl>
4068
- <dd>
4069
-
4070
- Retrieve the summary of the recall memory of a specific agent.
4071
-
4072
- </dd>
4073
- </dl>
4074
- </dd>
4075
- </dl>
4076
-
4077
- #### 🔌 Usage
4078
-
4079
- <dl>
4080
- <dd>
4081
-
4082
- <dl>
4083
- <dd>
4084
-
4085
- ```typescript
4086
- await client.agents.recallMemory.getSummary("agent_id");
4087
- ```
4088
-
4089
- </dd>
4090
- </dl>
4091
- </dd>
4092
- </dl>
4093
-
4094
- #### ⚙️ Parameters
4095
-
4096
- <dl>
4097
- <dd>
4098
-
4099
- <dl>
4100
- <dd>
4101
-
4102
- **agentId:** `string`
4103
-
4104
- </dd>
4105
- </dl>
4106
-
4107
- <dl>
4108
- <dd>
4109
-
4110
- **requestOptions:** `RecallMemory.RequestOptions`
4111
-
4112
- </dd>
4113
- </dl>
4114
- </dd>
4115
- </dl>
4116
-
4117
- </dd>
4118
- </dl>
4119
- </details>
4120
-
4121
3930
  ## Agents ArchivalMemory
4122
3931
 
4123
- <details><summary><code>client.agents.archivalMemory.<a href="/src/api/resources/agents/resources/archivalMemory/client/Client.ts">getSummary</a>(agentId) -> Letta.ArchivalMemorySummary</code></summary>
4124
- <dl>
4125
- <dd>
4126
-
4127
- #### 📝 Description
4128
-
4129
- <dl>
4130
- <dd>
4131
-
4132
- <dl>
4133
- <dd>
4134
-
4135
- Retrieve the summary of the archival memory of a specific agent.
4136
-
4137
- </dd>
4138
- </dl>
4139
- </dd>
4140
- </dl>
4141
-
4142
- #### 🔌 Usage
4143
-
4144
- <dl>
4145
- <dd>
4146
-
4147
- <dl>
4148
- <dd>
4149
-
4150
- ```typescript
4151
- await client.agents.archivalMemory.getSummary("agent_id");
4152
- ```
4153
-
4154
- </dd>
4155
- </dl>
4156
- </dd>
4157
- </dl>
4158
-
4159
- #### ⚙️ Parameters
4160
-
4161
- <dl>
4162
- <dd>
4163
-
4164
- <dl>
4165
- <dd>
4166
-
4167
- **agentId:** `string`
4168
-
4169
- </dd>
4170
- </dl>
4171
-
4172
- <dl>
4173
- <dd>
4174
-
4175
- **requestOptions:** `ArchivalMemory.RequestOptions`
4176
-
4177
- </dd>
4178
- </dl>
4179
- </dd>
4180
- </dl>
4181
-
4182
- </dd>
4183
- </dl>
4184
- </details>
4185
-
4186
3932
  <details><summary><code>client.agents.archivalMemory.<a href="/src/api/resources/agents/resources/archivalMemory/client/Client.ts">list</a>(agentId, { ...params }) -> Letta.Passage[]</code></summary>
4187
3933
  <dl>
4188
3934
  <dd>
@@ -4471,7 +4217,7 @@ await client.agents.messages.list("agent_id");
4471
4217
  </dl>
4472
4218
  </details>
4473
4219
 
4474
- <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">send</a>(agentId, { ...params }) -> Letta.LettaResponse</code></summary>
4220
+ <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">create</a>(agentId, { ...params }) -> Letta.LettaResponse</code></summary>
4475
4221
  <dl>
4476
4222
  <dd>
4477
4223
 
@@ -4500,7 +4246,7 @@ This endpoint accepts a message from a user and processes it through the agent.
4500
4246
  <dd>
4501
4247
 
4502
4248
  ```typescript
4503
- await client.agents.messages.send("agent_id", {
4249
+ await client.agents.messages.create("agent_id", {
4504
4250
  messages: [
4505
4251
  {
4506
4252
  role: "user",
@@ -4629,7 +4375,7 @@ await client.agents.messages.update("agent_id", "message_id");
4629
4375
  </dl>
4630
4376
  </details>
4631
4377
 
4632
- <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">stream</a>(agentId, { ...params }) -> core.Stream<Letta.LettaStreamingResponse></code></summary>
4378
+ <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">createStream</a>(agentId, { ...params }) -> core.Stream<Letta.LettaStreamingResponse></code></summary>
4633
4379
  <dl>
4634
4380
  <dd>
4635
4381
 
@@ -4659,7 +4405,7 @@ It will stream the steps of the response always, and stream the tokens if 'strea
4659
4405
  <dd>
4660
4406
 
4661
4407
  ```typescript
4662
- const response = await client.agents.messages.stream("agent_id", {
4408
+ const response = await client.agents.messages.createStream("agent_id", {
4663
4409
  messages: [
4664
4410
  {
4665
4411
  role: "user",
@@ -4712,7 +4458,7 @@ for await (const item of response) {
4712
4458
  </dl>
4713
4459
  </details>
4714
4460
 
4715
- <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">sendAsync</a>(agentId, { ...params }) -> Letta.Run</code></summary>
4461
+ <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">createAsync</a>(agentId, { ...params }) -> Letta.Run</code></summary>
4716
4462
  <dl>
4717
4463
  <dd>
4718
4464
 
@@ -4741,7 +4487,7 @@ The actual processing happens in the background, and the status can be checked u
4741
4487
  <dd>
4742
4488
 
4743
4489
  ```typescript
4744
- await client.agents.messages.sendAsync("agent_id", {
4490
+ await client.agents.messages.createAsync("agent_id", {
4745
4491
  messages: [
4746
4492
  {
4747
4493
  role: "user",
@@ -30,7 +30,7 @@ export declare namespace CreateAgentRequest {
30
30
  include_multi_agent_tools?: boolean | null;
31
31
  description?: string | null;
32
32
  metadata_?: Record<string, unknown> | null;
33
- llm?: string | null;
33
+ model?: string | null;
34
34
  embedding?: string | null;
35
35
  context_window_limit?: number | null;
36
36
  embedding_chunk_size?: number | null;
@@ -38,6 +38,6 @@ export declare namespace CreateAgentRequest {
38
38
  template?: boolean | null;
39
39
  project?: string | null;
40
40
  tool_exec_environment_variables?: Record<string, string | null | undefined> | null;
41
- variables?: Record<string, string | null | undefined> | null;
41
+ memory_variables?: Record<string, string | null | undefined> | null;
42
42
  }
43
43
  }
@@ -62,7 +62,7 @@ exports.CreateAgentRequest = core.serialization.object({
62
62
  includeMultiAgentTools: core.serialization.property("include_multi_agent_tools", core.serialization.boolean().optional()),
63
63
  description: core.serialization.string().optional(),
64
64
  metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
65
- llm: core.serialization.string().optional(),
65
+ model: core.serialization.string().optional(),
66
66
  embedding: core.serialization.string().optional(),
67
67
  contextWindowLimit: core.serialization.property("context_window_limit", core.serialization.number().optional()),
68
68
  embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
@@ -70,7 +70,5 @@ exports.CreateAgentRequest = core.serialization.object({
70
70
  template: core.serialization.boolean().optional(),
71
71
  project: core.serialization.string().optional(),
72
72
  toolExecEnvironmentVariables: core.serialization.property("tool_exec_environment_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
73
- variables: core.serialization
74
- .record(core.serialization.string(), core.serialization.string().optional())
75
- .optional(),
73
+ memoryVariables: core.serialization.property("memory_variables", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
76
74
  });
@@ -1,2 +1 @@
1
- export * as listInContext from "./listInContext";
2
- export * as getBlocks from "./getBlocks";
1
+ export * as list from "./list";
@@ -33,6 +33,5 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.getBlocks = exports.listInContext = void 0;
37
- exports.listInContext = __importStar(require("./listInContext"));
38
- exports.getBlocks = __importStar(require("./getBlocks"));
36
+ exports.list = void 0;
37
+ exports.list = __importStar(require("./list"));
@@ -5,7 +5,7 @@ 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 "../../../../../types/Block";
8
- export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.getBlocks.Response.Raw, Letta.Block[]>;
8
+ export declare const Response: core.serialization.Schema<serializers.agents.coreMemory.list.Response.Raw, Letta.Block[]>;
9
9
  export declare namespace Response {
10
10
  type Raw = Block.Raw[];
11
11
  }
@@ -1,4 +1,3 @@
1
- export * as getByName from "./getByName";
2
1
  export * as list from "./list";
3
2
  export * as addBaseTool from "./addBaseTool";
4
3
  export * as listComposioApps from "./listComposioApps";
@@ -36,8 +36,7 @@ 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.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = exports.getByName = void 0;
40
- exports.getByName = __importStar(require("./getByName"));
39
+ exports.listComposioActionsByApp = exports.listComposioApps = exports.addBaseTool = exports.list = void 0;
41
40
  exports.list = __importStar(require("./list"));
42
41
  exports.addBaseTool = __importStar(require("./addBaseTool"));
43
42
  exports.listComposioApps = __importStar(require("./listComposioApps"));
@@ -21,5 +21,6 @@ export declare namespace LettaSchemasMessageMessage {
21
21
  name?: string | null;
22
22
  tool_calls?: LettaSchemasOpenaiChatCompletionsToolCallOutput.Raw[] | null;
23
23
  tool_call_id?: string | null;
24
+ step_id?: string | null;
24
25
  }
25
26
  }
@@ -53,4 +53,5 @@ exports.LettaSchemasMessageMessage = core.serialization.object({
53
53
  name: core.serialization.string().optional(),
54
54
  toolCalls: core.serialization.property("tool_calls", core.serialization.list(LettaSchemasOpenaiChatCompletionsToolCallOutput_1.LettaSchemasOpenaiChatCompletionsToolCallOutput).optional()),
55
55
  toolCallId: core.serialization.property("tool_call_id", core.serialization.string().optional()),
56
+ stepId: core.serialization.property("step_id", core.serialization.string().optional()),
56
57
  });
@@ -12,7 +12,6 @@ export * from "./AgentType";
12
12
  export * from "./AppAuthSchemeAuthMode";
13
13
  export * from "./AppAuthScheme";
14
14
  export * from "./AppModel";
15
- export * from "./ArchivalMemorySummary";
16
15
  export * from "./AssistantFile";
17
16
  export * from "./AssistantMessageInput";
18
17
  export * from "./AssistantMessageOutput";
@@ -68,7 +67,6 @@ export * from "./OrganizationCreate";
68
67
  export * from "./Passage";
69
68
  export * from "./Provider";
70
69
  export * from "./ReasoningMessage";
71
- export * from "./RecallMemorySummary";
72
70
  export * from "./ResponseFormat";
73
71
  export * from "./Run";
74
72
  export * from "./SandboxConfig";
@@ -28,7 +28,6 @@ __exportStar(require("./AgentType"), exports);
28
28
  __exportStar(require("./AppAuthSchemeAuthMode"), exports);
29
29
  __exportStar(require("./AppAuthScheme"), exports);
30
30
  __exportStar(require("./AppModel"), exports);
31
- __exportStar(require("./ArchivalMemorySummary"), exports);
32
31
  __exportStar(require("./AssistantFile"), exports);
33
32
  __exportStar(require("./AssistantMessageInput"), exports);
34
33
  __exportStar(require("./AssistantMessageOutput"), exports);
@@ -84,7 +83,6 @@ __exportStar(require("./OrganizationCreate"), exports);
84
83
  __exportStar(require("./Passage"), exports);
85
84
  __exportStar(require("./Provider"), exports);
86
85
  __exportStar(require("./ReasoningMessage"), exports);
87
- __exportStar(require("./RecallMemorySummary"), exports);
88
86
  __exportStar(require("./ResponseFormat"), exports);
89
87
  __exportStar(require("./Run"), exports);
90
88
  __exportStar(require("./SandboxConfig"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.11";
1
+ export declare const SDK_VERSION = "0.1.12";
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.11";
4
+ exports.SDK_VERSION = "0.1.12";
@@ -1,44 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../../../environments";
5
- import * as core from "../../../../../../core";
6
- import * as Letta from "../../../../../index";
7
- export declare namespace RecallMemory {
8
- interface Options {
9
- environment?: core.Supplier<environments.LettaEnvironment | string>;
10
- /** Specify a custom URL to connect the client to. */
11
- baseUrl?: core.Supplier<string>;
12
- token?: core.Supplier<string | undefined>;
13
- fetcher?: core.FetchFunction;
14
- }
15
- interface RequestOptions {
16
- /** The maximum time to wait for a response in seconds. */
17
- timeoutInSeconds?: number;
18
- /** The number of times to retry the request. Defaults to 2. */
19
- maxRetries?: number;
20
- /** A hook to abort the request. */
21
- abortSignal?: AbortSignal;
22
- /** Additional headers to include in the request. */
23
- headers?: Record<string, string>;
24
- }
25
- }
26
- export declare class RecallMemory {
27
- protected readonly _options: RecallMemory.Options;
28
- constructor(_options?: RecallMemory.Options);
29
- /**
30
- * Retrieve the summary of the recall memory of a specific agent.
31
- *
32
- * @param {string} agentId
33
- * @param {RecallMemory.RequestOptions} requestOptions - Request-specific configuration.
34
- *
35
- * @throws {@link Letta.UnprocessableEntityError}
36
- *
37
- * @example
38
- * await client.agents.recallMemory.getSummary("agent_id")
39
- */
40
- getSummary(agentId: string, requestOptions?: RecallMemory.RequestOptions): Promise<Letta.RecallMemorySummary>;
41
- protected _getCustomAuthorizationHeaders(): Promise<{
42
- Authorization: string;
43
- }>;
44
- }