@letta-ai/letta-client 0.1.14 → 0.1.15
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.
- package/api/resources/agents/client/Client.d.ts +6 -125
- package/api/resources/agents/client/Client.js +22 -626
- package/api/resources/agents/client/requests/index.d.ts +0 -2
- package/api/resources/agents/resources/archivalMemory/client/Client.d.ts +21 -4
- package/api/resources/agents/resources/archivalMemory/client/Client.js +104 -28
- package/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
- package/api/resources/agents/resources/archivalMemory/client/index.js +15 -0
- package/api/resources/agents/{client/requests/ListArchivalMemoryRequest.d.ts → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts} +1 -1
- package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +2 -0
- package/api/resources/agents/resources/archivalMemory/client/requests/index.js +2 -0
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +42 -15
- package/api/resources/agents/resources/coreMemory/client/Client.js +195 -64
- package/api/resources/agents/resources/index.d.ts +1 -0
- package/api/resources/agents/resources/index.js +1 -0
- package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
- package/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
- package/api/resources/agents/resources/messages/client/Client.js +7 -7
- package/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -1
- package/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/api/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +8 -0
- package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/api/resources/agents/resources/messages/types/index.js +1 -0
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/blocks/client/Client.d.ts +13 -0
- package/api/resources/blocks/client/Client.js +71 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +6 -6
- package/api/resources/sources/client/Client.js +6 -6
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/tag/client/Client.js +1 -1
- package/api/resources/tools/client/Client.js +11 -11
- package/api/types/AssistantMessage.d.ts +2 -1
- package/api/types/AssistantMessageContent.d.ts +5 -0
- package/api/types/LlmConfig.d.ts +3 -0
- package/api/types/Message.d.ts +2 -2
- package/api/types/MessageCreate.d.ts +2 -2
- package/api/types/MessageCreateContent.d.ts +8 -0
- package/api/types/MessageCreateContent.js +5 -0
- package/api/types/SystemMessage.d.ts +3 -2
- package/api/types/SystemMessageContent.d.ts +5 -0
- package/api/types/SystemMessageContent.js +5 -0
- package/api/types/TextContent.d.ts +8 -0
- package/api/types/TextContent.js +5 -0
- package/api/types/UserMessage.d.ts +3 -2
- package/api/types/UserMessageContent.d.ts +5 -0
- package/api/types/UserMessageContent.js +5 -0
- package/api/types/index.d.ts +5 -0
- package/api/types/index.js +5 -0
- package/dist/api/resources/agents/client/Client.d.ts +6 -125
- package/dist/api/resources/agents/client/Client.js +22 -626
- package/dist/api/resources/agents/client/requests/index.d.ts +0 -2
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.d.ts +21 -4
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +104 -28
- package/dist/api/resources/agents/resources/archivalMemory/client/index.d.ts +1 -1
- package/dist/api/resources/agents/resources/archivalMemory/client/index.js +15 -0
- package/dist/api/resources/agents/{client/requests/ListArchivalMemoryRequest.d.ts → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts} +1 -1
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js +5 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.js +5 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +2 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.js +2 -0
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +42 -15
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +195 -64
- package/dist/api/resources/agents/resources/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/index.js +1 -0
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +2 -2
- package/dist/api/resources/agents/resources/messages/client/Client.js +7 -7
- package/dist/api/resources/agents/resources/messages/client/requests/LettaStreamingRequest.d.ts +1 -1
- package/dist/api/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -2
- package/dist/api/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +8 -0
- package/dist/api/resources/agents/resources/messages/types/MessageUpdateContent.js +5 -0
- package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/blocks/client/Client.d.ts +13 -0
- package/dist/api/resources/blocks/client/Client.js +71 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +6 -6
- package/dist/api/resources/sources/client/Client.js +6 -6
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/tag/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/types/AssistantMessage.d.ts +2 -1
- package/dist/api/types/AssistantMessageContent.d.ts +5 -0
- package/dist/api/types/AssistantMessageContent.js +5 -0
- package/dist/api/types/LlmConfig.d.ts +3 -0
- package/dist/api/types/Message.d.ts +2 -2
- package/dist/api/types/MessageCreate.d.ts +2 -2
- package/dist/api/types/MessageCreateContent.d.ts +8 -0
- package/dist/api/types/MessageCreateContent.js +5 -0
- package/dist/api/types/SystemMessage.d.ts +3 -2
- package/dist/api/types/SystemMessageContent.d.ts +5 -0
- package/dist/api/types/SystemMessageContent.js +5 -0
- package/dist/api/types/TextContent.d.ts +8 -0
- package/dist/api/types/TextContent.js +5 -0
- package/dist/api/types/UserMessage.d.ts +3 -2
- package/dist/api/types/UserMessageContent.d.ts +5 -0
- package/dist/api/types/UserMessageContent.js +5 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/index.js +5 -0
- package/dist/serialization/resources/agents/client/index.d.ts +0 -3
- package/dist/serialization/resources/agents/client/index.js +1 -4
- package/dist/serialization/resources/agents/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/agents/client/requests/index.js +1 -3
- package/dist/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/dist/serialization/resources/agents/{client/createArchivalMemory.js → resources/archivalMemory/client/create.js} +2 -2
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/index.js +42 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/dist/serialization/resources/agents/{client/listArchivalMemory.js → resources/archivalMemory/client/list.js} +2 -2
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/{serialization/resources/agents → dist/serialization/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +1 -1
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/coreMemory/client/index.js +37 -0
- package/dist/serialization/resources/agents/resources/coreMemory/client/listBlocks.d.ts +11 -0
- package/{serialization/resources/agents/client/listCoreMemoryBlocks.js → dist/serialization/resources/agents/resources/coreMemory/client/listBlocks.js} +2 -2
- package/dist/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/coreMemory/index.js +17 -0
- package/dist/serialization/resources/agents/resources/index.d.ts +3 -0
- package/dist/serialization/resources/agents/resources/index.js +4 -1
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -1
- package/dist/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -1
- package/dist/serialization/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +11 -0
- package/dist/serialization/resources/agents/resources/messages/types/MessageUpdateContent.js +42 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/dist/serialization/resources/blocks/client/index.d.ts +1 -0
- package/dist/serialization/resources/blocks/client/index.js +2 -1
- package/dist/serialization/resources/{agents/client/createArchivalMemory.d.ts → blocks/client/listAgentsForBlock.d.ts} +3 -3
- package/dist/serialization/resources/blocks/client/listAgentsForBlock.js +42 -0
- package/dist/serialization/types/AssistantMessage.d.ts +2 -1
- package/dist/serialization/types/AssistantMessage.js +2 -1
- package/dist/serialization/types/AssistantMessageContent.d.ts +11 -0
- package/dist/serialization/types/AssistantMessageContent.js +42 -0
- package/dist/serialization/types/LlmConfig.d.ts +1 -0
- package/dist/serialization/types/LlmConfig.js +1 -0
- package/dist/serialization/types/Message.d.ts +2 -1
- package/dist/serialization/types/Message.js +2 -1
- package/dist/serialization/types/MessageCreate.d.ts +2 -1
- package/dist/serialization/types/MessageCreate.js +2 -1
- package/dist/serialization/types/MessageCreateContent.d.ts +11 -0
- package/dist/serialization/types/MessageCreateContent.js +42 -0
- package/dist/serialization/types/SystemMessage.d.ts +2 -1
- package/dist/serialization/types/SystemMessage.js +2 -1
- package/dist/serialization/types/SystemMessageContent.d.ts +11 -0
- package/dist/serialization/types/SystemMessageContent.js +42 -0
- package/dist/serialization/types/TextContent.d.ts +13 -0
- package/dist/serialization/types/TextContent.js +44 -0
- package/dist/serialization/types/UserMessage.d.ts +2 -1
- package/dist/serialization/types/UserMessage.js +2 -1
- package/dist/serialization/types/UserMessageContent.d.ts +11 -0
- package/dist/serialization/types/UserMessageContent.js +42 -0
- package/dist/serialization/types/index.d.ts +5 -0
- package/dist/serialization/types/index.js +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +487 -895
- package/serialization/resources/agents/client/index.d.ts +0 -3
- package/serialization/resources/agents/client/index.js +1 -4
- package/serialization/resources/agents/client/requests/index.d.ts +0 -1
- package/serialization/resources/agents/client/requests/index.js +1 -3
- package/serialization/resources/agents/resources/archivalMemory/client/create.d.ts +11 -0
- package/serialization/resources/agents/{client/listArchivalMemory.js → resources/archivalMemory/client/create.js} +2 -2
- package/serialization/resources/agents/resources/archivalMemory/client/index.d.ts +3 -0
- package/serialization/resources/agents/resources/archivalMemory/client/index.js +42 -0
- package/serialization/resources/agents/resources/archivalMemory/client/list.d.ts +11 -0
- package/serialization/resources/agents/{client/createArchivalMemory.js → resources/archivalMemory/client/list.js} +2 -2
- package/serialization/resources/agents/resources/archivalMemory/client/requests/CreateArchivalMemory.d.ts +12 -0
- package/{dist/serialization/resources/agents → serialization/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +1 -1
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/client/requests/index.js +5 -0
- package/serialization/resources/agents/resources/archivalMemory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/archivalMemory/index.js +17 -0
- package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +1 -0
- package/serialization/resources/agents/resources/coreMemory/client/index.js +37 -0
- package/serialization/resources/agents/resources/coreMemory/client/listBlocks.d.ts +11 -0
- package/{dist/serialization/resources/agents/client/listCoreMemoryBlocks.js → serialization/resources/agents/resources/coreMemory/client/listBlocks.js} +2 -2
- package/serialization/resources/agents/resources/coreMemory/index.d.ts +1 -0
- package/serialization/resources/agents/resources/coreMemory/index.js +17 -0
- package/serialization/resources/agents/resources/index.d.ts +3 -0
- package/serialization/resources/agents/resources/index.js +4 -1
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.d.ts +2 -1
- package/serialization/resources/agents/resources/messages/client/requests/MessageUpdate.js +2 -1
- package/serialization/resources/agents/resources/messages/types/MessageUpdateContent.d.ts +11 -0
- package/serialization/resources/agents/resources/messages/types/MessageUpdateContent.js +42 -0
- package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
- package/serialization/resources/agents/resources/messages/types/index.js +1 -0
- package/serialization/resources/blocks/client/index.d.ts +1 -0
- package/serialization/resources/blocks/client/index.js +2 -1
- package/{dist/serialization/resources/agents/client/listArchivalMemory.d.ts → serialization/resources/blocks/client/listAgentsForBlock.d.ts} +3 -3
- package/serialization/resources/blocks/client/listAgentsForBlock.js +42 -0
- package/serialization/types/AssistantMessage.d.ts +2 -1
- package/serialization/types/AssistantMessage.js +2 -1
- package/serialization/types/AssistantMessageContent.d.ts +11 -0
- package/serialization/types/AssistantMessageContent.js +42 -0
- package/serialization/types/LlmConfig.d.ts +1 -0
- package/serialization/types/LlmConfig.js +1 -0
- package/serialization/types/Message.d.ts +2 -1
- package/serialization/types/Message.js +2 -1
- package/serialization/types/MessageCreate.d.ts +2 -1
- package/serialization/types/MessageCreate.js +2 -1
- package/serialization/types/MessageCreateContent.d.ts +11 -0
- package/serialization/types/MessageCreateContent.js +42 -0
- package/serialization/types/SystemMessage.d.ts +2 -1
- package/serialization/types/SystemMessage.js +2 -1
- package/serialization/types/SystemMessageContent.d.ts +11 -0
- package/serialization/types/SystemMessageContent.js +42 -0
- package/serialization/types/TextContent.d.ts +13 -0
- package/serialization/types/TextContent.js +44 -0
- package/serialization/types/UserMessage.d.ts +2 -1
- package/serialization/types/UserMessage.js +2 -1
- package/serialization/types/UserMessageContent.d.ts +11 -0
- package/serialization/types/UserMessageContent.js +42 -0
- package/serialization/types/index.d.ts +5 -0
- package/serialization/types/index.js +5 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +0 -11
- package/dist/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +0 -12
- package/serialization/resources/agents/client/createArchivalMemory.d.ts +0 -11
- package/serialization/resources/agents/client/listArchivalMemory.d.ts +0 -11
- package/serialization/resources/agents/client/listCoreMemoryBlocks.d.ts +0 -11
- package/serialization/resources/agents/client/requests/CreateArchivalMemory.d.ts +0 -12
- /package/api/resources/agents/{client/requests/CreateArchivalMemory.js → resources/archivalMemory/client/requests/ArchivalMemoryListRequest.js} +0 -0
- /package/api/resources/agents/{client → resources/archivalMemory/client}/requests/CreateArchivalMemory.d.ts +0 -0
- /package/{dist/api/resources/agents → api/resources/agents/resources/archivalMemory}/client/requests/CreateArchivalMemory.js +0 -0
- /package/api/resources/agents/{client/requests/ListArchivalMemoryRequest.js → resources/messages/types/MessageUpdateContent.js} +0 -0
- /package/{dist/api/resources/agents/client/requests/ListArchivalMemoryRequest.js → api/types/AssistantMessageContent.js} +0 -0
- /package/dist/api/resources/agents/{client → resources/archivalMemory/client}/requests/CreateArchivalMemory.d.ts +0 -0
package/reference.md
CHANGED
|
@@ -1404,7 +1404,7 @@ await client.agents.modify("agent_id");
|
|
|
1404
1404
|
</dl>
|
|
1405
1405
|
</details>
|
|
1406
1406
|
|
|
1407
|
-
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">
|
|
1407
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">resetMessages</a>(agentId, { ...params }) -> Letta.AgentState</code></summary>
|
|
1408
1408
|
<dl>
|
|
1409
1409
|
<dd>
|
|
1410
1410
|
|
|
@@ -1416,8 +1416,7 @@ await client.agents.modify("agent_id");
|
|
|
1416
1416
|
<dl>
|
|
1417
1417
|
<dd>
|
|
1418
1418
|
|
|
1419
|
-
|
|
1420
|
-
This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.
|
|
1419
|
+
Resets the messages for an agent
|
|
1421
1420
|
|
|
1422
1421
|
</dd>
|
|
1423
1422
|
</dl>
|
|
@@ -1433,7 +1432,7 @@ This endpoint fetches the current memory state of the agent identified by the us
|
|
|
1433
1432
|
<dd>
|
|
1434
1433
|
|
|
1435
1434
|
```typescript
|
|
1436
|
-
await client.agents.
|
|
1435
|
+
await client.agents.resetMessages("agent_id");
|
|
1437
1436
|
```
|
|
1438
1437
|
|
|
1439
1438
|
</dd>
|
|
@@ -1457,6 +1456,14 @@ await client.agents.retrieveAgentMemory("agent_id");
|
|
|
1457
1456
|
<dl>
|
|
1458
1457
|
<dd>
|
|
1459
1458
|
|
|
1459
|
+
**request:** `Letta.ResetMessagesRequest`
|
|
1460
|
+
|
|
1461
|
+
</dd>
|
|
1462
|
+
</dl>
|
|
1463
|
+
|
|
1464
|
+
<dl>
|
|
1465
|
+
<dd>
|
|
1466
|
+
|
|
1460
1467
|
**requestOptions:** `Agents.RequestOptions`
|
|
1461
1468
|
|
|
1462
1469
|
</dd>
|
|
@@ -1468,7 +1475,7 @@ await client.agents.retrieveAgentMemory("agent_id");
|
|
|
1468
1475
|
</dl>
|
|
1469
1476
|
</details>
|
|
1470
1477
|
|
|
1471
|
-
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">
|
|
1478
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">search</a>({ ...params }) -> void</code></summary>
|
|
1472
1479
|
<dl>
|
|
1473
1480
|
<dd>
|
|
1474
1481
|
|
|
@@ -1480,7 +1487,9 @@ await client.agents.retrieveAgentMemory("agent_id");
|
|
|
1480
1487
|
<dl>
|
|
1481
1488
|
<dd>
|
|
1482
1489
|
|
|
1483
|
-
|
|
1490
|
+
<Note>This endpoint is only available on Letta Cloud.</Note>
|
|
1491
|
+
|
|
1492
|
+
Search deployed agents.
|
|
1484
1493
|
|
|
1485
1494
|
</dd>
|
|
1486
1495
|
</dl>
|
|
@@ -1496,7 +1505,7 @@ Retrieve a memory block from an agent.
|
|
|
1496
1505
|
<dd>
|
|
1497
1506
|
|
|
1498
1507
|
```typescript
|
|
1499
|
-
await client.agents.
|
|
1508
|
+
await client.agents.search();
|
|
1500
1509
|
```
|
|
1501
1510
|
|
|
1502
1511
|
</dd>
|
|
@@ -1512,15 +1521,7 @@ await client.agents.retrieveCoreMemoryBlock("agent_id", "block_label");
|
|
|
1512
1521
|
<dl>
|
|
1513
1522
|
<dd>
|
|
1514
1523
|
|
|
1515
|
-
**
|
|
1516
|
-
|
|
1517
|
-
</dd>
|
|
1518
|
-
</dl>
|
|
1519
|
-
|
|
1520
|
-
<dl>
|
|
1521
|
-
<dd>
|
|
1522
|
-
|
|
1523
|
-
**blockLabel:** `string`
|
|
1524
|
+
**request:** `Letta.AgentsSearchRequest`
|
|
1524
1525
|
|
|
1525
1526
|
</dd>
|
|
1526
1527
|
</dl>
|
|
@@ -1539,11 +1540,13 @@ await client.agents.retrieveCoreMemoryBlock("agent_id", "block_label");
|
|
|
1539
1540
|
</dl>
|
|
1540
1541
|
</details>
|
|
1541
1542
|
|
|
1542
|
-
|
|
1543
|
+
## Models
|
|
1544
|
+
|
|
1545
|
+
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listLlms</a>() -> Letta.LlmConfig[]</code></summary>
|
|
1543
1546
|
<dl>
|
|
1544
1547
|
<dd>
|
|
1545
1548
|
|
|
1546
|
-
####
|
|
1549
|
+
#### 🔌 Usage
|
|
1547
1550
|
|
|
1548
1551
|
<dl>
|
|
1549
1552
|
<dd>
|
|
@@ -1551,14 +1554,16 @@ await client.agents.retrieveCoreMemoryBlock("agent_id", "block_label");
|
|
|
1551
1554
|
<dl>
|
|
1552
1555
|
<dd>
|
|
1553
1556
|
|
|
1554
|
-
|
|
1557
|
+
```typescript
|
|
1558
|
+
await client.models.listLlms();
|
|
1559
|
+
```
|
|
1555
1560
|
|
|
1556
1561
|
</dd>
|
|
1557
1562
|
</dl>
|
|
1558
1563
|
</dd>
|
|
1559
1564
|
</dl>
|
|
1560
1565
|
|
|
1561
|
-
####
|
|
1566
|
+
#### ⚙️ Parameters
|
|
1562
1567
|
|
|
1563
1568
|
<dl>
|
|
1564
1569
|
<dd>
|
|
@@ -1566,48 +1571,47 @@ Updates a memory block of an agent.
|
|
|
1566
1571
|
<dl>
|
|
1567
1572
|
<dd>
|
|
1568
1573
|
|
|
1569
|
-
|
|
1570
|
-
await client.agents.modifyCoreMemoryBlock("agent_id", "block_label", {});
|
|
1571
|
-
```
|
|
1574
|
+
**requestOptions:** `Models.RequestOptions`
|
|
1572
1575
|
|
|
1573
1576
|
</dd>
|
|
1574
1577
|
</dl>
|
|
1575
1578
|
</dd>
|
|
1576
1579
|
</dl>
|
|
1577
1580
|
|
|
1578
|
-
|
|
1581
|
+
</dd>
|
|
1582
|
+
</dl>
|
|
1583
|
+
</details>
|
|
1579
1584
|
|
|
1585
|
+
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listEmbeddingModels</a>() -> Letta.EmbeddingConfig[]</code></summary>
|
|
1580
1586
|
<dl>
|
|
1581
1587
|
<dd>
|
|
1582
1588
|
|
|
1589
|
+
#### 🔌 Usage
|
|
1590
|
+
|
|
1583
1591
|
<dl>
|
|
1584
1592
|
<dd>
|
|
1585
1593
|
|
|
1586
|
-
**agentId:** `string`
|
|
1587
|
-
|
|
1588
|
-
</dd>
|
|
1589
|
-
</dl>
|
|
1590
|
-
|
|
1591
1594
|
<dl>
|
|
1592
1595
|
<dd>
|
|
1593
1596
|
|
|
1594
|
-
|
|
1597
|
+
```typescript
|
|
1598
|
+
await client.models.listEmbeddingModels();
|
|
1599
|
+
```
|
|
1595
1600
|
|
|
1596
1601
|
</dd>
|
|
1597
1602
|
</dl>
|
|
1603
|
+
</dd>
|
|
1604
|
+
</dl>
|
|
1605
|
+
|
|
1606
|
+
#### ⚙️ Parameters
|
|
1598
1607
|
|
|
1599
1608
|
<dl>
|
|
1600
1609
|
<dd>
|
|
1601
1610
|
|
|
1602
|
-
**request:** `Letta.BlockUpdate`
|
|
1603
|
-
|
|
1604
|
-
</dd>
|
|
1605
|
-
</dl>
|
|
1606
|
-
|
|
1607
1611
|
<dl>
|
|
1608
1612
|
<dd>
|
|
1609
1613
|
|
|
1610
|
-
**requestOptions:** `
|
|
1614
|
+
**requestOptions:** `Models.RequestOptions`
|
|
1611
1615
|
|
|
1612
1616
|
</dd>
|
|
1613
1617
|
</dl>
|
|
@@ -1618,25 +1622,12 @@ await client.agents.modifyCoreMemoryBlock("agent_id", "block_label", {});
|
|
|
1618
1622
|
</dl>
|
|
1619
1623
|
</details>
|
|
1620
1624
|
|
|
1621
|
-
|
|
1622
|
-
<dl>
|
|
1623
|
-
<dd>
|
|
1624
|
-
|
|
1625
|
-
#### 📝 Description
|
|
1626
|
-
|
|
1627
|
-
<dl>
|
|
1628
|
-
<dd>
|
|
1625
|
+
## Blocks
|
|
1629
1626
|
|
|
1627
|
+
<details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">list</a>({ ...params }) -> Letta.Block[]</code></summary>
|
|
1630
1628
|
<dl>
|
|
1631
1629
|
<dd>
|
|
1632
1630
|
|
|
1633
|
-
Retrieve the memory blocks of a specific agent.
|
|
1634
|
-
|
|
1635
|
-
</dd>
|
|
1636
|
-
</dl>
|
|
1637
|
-
</dd>
|
|
1638
|
-
</dl>
|
|
1639
|
-
|
|
1640
1631
|
#### 🔌 Usage
|
|
1641
1632
|
|
|
1642
1633
|
<dl>
|
|
@@ -1646,7 +1637,7 @@ Retrieve the memory blocks of a specific agent.
|
|
|
1646
1637
|
<dd>
|
|
1647
1638
|
|
|
1648
1639
|
```typescript
|
|
1649
|
-
await client.
|
|
1640
|
+
await client.blocks.list();
|
|
1650
1641
|
```
|
|
1651
1642
|
|
|
1652
1643
|
</dd>
|
|
@@ -1662,7 +1653,7 @@ await client.agents.listCoreMemoryBlocks("agent_id");
|
|
|
1662
1653
|
<dl>
|
|
1663
1654
|
<dd>
|
|
1664
1655
|
|
|
1665
|
-
**
|
|
1656
|
+
**request:** `Letta.BlocksListRequest`
|
|
1666
1657
|
|
|
1667
1658
|
</dd>
|
|
1668
1659
|
</dl>
|
|
@@ -1670,7 +1661,7 @@ await client.agents.listCoreMemoryBlocks("agent_id");
|
|
|
1670
1661
|
<dl>
|
|
1671
1662
|
<dd>
|
|
1672
1663
|
|
|
1673
|
-
**requestOptions:** `
|
|
1664
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
1674
1665
|
|
|
1675
1666
|
</dd>
|
|
1676
1667
|
</dl>
|
|
@@ -1681,11 +1672,11 @@ await client.agents.listCoreMemoryBlocks("agent_id");
|
|
|
1681
1672
|
</dl>
|
|
1682
1673
|
</details>
|
|
1683
1674
|
|
|
1684
|
-
<details><summary><code>client.
|
|
1675
|
+
<details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">create</a>({ ...params }) -> Letta.Block</code></summary>
|
|
1685
1676
|
<dl>
|
|
1686
1677
|
<dd>
|
|
1687
1678
|
|
|
1688
|
-
####
|
|
1679
|
+
#### 🔌 Usage
|
|
1689
1680
|
|
|
1690
1681
|
<dl>
|
|
1691
1682
|
<dd>
|
|
@@ -1693,14 +1684,19 @@ await client.agents.listCoreMemoryBlocks("agent_id");
|
|
|
1693
1684
|
<dl>
|
|
1694
1685
|
<dd>
|
|
1695
1686
|
|
|
1696
|
-
|
|
1687
|
+
```typescript
|
|
1688
|
+
await client.blocks.create({
|
|
1689
|
+
value: "value",
|
|
1690
|
+
label: "label",
|
|
1691
|
+
});
|
|
1692
|
+
```
|
|
1697
1693
|
|
|
1698
1694
|
</dd>
|
|
1699
1695
|
</dl>
|
|
1700
1696
|
</dd>
|
|
1701
1697
|
</dl>
|
|
1702
1698
|
|
|
1703
|
-
####
|
|
1699
|
+
#### ⚙️ Parameters
|
|
1704
1700
|
|
|
1705
1701
|
<dl>
|
|
1706
1702
|
<dd>
|
|
@@ -1708,69 +1704,77 @@ Attach a block to an agent.
|
|
|
1708
1704
|
<dl>
|
|
1709
1705
|
<dd>
|
|
1710
1706
|
|
|
1711
|
-
|
|
1712
|
-
await client.agents.attachCoreMemoryBlock("agent_id", "block_id");
|
|
1713
|
-
```
|
|
1707
|
+
**request:** `Letta.CreateBlock`
|
|
1714
1708
|
|
|
1715
|
-
</dd>
|
|
1716
|
-
</dl>
|
|
1717
1709
|
</dd>
|
|
1718
1710
|
</dl>
|
|
1719
1711
|
|
|
1720
|
-
#### ⚙️ Parameters
|
|
1721
|
-
|
|
1722
1712
|
<dl>
|
|
1723
1713
|
<dd>
|
|
1724
1714
|
|
|
1725
|
-
|
|
1726
|
-
<dd>
|
|
1715
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
1727
1716
|
|
|
1728
|
-
|
|
1717
|
+
</dd>
|
|
1718
|
+
</dl>
|
|
1719
|
+
</dd>
|
|
1720
|
+
</dl>
|
|
1729
1721
|
|
|
1730
1722
|
</dd>
|
|
1731
1723
|
</dl>
|
|
1724
|
+
</details>
|
|
1732
1725
|
|
|
1726
|
+
<details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">retrieve</a>(blockId) -> Letta.Block</code></summary>
|
|
1733
1727
|
<dl>
|
|
1734
1728
|
<dd>
|
|
1735
1729
|
|
|
1736
|
-
|
|
1730
|
+
#### 🔌 Usage
|
|
1737
1731
|
|
|
1738
|
-
|
|
1739
|
-
|
|
1732
|
+
<dl>
|
|
1733
|
+
<dd>
|
|
1740
1734
|
|
|
1741
1735
|
<dl>
|
|
1742
1736
|
<dd>
|
|
1743
1737
|
|
|
1744
|
-
|
|
1738
|
+
```typescript
|
|
1739
|
+
await client.blocks.retrieve("block_id");
|
|
1740
|
+
```
|
|
1745
1741
|
|
|
1746
1742
|
</dd>
|
|
1747
1743
|
</dl>
|
|
1748
1744
|
</dd>
|
|
1749
1745
|
</dl>
|
|
1750
1746
|
|
|
1751
|
-
|
|
1752
|
-
</dl>
|
|
1753
|
-
</details>
|
|
1747
|
+
#### ⚙️ Parameters
|
|
1754
1748
|
|
|
1755
|
-
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">detachCoreMemoryBlock</a>(agentId, blockId) -> Letta.AgentState</code></summary>
|
|
1756
1749
|
<dl>
|
|
1757
1750
|
<dd>
|
|
1758
1751
|
|
|
1759
|
-
#### 📝 Description
|
|
1760
|
-
|
|
1761
1752
|
<dl>
|
|
1762
1753
|
<dd>
|
|
1763
1754
|
|
|
1755
|
+
**blockId:** `string`
|
|
1756
|
+
|
|
1757
|
+
</dd>
|
|
1758
|
+
</dl>
|
|
1759
|
+
|
|
1764
1760
|
<dl>
|
|
1765
1761
|
<dd>
|
|
1766
1762
|
|
|
1767
|
-
|
|
1763
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
1768
1764
|
|
|
1769
1765
|
</dd>
|
|
1770
1766
|
</dl>
|
|
1771
1767
|
</dd>
|
|
1772
1768
|
</dl>
|
|
1773
1769
|
|
|
1770
|
+
</dd>
|
|
1771
|
+
</dl>
|
|
1772
|
+
</details>
|
|
1773
|
+
|
|
1774
|
+
<details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">delete</a>(blockId) -> Letta.Block</code></summary>
|
|
1775
|
+
<dl>
|
|
1776
|
+
<dd>
|
|
1777
|
+
|
|
1774
1778
|
#### 🔌 Usage
|
|
1775
1779
|
|
|
1776
1780
|
<dl>
|
|
@@ -1780,7 +1784,7 @@ Detach a block from an agent.
|
|
|
1780
1784
|
<dd>
|
|
1781
1785
|
|
|
1782
1786
|
```typescript
|
|
1783
|
-
await client.
|
|
1787
|
+
await client.blocks.delete("block_id");
|
|
1784
1788
|
```
|
|
1785
1789
|
|
|
1786
1790
|
</dd>
|
|
@@ -1796,14 +1800,6 @@ await client.agents.detachCoreMemoryBlock("agent_id", "block_id");
|
|
|
1796
1800
|
<dl>
|
|
1797
1801
|
<dd>
|
|
1798
1802
|
|
|
1799
|
-
**agentId:** `string`
|
|
1800
|
-
|
|
1801
|
-
</dd>
|
|
1802
|
-
</dl>
|
|
1803
|
-
|
|
1804
|
-
<dl>
|
|
1805
|
-
<dd>
|
|
1806
|
-
|
|
1807
1803
|
**blockId:** `string`
|
|
1808
1804
|
|
|
1809
1805
|
</dd>
|
|
@@ -1812,7 +1808,7 @@ await client.agents.detachCoreMemoryBlock("agent_id", "block_id");
|
|
|
1812
1808
|
<dl>
|
|
1813
1809
|
<dd>
|
|
1814
1810
|
|
|
1815
|
-
**requestOptions:** `
|
|
1811
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
1816
1812
|
|
|
1817
1813
|
</dd>
|
|
1818
1814
|
</dl>
|
|
@@ -1823,25 +1819,10 @@ await client.agents.detachCoreMemoryBlock("agent_id", "block_id");
|
|
|
1823
1819
|
</dl>
|
|
1824
1820
|
</details>
|
|
1825
1821
|
|
|
1826
|
-
<details><summary><code>client.
|
|
1827
|
-
<dl>
|
|
1828
|
-
<dd>
|
|
1829
|
-
|
|
1830
|
-
#### 📝 Description
|
|
1831
|
-
|
|
1832
|
-
<dl>
|
|
1833
|
-
<dd>
|
|
1834
|
-
|
|
1822
|
+
<details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">modify</a>(blockId, { ...params }) -> Letta.Block</code></summary>
|
|
1835
1823
|
<dl>
|
|
1836
1824
|
<dd>
|
|
1837
1825
|
|
|
1838
|
-
Retrieve the memories in an agent's archival memory store (paginated query).
|
|
1839
|
-
|
|
1840
|
-
</dd>
|
|
1841
|
-
</dl>
|
|
1842
|
-
</dd>
|
|
1843
|
-
</dl>
|
|
1844
|
-
|
|
1845
1826
|
#### 🔌 Usage
|
|
1846
1827
|
|
|
1847
1828
|
<dl>
|
|
@@ -1851,7 +1832,7 @@ Retrieve the memories in an agent's archival memory store (paginated query).
|
|
|
1851
1832
|
<dd>
|
|
1852
1833
|
|
|
1853
1834
|
```typescript
|
|
1854
|
-
await client.
|
|
1835
|
+
await client.blocks.modify("block_id", {});
|
|
1855
1836
|
```
|
|
1856
1837
|
|
|
1857
1838
|
</dd>
|
|
@@ -1867,7 +1848,7 @@ await client.agents.listArchivalMemory("agent_id");
|
|
|
1867
1848
|
<dl>
|
|
1868
1849
|
<dd>
|
|
1869
1850
|
|
|
1870
|
-
**
|
|
1851
|
+
**blockId:** `string`
|
|
1871
1852
|
|
|
1872
1853
|
</dd>
|
|
1873
1854
|
</dl>
|
|
@@ -1875,7 +1856,7 @@ await client.agents.listArchivalMemory("agent_id");
|
|
|
1875
1856
|
<dl>
|
|
1876
1857
|
<dd>
|
|
1877
1858
|
|
|
1878
|
-
**request:** `Letta.
|
|
1859
|
+
**request:** `Letta.BlockUpdate`
|
|
1879
1860
|
|
|
1880
1861
|
</dd>
|
|
1881
1862
|
</dl>
|
|
@@ -1883,7 +1864,7 @@ await client.agents.listArchivalMemory("agent_id");
|
|
|
1883
1864
|
<dl>
|
|
1884
1865
|
<dd>
|
|
1885
1866
|
|
|
1886
|
-
**requestOptions:** `
|
|
1867
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
1887
1868
|
|
|
1888
1869
|
</dd>
|
|
1889
1870
|
</dl>
|
|
@@ -1894,7 +1875,7 @@ await client.agents.listArchivalMemory("agent_id");
|
|
|
1894
1875
|
</dl>
|
|
1895
1876
|
</details>
|
|
1896
1877
|
|
|
1897
|
-
<details><summary><code>client.
|
|
1878
|
+
<details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">listAgentsForBlock</a>(blockId) -> Letta.AgentState[]</code></summary>
|
|
1898
1879
|
<dl>
|
|
1899
1880
|
<dd>
|
|
1900
1881
|
|
|
@@ -1906,7 +1887,8 @@ await client.agents.listArchivalMemory("agent_id");
|
|
|
1906
1887
|
<dl>
|
|
1907
1888
|
<dd>
|
|
1908
1889
|
|
|
1909
|
-
|
|
1890
|
+
Retrieves all agents associated with the specified block.
|
|
1891
|
+
Raises a 404 if the block does not exist.
|
|
1910
1892
|
|
|
1911
1893
|
</dd>
|
|
1912
1894
|
</dl>
|
|
@@ -1922,9 +1904,7 @@ Insert a memory into an agent's archival memory store.
|
|
|
1922
1904
|
<dd>
|
|
1923
1905
|
|
|
1924
1906
|
```typescript
|
|
1925
|
-
await client.
|
|
1926
|
-
text: "text",
|
|
1927
|
-
});
|
|
1907
|
+
await client.blocks.listAgentsForBlock("block_id");
|
|
1928
1908
|
```
|
|
1929
1909
|
|
|
1930
1910
|
</dd>
|
|
@@ -1940,15 +1920,7 @@ await client.agents.createArchivalMemory("agent_id", {
|
|
|
1940
1920
|
<dl>
|
|
1941
1921
|
<dd>
|
|
1942
1922
|
|
|
1943
|
-
**
|
|
1944
|
-
|
|
1945
|
-
</dd>
|
|
1946
|
-
</dl>
|
|
1947
|
-
|
|
1948
|
-
<dl>
|
|
1949
|
-
<dd>
|
|
1950
|
-
|
|
1951
|
-
**request:** `Letta.CreateArchivalMemory`
|
|
1923
|
+
**blockId:** `string`
|
|
1952
1924
|
|
|
1953
1925
|
</dd>
|
|
1954
1926
|
</dl>
|
|
@@ -1956,7 +1928,7 @@ await client.agents.createArchivalMemory("agent_id", {
|
|
|
1956
1928
|
<dl>
|
|
1957
1929
|
<dd>
|
|
1958
1930
|
|
|
1959
|
-
**requestOptions:** `
|
|
1931
|
+
**requestOptions:** `Blocks.RequestOptions`
|
|
1960
1932
|
|
|
1961
1933
|
</dd>
|
|
1962
1934
|
</dl>
|
|
@@ -1967,7 +1939,9 @@ await client.agents.createArchivalMemory("agent_id", {
|
|
|
1967
1939
|
</dl>
|
|
1968
1940
|
</details>
|
|
1969
1941
|
|
|
1970
|
-
|
|
1942
|
+
## Jobs
|
|
1943
|
+
|
|
1944
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">list</a>({ ...params }) -> Letta.Job[]</code></summary>
|
|
1971
1945
|
<dl>
|
|
1972
1946
|
<dd>
|
|
1973
1947
|
|
|
@@ -1979,7 +1953,7 @@ await client.agents.createArchivalMemory("agent_id", {
|
|
|
1979
1953
|
<dl>
|
|
1980
1954
|
<dd>
|
|
1981
1955
|
|
|
1982
|
-
|
|
1956
|
+
List all jobs.
|
|
1983
1957
|
|
|
1984
1958
|
</dd>
|
|
1985
1959
|
</dl>
|
|
@@ -1995,7 +1969,7 @@ Delete a memory from an agent's archival memory store.
|
|
|
1995
1969
|
<dd>
|
|
1996
1970
|
|
|
1997
1971
|
```typescript
|
|
1998
|
-
await client.
|
|
1972
|
+
await client.jobs.list();
|
|
1999
1973
|
```
|
|
2000
1974
|
|
|
2001
1975
|
</dd>
|
|
@@ -2011,15 +1985,7 @@ await client.agents.deleteArchivalMemory("agent_id", "memory_id");
|
|
|
2011
1985
|
<dl>
|
|
2012
1986
|
<dd>
|
|
2013
1987
|
|
|
2014
|
-
**
|
|
2015
|
-
|
|
2016
|
-
</dd>
|
|
2017
|
-
</dl>
|
|
2018
|
-
|
|
2019
|
-
<dl>
|
|
2020
|
-
<dd>
|
|
2021
|
-
|
|
2022
|
-
**memoryId:** `string`
|
|
1988
|
+
**request:** `Letta.JobsListRequest`
|
|
2023
1989
|
|
|
2024
1990
|
</dd>
|
|
2025
1991
|
</dl>
|
|
@@ -2027,7 +1993,7 @@ await client.agents.deleteArchivalMemory("agent_id", "memory_id");
|
|
|
2027
1993
|
<dl>
|
|
2028
1994
|
<dd>
|
|
2029
1995
|
|
|
2030
|
-
**requestOptions:** `
|
|
1996
|
+
**requestOptions:** `Jobs.RequestOptions`
|
|
2031
1997
|
|
|
2032
1998
|
</dd>
|
|
2033
1999
|
</dl>
|
|
@@ -2038,7 +2004,7 @@ await client.agents.deleteArchivalMemory("agent_id", "memory_id");
|
|
|
2038
2004
|
</dl>
|
|
2039
2005
|
</details>
|
|
2040
2006
|
|
|
2041
|
-
<details><summary><code>client.
|
|
2007
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">listActive</a>() -> Letta.Job[]</code></summary>
|
|
2042
2008
|
<dl>
|
|
2043
2009
|
<dd>
|
|
2044
2010
|
|
|
@@ -2050,7 +2016,7 @@ await client.agents.deleteArchivalMemory("agent_id", "memory_id");
|
|
|
2050
2016
|
<dl>
|
|
2051
2017
|
<dd>
|
|
2052
2018
|
|
|
2053
|
-
|
|
2019
|
+
List all active jobs.
|
|
2054
2020
|
|
|
2055
2021
|
</dd>
|
|
2056
2022
|
</dl>
|
|
@@ -2066,7 +2032,7 @@ Resets the messages for an agent
|
|
|
2066
2032
|
<dd>
|
|
2067
2033
|
|
|
2068
2034
|
```typescript
|
|
2069
|
-
await client.
|
|
2035
|
+
await client.jobs.listActive();
|
|
2070
2036
|
```
|
|
2071
2037
|
|
|
2072
2038
|
</dd>
|
|
@@ -2082,23 +2048,7 @@ await client.agents.resetMessages("agent_id");
|
|
|
2082
2048
|
<dl>
|
|
2083
2049
|
<dd>
|
|
2084
2050
|
|
|
2085
|
-
**
|
|
2086
|
-
|
|
2087
|
-
</dd>
|
|
2088
|
-
</dl>
|
|
2089
|
-
|
|
2090
|
-
<dl>
|
|
2091
|
-
<dd>
|
|
2092
|
-
|
|
2093
|
-
**request:** `Letta.ResetMessagesRequest`
|
|
2094
|
-
|
|
2095
|
-
</dd>
|
|
2096
|
-
</dl>
|
|
2097
|
-
|
|
2098
|
-
<dl>
|
|
2099
|
-
<dd>
|
|
2100
|
-
|
|
2101
|
-
**requestOptions:** `Agents.RequestOptions`
|
|
2051
|
+
**requestOptions:** `Jobs.RequestOptions`
|
|
2102
2052
|
|
|
2103
2053
|
</dd>
|
|
2104
2054
|
</dl>
|
|
@@ -2109,7 +2059,7 @@ await client.agents.resetMessages("agent_id");
|
|
|
2109
2059
|
</dl>
|
|
2110
2060
|
</details>
|
|
2111
2061
|
|
|
2112
|
-
<details><summary><code>client.
|
|
2062
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">retrieve</a>(jobId) -> Letta.Job</code></summary>
|
|
2113
2063
|
<dl>
|
|
2114
2064
|
<dd>
|
|
2115
2065
|
|
|
@@ -2121,9 +2071,7 @@ await client.agents.resetMessages("agent_id");
|
|
|
2121
2071
|
<dl>
|
|
2122
2072
|
<dd>
|
|
2123
2073
|
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
Search deployed agents.
|
|
2074
|
+
Get the status of a job.
|
|
2127
2075
|
|
|
2128
2076
|
</dd>
|
|
2129
2077
|
</dl>
|
|
@@ -2139,7 +2087,7 @@ Search deployed agents.
|
|
|
2139
2087
|
<dd>
|
|
2140
2088
|
|
|
2141
2089
|
```typescript
|
|
2142
|
-
await client.
|
|
2090
|
+
await client.jobs.retrieve("job_id");
|
|
2143
2091
|
```
|
|
2144
2092
|
|
|
2145
2093
|
</dd>
|
|
@@ -2155,7 +2103,7 @@ await client.agents.search();
|
|
|
2155
2103
|
<dl>
|
|
2156
2104
|
<dd>
|
|
2157
2105
|
|
|
2158
|
-
**
|
|
2106
|
+
**jobId:** `string`
|
|
2159
2107
|
|
|
2160
2108
|
</dd>
|
|
2161
2109
|
</dl>
|
|
@@ -2163,7 +2111,7 @@ await client.agents.search();
|
|
|
2163
2111
|
<dl>
|
|
2164
2112
|
<dd>
|
|
2165
2113
|
|
|
2166
|
-
**requestOptions:** `
|
|
2114
|
+
**requestOptions:** `Jobs.RequestOptions`
|
|
2167
2115
|
|
|
2168
2116
|
</dd>
|
|
2169
2117
|
</dl>
|
|
@@ -2174,13 +2122,11 @@ await client.agents.search();
|
|
|
2174
2122
|
</dl>
|
|
2175
2123
|
</details>
|
|
2176
2124
|
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listLlms</a>() -> Letta.LlmConfig[]</code></summary>
|
|
2125
|
+
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">delete</a>(jobId) -> Letta.Job</code></summary>
|
|
2180
2126
|
<dl>
|
|
2181
2127
|
<dd>
|
|
2182
2128
|
|
|
2183
|
-
####
|
|
2129
|
+
#### 📝 Description
|
|
2184
2130
|
|
|
2185
2131
|
<dl>
|
|
2186
2132
|
<dd>
|
|
@@ -2188,16 +2134,14 @@ await client.agents.search();
|
|
|
2188
2134
|
<dl>
|
|
2189
2135
|
<dd>
|
|
2190
2136
|
|
|
2191
|
-
|
|
2192
|
-
await client.models.listLlms();
|
|
2193
|
-
```
|
|
2137
|
+
Delete a job by its job_id.
|
|
2194
2138
|
|
|
2195
2139
|
</dd>
|
|
2196
2140
|
</dl>
|
|
2197
2141
|
</dd>
|
|
2198
2142
|
</dl>
|
|
2199
2143
|
|
|
2200
|
-
####
|
|
2144
|
+
#### 🔌 Usage
|
|
2201
2145
|
|
|
2202
2146
|
<dl>
|
|
2203
2147
|
<dd>
|
|
@@ -2205,22 +2149,16 @@ await client.models.listLlms();
|
|
|
2205
2149
|
<dl>
|
|
2206
2150
|
<dd>
|
|
2207
2151
|
|
|
2208
|
-
|
|
2152
|
+
```typescript
|
|
2153
|
+
await client.jobs.delete("job_id");
|
|
2154
|
+
```
|
|
2209
2155
|
|
|
2210
2156
|
</dd>
|
|
2211
2157
|
</dl>
|
|
2212
2158
|
</dd>
|
|
2213
2159
|
</dl>
|
|
2214
2160
|
|
|
2215
|
-
|
|
2216
|
-
</dl>
|
|
2217
|
-
</details>
|
|
2218
|
-
|
|
2219
|
-
<details><summary><code>client.models.<a href="/src/api/resources/models/client/Client.ts">listEmbeddingModels</a>() -> Letta.EmbeddingConfig[]</code></summary>
|
|
2220
|
-
<dl>
|
|
2221
|
-
<dd>
|
|
2222
|
-
|
|
2223
|
-
#### 🔌 Usage
|
|
2161
|
+
#### ⚙️ Parameters
|
|
2224
2162
|
|
|
2225
2163
|
<dl>
|
|
2226
2164
|
<dd>
|
|
@@ -2228,24 +2166,15 @@ await client.models.listLlms();
|
|
|
2228
2166
|
<dl>
|
|
2229
2167
|
<dd>
|
|
2230
2168
|
|
|
2231
|
-
|
|
2232
|
-
await client.models.listEmbeddingModels();
|
|
2233
|
-
```
|
|
2169
|
+
**jobId:** `string`
|
|
2234
2170
|
|
|
2235
2171
|
</dd>
|
|
2236
2172
|
</dl>
|
|
2237
|
-
</dd>
|
|
2238
|
-
</dl>
|
|
2239
|
-
|
|
2240
|
-
#### ⚙️ Parameters
|
|
2241
|
-
|
|
2242
|
-
<dl>
|
|
2243
|
-
<dd>
|
|
2244
2173
|
|
|
2245
2174
|
<dl>
|
|
2246
2175
|
<dd>
|
|
2247
2176
|
|
|
2248
|
-
**requestOptions:** `
|
|
2177
|
+
**requestOptions:** `Jobs.RequestOptions`
|
|
2249
2178
|
|
|
2250
2179
|
</dd>
|
|
2251
2180
|
</dl>
|
|
@@ -2256,9 +2185,9 @@ await client.models.listEmbeddingModels();
|
|
|
2256
2185
|
</dl>
|
|
2257
2186
|
</details>
|
|
2258
2187
|
|
|
2259
|
-
##
|
|
2188
|
+
## Health
|
|
2260
2189
|
|
|
2261
|
-
<details><summary><code>client.
|
|
2190
|
+
<details><summary><code>client.health.<a href="/src/api/resources/health/client/Client.ts">check</a>() -> Letta.Health</code></summary>
|
|
2262
2191
|
<dl>
|
|
2263
2192
|
<dd>
|
|
2264
2193
|
|
|
@@ -2271,7 +2200,7 @@ await client.models.listEmbeddingModels();
|
|
|
2271
2200
|
<dd>
|
|
2272
2201
|
|
|
2273
2202
|
```typescript
|
|
2274
|
-
await client.
|
|
2203
|
+
await client.health.check();
|
|
2275
2204
|
```
|
|
2276
2205
|
|
|
2277
2206
|
</dd>
|
|
@@ -2287,15 +2216,7 @@ await client.blocks.list();
|
|
|
2287
2216
|
<dl>
|
|
2288
2217
|
<dd>
|
|
2289
2218
|
|
|
2290
|
-
**
|
|
2291
|
-
|
|
2292
|
-
</dd>
|
|
2293
|
-
</dl>
|
|
2294
|
-
|
|
2295
|
-
<dl>
|
|
2296
|
-
<dd>
|
|
2297
|
-
|
|
2298
|
-
**requestOptions:** `Blocks.RequestOptions`
|
|
2219
|
+
**requestOptions:** `Health.RequestOptions`
|
|
2299
2220
|
|
|
2300
2221
|
</dd>
|
|
2301
2222
|
</dl>
|
|
@@ -2306,61 +2227,27 @@ await client.blocks.list();
|
|
|
2306
2227
|
</dl>
|
|
2307
2228
|
</details>
|
|
2308
2229
|
|
|
2309
|
-
|
|
2310
|
-
<dl>
|
|
2311
|
-
<dd>
|
|
2312
|
-
|
|
2313
|
-
#### 🔌 Usage
|
|
2314
|
-
|
|
2315
|
-
<dl>
|
|
2316
|
-
<dd>
|
|
2230
|
+
## Providers
|
|
2317
2231
|
|
|
2232
|
+
<details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">listProviders</a>({ ...params }) -> Letta.Provider[]</code></summary>
|
|
2318
2233
|
<dl>
|
|
2319
2234
|
<dd>
|
|
2320
2235
|
|
|
2321
|
-
|
|
2322
|
-
await client.blocks.create({
|
|
2323
|
-
value: "value",
|
|
2324
|
-
label: "label",
|
|
2325
|
-
});
|
|
2326
|
-
```
|
|
2327
|
-
|
|
2328
|
-
</dd>
|
|
2329
|
-
</dl>
|
|
2330
|
-
</dd>
|
|
2331
|
-
</dl>
|
|
2332
|
-
|
|
2333
|
-
#### ⚙️ Parameters
|
|
2334
|
-
|
|
2335
|
-
<dl>
|
|
2336
|
-
<dd>
|
|
2236
|
+
#### 📝 Description
|
|
2337
2237
|
|
|
2338
2238
|
<dl>
|
|
2339
2239
|
<dd>
|
|
2340
2240
|
|
|
2341
|
-
**request:** `Letta.CreateBlock`
|
|
2342
|
-
|
|
2343
|
-
</dd>
|
|
2344
|
-
</dl>
|
|
2345
|
-
|
|
2346
2241
|
<dl>
|
|
2347
2242
|
<dd>
|
|
2348
2243
|
|
|
2349
|
-
|
|
2244
|
+
Get a list of all custom providers in the database
|
|
2350
2245
|
|
|
2351
2246
|
</dd>
|
|
2352
2247
|
</dl>
|
|
2353
2248
|
</dd>
|
|
2354
2249
|
</dl>
|
|
2355
2250
|
|
|
2356
|
-
</dd>
|
|
2357
|
-
</dl>
|
|
2358
|
-
</details>
|
|
2359
|
-
|
|
2360
|
-
<details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">retrieve</a>(blockId) -> Letta.Block</code></summary>
|
|
2361
|
-
<dl>
|
|
2362
|
-
<dd>
|
|
2363
|
-
|
|
2364
2251
|
#### 🔌 Usage
|
|
2365
2252
|
|
|
2366
2253
|
<dl>
|
|
@@ -2370,7 +2257,7 @@ await client.blocks.create({
|
|
|
2370
2257
|
<dd>
|
|
2371
2258
|
|
|
2372
2259
|
```typescript
|
|
2373
|
-
await client.
|
|
2260
|
+
await client.providers.listProviders();
|
|
2374
2261
|
```
|
|
2375
2262
|
|
|
2376
2263
|
</dd>
|
|
@@ -2386,7 +2273,7 @@ await client.blocks.retrieve("block_id");
|
|
|
2386
2273
|
<dl>
|
|
2387
2274
|
<dd>
|
|
2388
2275
|
|
|
2389
|
-
**
|
|
2276
|
+
**request:** `Letta.ListProvidersRequest`
|
|
2390
2277
|
|
|
2391
2278
|
</dd>
|
|
2392
2279
|
</dl>
|
|
@@ -2394,7 +2281,7 @@ await client.blocks.retrieve("block_id");
|
|
|
2394
2281
|
<dl>
|
|
2395
2282
|
<dd>
|
|
2396
2283
|
|
|
2397
|
-
**requestOptions:** `
|
|
2284
|
+
**requestOptions:** `Providers.RequestOptions`
|
|
2398
2285
|
|
|
2399
2286
|
</dd>
|
|
2400
2287
|
</dl>
|
|
@@ -2405,10 +2292,25 @@ await client.blocks.retrieve("block_id");
|
|
|
2405
2292
|
</dl>
|
|
2406
2293
|
</details>
|
|
2407
2294
|
|
|
2408
|
-
<details><summary><code>client.
|
|
2295
|
+
<details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">createProvider</a>({ ...params }) -> Letta.Provider</code></summary>
|
|
2296
|
+
<dl>
|
|
2297
|
+
<dd>
|
|
2298
|
+
|
|
2299
|
+
#### 📝 Description
|
|
2300
|
+
|
|
2301
|
+
<dl>
|
|
2302
|
+
<dd>
|
|
2303
|
+
|
|
2409
2304
|
<dl>
|
|
2410
2305
|
<dd>
|
|
2411
2306
|
|
|
2307
|
+
Create a new custom provider
|
|
2308
|
+
|
|
2309
|
+
</dd>
|
|
2310
|
+
</dl>
|
|
2311
|
+
</dd>
|
|
2312
|
+
</dl>
|
|
2313
|
+
|
|
2412
2314
|
#### 🔌 Usage
|
|
2413
2315
|
|
|
2414
2316
|
<dl>
|
|
@@ -2418,7 +2320,10 @@ await client.blocks.retrieve("block_id");
|
|
|
2418
2320
|
<dd>
|
|
2419
2321
|
|
|
2420
2322
|
```typescript
|
|
2421
|
-
await client.
|
|
2323
|
+
await client.providers.createProvider({
|
|
2324
|
+
name: "name",
|
|
2325
|
+
apiKey: "api_key",
|
|
2326
|
+
});
|
|
2422
2327
|
```
|
|
2423
2328
|
|
|
2424
2329
|
</dd>
|
|
@@ -2434,7 +2339,7 @@ await client.blocks.delete("block_id");
|
|
|
2434
2339
|
<dl>
|
|
2435
2340
|
<dd>
|
|
2436
2341
|
|
|
2437
|
-
**
|
|
2342
|
+
**request:** `Letta.ProviderCreate`
|
|
2438
2343
|
|
|
2439
2344
|
</dd>
|
|
2440
2345
|
</dl>
|
|
@@ -2442,7 +2347,7 @@ await client.blocks.delete("block_id");
|
|
|
2442
2347
|
<dl>
|
|
2443
2348
|
<dd>
|
|
2444
2349
|
|
|
2445
|
-
**requestOptions:** `
|
|
2350
|
+
**requestOptions:** `Providers.RequestOptions`
|
|
2446
2351
|
|
|
2447
2352
|
</dd>
|
|
2448
2353
|
</dl>
|
|
@@ -2453,11 +2358,11 @@ await client.blocks.delete("block_id");
|
|
|
2453
2358
|
</dl>
|
|
2454
2359
|
</details>
|
|
2455
2360
|
|
|
2456
|
-
<details><summary><code>client.
|
|
2361
|
+
<details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">deleteProvider</a>({ ...params }) -> unknown</code></summary>
|
|
2457
2362
|
<dl>
|
|
2458
2363
|
<dd>
|
|
2459
2364
|
|
|
2460
|
-
####
|
|
2365
|
+
#### 📝 Description
|
|
2461
2366
|
|
|
2462
2367
|
<dl>
|
|
2463
2368
|
<dd>
|
|
@@ -2465,16 +2370,14 @@ await client.blocks.delete("block_id");
|
|
|
2465
2370
|
<dl>
|
|
2466
2371
|
<dd>
|
|
2467
2372
|
|
|
2468
|
-
|
|
2469
|
-
await client.blocks.modify("block_id", {});
|
|
2470
|
-
```
|
|
2373
|
+
Delete an existing custom provider
|
|
2471
2374
|
|
|
2472
2375
|
</dd>
|
|
2473
2376
|
</dl>
|
|
2474
2377
|
</dd>
|
|
2475
2378
|
</dl>
|
|
2476
2379
|
|
|
2477
|
-
####
|
|
2380
|
+
#### 🔌 Usage
|
|
2478
2381
|
|
|
2479
2382
|
<dl>
|
|
2480
2383
|
<dd>
|
|
@@ -2482,15 +2385,26 @@ await client.blocks.modify("block_id", {});
|
|
|
2482
2385
|
<dl>
|
|
2483
2386
|
<dd>
|
|
2484
2387
|
|
|
2485
|
-
|
|
2388
|
+
```typescript
|
|
2389
|
+
await client.providers.deleteProvider({
|
|
2390
|
+
providerId: "provider_id",
|
|
2391
|
+
});
|
|
2392
|
+
```
|
|
2486
2393
|
|
|
2487
2394
|
</dd>
|
|
2488
2395
|
</dl>
|
|
2396
|
+
</dd>
|
|
2397
|
+
</dl>
|
|
2398
|
+
|
|
2399
|
+
#### ⚙️ Parameters
|
|
2489
2400
|
|
|
2490
2401
|
<dl>
|
|
2491
2402
|
<dd>
|
|
2492
2403
|
|
|
2493
|
-
|
|
2404
|
+
<dl>
|
|
2405
|
+
<dd>
|
|
2406
|
+
|
|
2407
|
+
**request:** `Letta.DeleteProviderRequest`
|
|
2494
2408
|
|
|
2495
2409
|
</dd>
|
|
2496
2410
|
</dl>
|
|
@@ -2498,7 +2412,7 @@ await client.blocks.modify("block_id", {});
|
|
|
2498
2412
|
<dl>
|
|
2499
2413
|
<dd>
|
|
2500
2414
|
|
|
2501
|
-
**requestOptions:** `
|
|
2415
|
+
**requestOptions:** `Providers.RequestOptions`
|
|
2502
2416
|
|
|
2503
2417
|
</dd>
|
|
2504
2418
|
</dl>
|
|
@@ -2509,9 +2423,7 @@ await client.blocks.modify("block_id", {});
|
|
|
2509
2423
|
</dl>
|
|
2510
2424
|
</details>
|
|
2511
2425
|
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
<details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">list</a>({ ...params }) -> Letta.Job[]</code></summary>
|
|
2426
|
+
<details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">modifyProvider</a>({ ...params }) -> Letta.Provider</code></summary>
|
|
2515
2427
|
<dl>
|
|
2516
2428
|
<dd>
|
|
2517
2429
|
|
|
@@ -2523,7 +2435,7 @@ await client.blocks.modify("block_id", {});
|
|
|
2523
2435
|
<dl>
|
|
2524
2436
|
<dd>
|
|
2525
2437
|
|
|
2526
|
-
|
|
2438
|
+
Update an existing custom provider
|
|
2527
2439
|
|
|
2528
2440
|
</dd>
|
|
2529
2441
|
</dl>
|
|
@@ -2539,7 +2451,10 @@ List all jobs.
|
|
|
2539
2451
|
<dd>
|
|
2540
2452
|
|
|
2541
2453
|
```typescript
|
|
2542
|
-
await client.
|
|
2454
|
+
await client.providers.modifyProvider({
|
|
2455
|
+
id: "id",
|
|
2456
|
+
apiKey: "api_key",
|
|
2457
|
+
});
|
|
2543
2458
|
```
|
|
2544
2459
|
|
|
2545
2460
|
</dd>
|
|
@@ -2555,7 +2470,7 @@ await client.jobs.list();
|
|
|
2555
2470
|
<dl>
|
|
2556
2471
|
<dd>
|
|
2557
2472
|
|
|
2558
|
-
**request:** `Letta.
|
|
2473
|
+
**request:** `Letta.ProviderUpdate`
|
|
2559
2474
|
|
|
2560
2475
|
</dd>
|
|
2561
2476
|
</dl>
|
|
@@ -2563,7 +2478,7 @@ await client.jobs.list();
|
|
|
2563
2478
|
<dl>
|
|
2564
2479
|
<dd>
|
|
2565
2480
|
|
|
2566
|
-
**requestOptions:** `
|
|
2481
|
+
**requestOptions:** `Providers.RequestOptions`
|
|
2567
2482
|
|
|
2568
2483
|
</dd>
|
|
2569
2484
|
</dl>
|
|
@@ -2574,7 +2489,9 @@ await client.jobs.list();
|
|
|
2574
2489
|
</dl>
|
|
2575
2490
|
</details>
|
|
2576
2491
|
|
|
2577
|
-
|
|
2492
|
+
## Runs
|
|
2493
|
+
|
|
2494
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">listRuns</a>() -> Letta.Run[]</code></summary>
|
|
2578
2495
|
<dl>
|
|
2579
2496
|
<dd>
|
|
2580
2497
|
|
|
@@ -2586,7 +2503,7 @@ await client.jobs.list();
|
|
|
2586
2503
|
<dl>
|
|
2587
2504
|
<dd>
|
|
2588
2505
|
|
|
2589
|
-
List all
|
|
2506
|
+
List all runs.
|
|
2590
2507
|
|
|
2591
2508
|
</dd>
|
|
2592
2509
|
</dl>
|
|
@@ -2602,7 +2519,7 @@ List all active jobs.
|
|
|
2602
2519
|
<dd>
|
|
2603
2520
|
|
|
2604
2521
|
```typescript
|
|
2605
|
-
await client.
|
|
2522
|
+
await client.runs.listRuns();
|
|
2606
2523
|
```
|
|
2607
2524
|
|
|
2608
2525
|
</dd>
|
|
@@ -2618,7 +2535,7 @@ await client.jobs.listActive();
|
|
|
2618
2535
|
<dl>
|
|
2619
2536
|
<dd>
|
|
2620
2537
|
|
|
2621
|
-
**requestOptions:** `
|
|
2538
|
+
**requestOptions:** `Runs.RequestOptions`
|
|
2622
2539
|
|
|
2623
2540
|
</dd>
|
|
2624
2541
|
</dl>
|
|
@@ -2629,7 +2546,7 @@ await client.jobs.listActive();
|
|
|
2629
2546
|
</dl>
|
|
2630
2547
|
</details>
|
|
2631
2548
|
|
|
2632
|
-
<details><summary><code>client.
|
|
2549
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">listActiveRuns</a>() -> Letta.Run[]</code></summary>
|
|
2633
2550
|
<dl>
|
|
2634
2551
|
<dd>
|
|
2635
2552
|
|
|
@@ -2641,7 +2558,7 @@ await client.jobs.listActive();
|
|
|
2641
2558
|
<dl>
|
|
2642
2559
|
<dd>
|
|
2643
2560
|
|
|
2644
|
-
|
|
2561
|
+
List all active runs.
|
|
2645
2562
|
|
|
2646
2563
|
</dd>
|
|
2647
2564
|
</dl>
|
|
@@ -2657,7 +2574,7 @@ Get the status of a job.
|
|
|
2657
2574
|
<dd>
|
|
2658
2575
|
|
|
2659
2576
|
```typescript
|
|
2660
|
-
await client.
|
|
2577
|
+
await client.runs.listActiveRuns();
|
|
2661
2578
|
```
|
|
2662
2579
|
|
|
2663
2580
|
</dd>
|
|
@@ -2673,15 +2590,7 @@ await client.jobs.retrieve("job_id");
|
|
|
2673
2590
|
<dl>
|
|
2674
2591
|
<dd>
|
|
2675
2592
|
|
|
2676
|
-
**
|
|
2677
|
-
|
|
2678
|
-
</dd>
|
|
2679
|
-
</dl>
|
|
2680
|
-
|
|
2681
|
-
<dl>
|
|
2682
|
-
<dd>
|
|
2683
|
-
|
|
2684
|
-
**requestOptions:** `Jobs.RequestOptions`
|
|
2593
|
+
**requestOptions:** `Runs.RequestOptions`
|
|
2685
2594
|
|
|
2686
2595
|
</dd>
|
|
2687
2596
|
</dl>
|
|
@@ -2692,7 +2601,7 @@ await client.jobs.retrieve("job_id");
|
|
|
2692
2601
|
</dl>
|
|
2693
2602
|
</details>
|
|
2694
2603
|
|
|
2695
|
-
<details><summary><code>client.
|
|
2604
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">retrieveRun</a>(runId) -> Letta.Run</code></summary>
|
|
2696
2605
|
<dl>
|
|
2697
2606
|
<dd>
|
|
2698
2607
|
|
|
@@ -2704,7 +2613,7 @@ await client.jobs.retrieve("job_id");
|
|
|
2704
2613
|
<dl>
|
|
2705
2614
|
<dd>
|
|
2706
2615
|
|
|
2707
|
-
|
|
2616
|
+
Get the status of a run.
|
|
2708
2617
|
|
|
2709
2618
|
</dd>
|
|
2710
2619
|
</dl>
|
|
@@ -2720,7 +2629,7 @@ Delete a job by its job_id.
|
|
|
2720
2629
|
<dd>
|
|
2721
2630
|
|
|
2722
2631
|
```typescript
|
|
2723
|
-
await client.
|
|
2632
|
+
await client.runs.retrieveRun("run_id");
|
|
2724
2633
|
```
|
|
2725
2634
|
|
|
2726
2635
|
</dd>
|
|
@@ -2736,7 +2645,7 @@ await client.jobs.delete("job_id");
|
|
|
2736
2645
|
<dl>
|
|
2737
2646
|
<dd>
|
|
2738
2647
|
|
|
2739
|
-
**
|
|
2648
|
+
**runId:** `string`
|
|
2740
2649
|
|
|
2741
2650
|
</dd>
|
|
2742
2651
|
</dl>
|
|
@@ -2744,7 +2653,7 @@ await client.jobs.delete("job_id");
|
|
|
2744
2653
|
<dl>
|
|
2745
2654
|
<dd>
|
|
2746
2655
|
|
|
2747
|
-
**requestOptions:** `
|
|
2656
|
+
**requestOptions:** `Runs.RequestOptions`
|
|
2748
2657
|
|
|
2749
2658
|
</dd>
|
|
2750
2659
|
</dl>
|
|
@@ -2755,12 +2664,25 @@ await client.jobs.delete("job_id");
|
|
|
2755
2664
|
</dl>
|
|
2756
2665
|
</details>
|
|
2757
2666
|
|
|
2758
|
-
|
|
2667
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">deleteRun</a>(runId) -> Letta.Run</code></summary>
|
|
2668
|
+
<dl>
|
|
2669
|
+
<dd>
|
|
2670
|
+
|
|
2671
|
+
#### 📝 Description
|
|
2672
|
+
|
|
2673
|
+
<dl>
|
|
2674
|
+
<dd>
|
|
2759
2675
|
|
|
2760
|
-
<details><summary><code>client.health.<a href="/src/api/resources/health/client/Client.ts">check</a>() -> Letta.Health</code></summary>
|
|
2761
2676
|
<dl>
|
|
2762
2677
|
<dd>
|
|
2763
2678
|
|
|
2679
|
+
Delete a run by its run_id.
|
|
2680
|
+
|
|
2681
|
+
</dd>
|
|
2682
|
+
</dl>
|
|
2683
|
+
</dd>
|
|
2684
|
+
</dl>
|
|
2685
|
+
|
|
2764
2686
|
#### 🔌 Usage
|
|
2765
2687
|
|
|
2766
2688
|
<dl>
|
|
@@ -2770,7 +2692,7 @@ await client.jobs.delete("job_id");
|
|
|
2770
2692
|
<dd>
|
|
2771
2693
|
|
|
2772
2694
|
```typescript
|
|
2773
|
-
await client.
|
|
2695
|
+
await client.runs.deleteRun("run_id");
|
|
2774
2696
|
```
|
|
2775
2697
|
|
|
2776
2698
|
</dd>
|
|
@@ -2786,7 +2708,15 @@ await client.health.check();
|
|
|
2786
2708
|
<dl>
|
|
2787
2709
|
<dd>
|
|
2788
2710
|
|
|
2789
|
-
**
|
|
2711
|
+
**runId:** `string`
|
|
2712
|
+
|
|
2713
|
+
</dd>
|
|
2714
|
+
</dl>
|
|
2715
|
+
|
|
2716
|
+
<dl>
|
|
2717
|
+
<dd>
|
|
2718
|
+
|
|
2719
|
+
**requestOptions:** `Runs.RequestOptions`
|
|
2790
2720
|
|
|
2791
2721
|
</dd>
|
|
2792
2722
|
</dl>
|
|
@@ -2797,9 +2727,7 @@ await client.health.check();
|
|
|
2797
2727
|
</dl>
|
|
2798
2728
|
</details>
|
|
2799
2729
|
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
<details><summary><code>client.providers.<a href="/src/api/resources/providers/client/Client.ts">listProviders</a>({ ...params }) -> Letta.Provider[]</code></summary>
|
|
2730
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">listRunMessages</a>(runId, { ...params }) -> Letta.LettaMessageUnion[]</code></summary>
|
|
2803
2731
|
<dl>
|
|
2804
2732
|
<dd>
|
|
2805
2733
|
|
|
@@ -2811,7 +2739,20 @@ await client.health.check();
|
|
|
2811
2739
|
<dl>
|
|
2812
2740
|
<dd>
|
|
2813
2741
|
|
|
2814
|
-
Get
|
|
2742
|
+
Get messages associated with a run with filtering options.
|
|
2743
|
+
|
|
2744
|
+
Args:
|
|
2745
|
+
run_id: ID of the run
|
|
2746
|
+
before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
2747
|
+
after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
2748
|
+
limit: Maximum number of messages to return
|
|
2749
|
+
order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
|
|
2750
|
+
role: Filter by role (user/assistant/system/tool)
|
|
2751
|
+
return_message_object: Whether to return Message objects or LettaMessage objects
|
|
2752
|
+
user_id: ID of the user making the request
|
|
2753
|
+
|
|
2754
|
+
Returns:
|
|
2755
|
+
A list of messages associated with the run. Default is List[LettaMessage].
|
|
2815
2756
|
|
|
2816
2757
|
</dd>
|
|
2817
2758
|
</dl>
|
|
@@ -2827,7 +2768,7 @@ Get a list of all custom providers in the database
|
|
|
2827
2768
|
<dd>
|
|
2828
2769
|
|
|
2829
2770
|
```typescript
|
|
2830
|
-
await client.
|
|
2771
|
+
await client.runs.listRunMessages("run_id");
|
|
2831
2772
|
```
|
|
2832
2773
|
|
|
2833
2774
|
</dd>
|
|
@@ -2843,7 +2784,7 @@ await client.providers.listProviders();
|
|
|
2843
2784
|
<dl>
|
|
2844
2785
|
<dd>
|
|
2845
2786
|
|
|
2846
|
-
**
|
|
2787
|
+
**runId:** `string`
|
|
2847
2788
|
|
|
2848
2789
|
</dd>
|
|
2849
2790
|
</dl>
|
|
@@ -2851,7 +2792,15 @@ await client.providers.listProviders();
|
|
|
2851
2792
|
<dl>
|
|
2852
2793
|
<dd>
|
|
2853
2794
|
|
|
2854
|
-
**
|
|
2795
|
+
**request:** `Letta.ListRunMessagesRequest`
|
|
2796
|
+
|
|
2797
|
+
</dd>
|
|
2798
|
+
</dl>
|
|
2799
|
+
|
|
2800
|
+
<dl>
|
|
2801
|
+
<dd>
|
|
2802
|
+
|
|
2803
|
+
**requestOptions:** `Runs.RequestOptions`
|
|
2855
2804
|
|
|
2856
2805
|
</dd>
|
|
2857
2806
|
</dl>
|
|
@@ -2862,7 +2811,7 @@ await client.providers.listProviders();
|
|
|
2862
2811
|
</dl>
|
|
2863
2812
|
</details>
|
|
2864
2813
|
|
|
2865
|
-
<details><summary><code>client.
|
|
2814
|
+
<details><summary><code>client.runs.<a href="/src/api/resources/runs/client/Client.ts">retrieveRunUsage</a>(runId) -> Letta.UsageStatistics</code></summary>
|
|
2866
2815
|
<dl>
|
|
2867
2816
|
<dd>
|
|
2868
2817
|
|
|
@@ -2874,7 +2823,7 @@ await client.providers.listProviders();
|
|
|
2874
2823
|
<dl>
|
|
2875
2824
|
<dd>
|
|
2876
2825
|
|
|
2877
|
-
|
|
2826
|
+
Get usage statistics for a run.
|
|
2878
2827
|
|
|
2879
2828
|
</dd>
|
|
2880
2829
|
</dl>
|
|
@@ -2890,10 +2839,7 @@ Create a new custom provider
|
|
|
2890
2839
|
<dd>
|
|
2891
2840
|
|
|
2892
2841
|
```typescript
|
|
2893
|
-
await client.
|
|
2894
|
-
name: "name",
|
|
2895
|
-
apiKey: "api_key",
|
|
2896
|
-
});
|
|
2842
|
+
await client.runs.retrieveRunUsage("run_id");
|
|
2897
2843
|
```
|
|
2898
2844
|
|
|
2899
2845
|
</dd>
|
|
@@ -2909,7 +2855,7 @@ await client.providers.createProvider({
|
|
|
2909
2855
|
<dl>
|
|
2910
2856
|
<dd>
|
|
2911
2857
|
|
|
2912
|
-
**
|
|
2858
|
+
**runId:** `string`
|
|
2913
2859
|
|
|
2914
2860
|
</dd>
|
|
2915
2861
|
</dl>
|
|
@@ -2917,7 +2863,7 @@ await client.providers.createProvider({
|
|
|
2917
2863
|
<dl>
|
|
2918
2864
|
<dd>
|
|
2919
2865
|
|
|
2920
|
-
**requestOptions:** `
|
|
2866
|
+
**requestOptions:** `Runs.RequestOptions`
|
|
2921
2867
|
|
|
2922
2868
|
</dd>
|
|
2923
2869
|
</dl>
|
|
@@ -2928,7 +2874,9 @@ await client.providers.createProvider({
|
|
|
2928
2874
|
</dl>
|
|
2929
2875
|
</details>
|
|
2930
2876
|
|
|
2931
|
-
|
|
2877
|
+
## Tag
|
|
2878
|
+
|
|
2879
|
+
<details><summary><code>client.tag.<a href="/src/api/resources/tag/client/Client.ts">listTags</a>({ ...params }) -> string[]</code></summary>
|
|
2932
2880
|
<dl>
|
|
2933
2881
|
<dd>
|
|
2934
2882
|
|
|
@@ -2940,7 +2888,7 @@ await client.providers.createProvider({
|
|
|
2940
2888
|
<dl>
|
|
2941
2889
|
<dd>
|
|
2942
2890
|
|
|
2943
|
-
|
|
2891
|
+
Get a list of all tags in the database
|
|
2944
2892
|
|
|
2945
2893
|
</dd>
|
|
2946
2894
|
</dl>
|
|
@@ -2956,9 +2904,7 @@ Delete an existing custom provider
|
|
|
2956
2904
|
<dd>
|
|
2957
2905
|
|
|
2958
2906
|
```typescript
|
|
2959
|
-
await client.
|
|
2960
|
-
providerId: "provider_id",
|
|
2961
|
-
});
|
|
2907
|
+
await client.tag.listTags();
|
|
2962
2908
|
```
|
|
2963
2909
|
|
|
2964
2910
|
</dd>
|
|
@@ -2974,7 +2920,7 @@ await client.providers.deleteProvider({
|
|
|
2974
2920
|
<dl>
|
|
2975
2921
|
<dd>
|
|
2976
2922
|
|
|
2977
|
-
**request:** `Letta.
|
|
2923
|
+
**request:** `Letta.ListTagsRequest`
|
|
2978
2924
|
|
|
2979
2925
|
</dd>
|
|
2980
2926
|
</dl>
|
|
@@ -2982,7 +2928,7 @@ await client.providers.deleteProvider({
|
|
|
2982
2928
|
<dl>
|
|
2983
2929
|
<dd>
|
|
2984
2930
|
|
|
2985
|
-
**requestOptions:** `
|
|
2931
|
+
**requestOptions:** `Tag.RequestOptions`
|
|
2986
2932
|
|
|
2987
2933
|
</dd>
|
|
2988
2934
|
</dl>
|
|
@@ -2993,7 +2939,9 @@ await client.providers.deleteProvider({
|
|
|
2993
2939
|
</dl>
|
|
2994
2940
|
</details>
|
|
2995
2941
|
|
|
2996
|
-
|
|
2942
|
+
## Agents Context
|
|
2943
|
+
|
|
2944
|
+
<details><summary><code>client.agents.context.<a href="/src/api/resources/agents/resources/context/client/Client.ts">retrieve</a>(agentId) -> Letta.ContextWindowOverview</code></summary>
|
|
2997
2945
|
<dl>
|
|
2998
2946
|
<dd>
|
|
2999
2947
|
|
|
@@ -3005,7 +2953,7 @@ await client.providers.deleteProvider({
|
|
|
3005
2953
|
<dl>
|
|
3006
2954
|
<dd>
|
|
3007
2955
|
|
|
3008
|
-
|
|
2956
|
+
Retrieve the context window of a specific agent.
|
|
3009
2957
|
|
|
3010
2958
|
</dd>
|
|
3011
2959
|
</dl>
|
|
@@ -3021,10 +2969,7 @@ Update an existing custom provider
|
|
|
3021
2969
|
<dd>
|
|
3022
2970
|
|
|
3023
2971
|
```typescript
|
|
3024
|
-
await client.
|
|
3025
|
-
id: "id",
|
|
3026
|
-
apiKey: "api_key",
|
|
3027
|
-
});
|
|
2972
|
+
await client.agents.context.retrieve("agent_id");
|
|
3028
2973
|
```
|
|
3029
2974
|
|
|
3030
2975
|
</dd>
|
|
@@ -3040,7 +2985,7 @@ await client.providers.modifyProvider({
|
|
|
3040
2985
|
<dl>
|
|
3041
2986
|
<dd>
|
|
3042
2987
|
|
|
3043
|
-
**
|
|
2988
|
+
**agentId:** `string`
|
|
3044
2989
|
|
|
3045
2990
|
</dd>
|
|
3046
2991
|
</dl>
|
|
@@ -3048,7 +2993,7 @@ await client.providers.modifyProvider({
|
|
|
3048
2993
|
<dl>
|
|
3049
2994
|
<dd>
|
|
3050
2995
|
|
|
3051
|
-
**requestOptions:** `
|
|
2996
|
+
**requestOptions:** `Context.RequestOptions`
|
|
3052
2997
|
|
|
3053
2998
|
</dd>
|
|
3054
2999
|
</dl>
|
|
@@ -3059,9 +3004,9 @@ await client.providers.modifyProvider({
|
|
|
3059
3004
|
</dl>
|
|
3060
3005
|
</details>
|
|
3061
3006
|
|
|
3062
|
-
##
|
|
3007
|
+
## Agents Tools
|
|
3063
3008
|
|
|
3064
|
-
<details><summary><code>client.
|
|
3009
|
+
<details><summary><code>client.agents.tools.<a href="/src/api/resources/agents/resources/tools/client/Client.ts">list</a>(agentId) -> Letta.Tool[]</code></summary>
|
|
3065
3010
|
<dl>
|
|
3066
3011
|
<dd>
|
|
3067
3012
|
|
|
@@ -3073,7 +3018,7 @@ await client.providers.modifyProvider({
|
|
|
3073
3018
|
<dl>
|
|
3074
3019
|
<dd>
|
|
3075
3020
|
|
|
3076
|
-
|
|
3021
|
+
Get tools from an existing agent
|
|
3077
3022
|
|
|
3078
3023
|
</dd>
|
|
3079
3024
|
</dl>
|
|
@@ -3089,7 +3034,7 @@ List all runs.
|
|
|
3089
3034
|
<dd>
|
|
3090
3035
|
|
|
3091
3036
|
```typescript
|
|
3092
|
-
await client.
|
|
3037
|
+
await client.agents.tools.list("agent_id");
|
|
3093
3038
|
```
|
|
3094
3039
|
|
|
3095
3040
|
</dd>
|
|
@@ -3105,7 +3050,15 @@ await client.runs.listRuns();
|
|
|
3105
3050
|
<dl>
|
|
3106
3051
|
<dd>
|
|
3107
3052
|
|
|
3108
|
-
**
|
|
3053
|
+
**agentId:** `string`
|
|
3054
|
+
|
|
3055
|
+
</dd>
|
|
3056
|
+
</dl>
|
|
3057
|
+
|
|
3058
|
+
<dl>
|
|
3059
|
+
<dd>
|
|
3060
|
+
|
|
3061
|
+
**requestOptions:** `Tools.RequestOptions`
|
|
3109
3062
|
|
|
3110
3063
|
</dd>
|
|
3111
3064
|
</dl>
|
|
@@ -3116,7 +3069,7 @@ await client.runs.listRuns();
|
|
|
3116
3069
|
</dl>
|
|
3117
3070
|
</details>
|
|
3118
3071
|
|
|
3119
|
-
<details><summary><code>client.
|
|
3072
|
+
<details><summary><code>client.agents.tools.<a href="/src/api/resources/agents/resources/tools/client/Client.ts">attach</a>(agentId, toolId) -> Letta.AgentState</code></summary>
|
|
3120
3073
|
<dl>
|
|
3121
3074
|
<dd>
|
|
3122
3075
|
|
|
@@ -3128,7 +3081,7 @@ await client.runs.listRuns();
|
|
|
3128
3081
|
<dl>
|
|
3129
3082
|
<dd>
|
|
3130
3083
|
|
|
3131
|
-
|
|
3084
|
+
Attach a tool to an agent.
|
|
3132
3085
|
|
|
3133
3086
|
</dd>
|
|
3134
3087
|
</dl>
|
|
@@ -3144,7 +3097,7 @@ List all active runs.
|
|
|
3144
3097
|
<dd>
|
|
3145
3098
|
|
|
3146
3099
|
```typescript
|
|
3147
|
-
await client.
|
|
3100
|
+
await client.agents.tools.attach("agent_id", "tool_id");
|
|
3148
3101
|
```
|
|
3149
3102
|
|
|
3150
3103
|
</dd>
|
|
@@ -3160,7 +3113,23 @@ await client.runs.listActiveRuns();
|
|
|
3160
3113
|
<dl>
|
|
3161
3114
|
<dd>
|
|
3162
3115
|
|
|
3163
|
-
**
|
|
3116
|
+
**agentId:** `string`
|
|
3117
|
+
|
|
3118
|
+
</dd>
|
|
3119
|
+
</dl>
|
|
3120
|
+
|
|
3121
|
+
<dl>
|
|
3122
|
+
<dd>
|
|
3123
|
+
|
|
3124
|
+
**toolId:** `string`
|
|
3125
|
+
|
|
3126
|
+
</dd>
|
|
3127
|
+
</dl>
|
|
3128
|
+
|
|
3129
|
+
<dl>
|
|
3130
|
+
<dd>
|
|
3131
|
+
|
|
3132
|
+
**requestOptions:** `Tools.RequestOptions`
|
|
3164
3133
|
|
|
3165
3134
|
</dd>
|
|
3166
3135
|
</dl>
|
|
@@ -3171,7 +3140,7 @@ await client.runs.listActiveRuns();
|
|
|
3171
3140
|
</dl>
|
|
3172
3141
|
</details>
|
|
3173
3142
|
|
|
3174
|
-
<details><summary><code>client.
|
|
3143
|
+
<details><summary><code>client.agents.tools.<a href="/src/api/resources/agents/resources/tools/client/Client.ts">detach</a>(agentId, toolId) -> Letta.AgentState</code></summary>
|
|
3175
3144
|
<dl>
|
|
3176
3145
|
<dd>
|
|
3177
3146
|
|
|
@@ -3183,7 +3152,7 @@ await client.runs.listActiveRuns();
|
|
|
3183
3152
|
<dl>
|
|
3184
3153
|
<dd>
|
|
3185
3154
|
|
|
3186
|
-
|
|
3155
|
+
Detach a tool from an agent.
|
|
3187
3156
|
|
|
3188
3157
|
</dd>
|
|
3189
3158
|
</dl>
|
|
@@ -3199,7 +3168,7 @@ Get the status of a run.
|
|
|
3199
3168
|
<dd>
|
|
3200
3169
|
|
|
3201
3170
|
```typescript
|
|
3202
|
-
await client.
|
|
3171
|
+
await client.agents.tools.detach("agent_id", "tool_id");
|
|
3203
3172
|
```
|
|
3204
3173
|
|
|
3205
3174
|
</dd>
|
|
@@ -3215,7 +3184,7 @@ await client.runs.retrieveRun("run_id");
|
|
|
3215
3184
|
<dl>
|
|
3216
3185
|
<dd>
|
|
3217
3186
|
|
|
3218
|
-
**
|
|
3187
|
+
**agentId:** `string`
|
|
3219
3188
|
|
|
3220
3189
|
</dd>
|
|
3221
3190
|
</dl>
|
|
@@ -3223,7 +3192,15 @@ await client.runs.retrieveRun("run_id");
|
|
|
3223
3192
|
<dl>
|
|
3224
3193
|
<dd>
|
|
3225
3194
|
|
|
3226
|
-
**
|
|
3195
|
+
**toolId:** `string`
|
|
3196
|
+
|
|
3197
|
+
</dd>
|
|
3198
|
+
</dl>
|
|
3199
|
+
|
|
3200
|
+
<dl>
|
|
3201
|
+
<dd>
|
|
3202
|
+
|
|
3203
|
+
**requestOptions:** `Tools.RequestOptions`
|
|
3227
3204
|
|
|
3228
3205
|
</dd>
|
|
3229
3206
|
</dl>
|
|
@@ -3234,7 +3211,9 @@ await client.runs.retrieveRun("run_id");
|
|
|
3234
3211
|
</dl>
|
|
3235
3212
|
</details>
|
|
3236
3213
|
|
|
3237
|
-
|
|
3214
|
+
## Agents Sources
|
|
3215
|
+
|
|
3216
|
+
<details><summary><code>client.agents.sources.<a href="/src/api/resources/agents/resources/sources/client/Client.ts">attach</a>(agentId, sourceId) -> Letta.AgentState</code></summary>
|
|
3238
3217
|
<dl>
|
|
3239
3218
|
<dd>
|
|
3240
3219
|
|
|
@@ -3246,7 +3225,7 @@ await client.runs.retrieveRun("run_id");
|
|
|
3246
3225
|
<dl>
|
|
3247
3226
|
<dd>
|
|
3248
3227
|
|
|
3249
|
-
|
|
3228
|
+
Attach a source to an agent.
|
|
3250
3229
|
|
|
3251
3230
|
</dd>
|
|
3252
3231
|
</dl>
|
|
@@ -3262,7 +3241,7 @@ Delete a run by its run_id.
|
|
|
3262
3241
|
<dd>
|
|
3263
3242
|
|
|
3264
3243
|
```typescript
|
|
3265
|
-
await client.
|
|
3244
|
+
await client.agents.sources.attach("agent_id", "source_id");
|
|
3266
3245
|
```
|
|
3267
3246
|
|
|
3268
3247
|
</dd>
|
|
@@ -3278,7 +3257,7 @@ await client.runs.deleteRun("run_id");
|
|
|
3278
3257
|
<dl>
|
|
3279
3258
|
<dd>
|
|
3280
3259
|
|
|
3281
|
-
**
|
|
3260
|
+
**agentId:** `string`
|
|
3282
3261
|
|
|
3283
3262
|
</dd>
|
|
3284
3263
|
</dl>
|
|
@@ -3286,7 +3265,15 @@ await client.runs.deleteRun("run_id");
|
|
|
3286
3265
|
<dl>
|
|
3287
3266
|
<dd>
|
|
3288
3267
|
|
|
3289
|
-
**
|
|
3268
|
+
**sourceId:** `string`
|
|
3269
|
+
|
|
3270
|
+
</dd>
|
|
3271
|
+
</dl>
|
|
3272
|
+
|
|
3273
|
+
<dl>
|
|
3274
|
+
<dd>
|
|
3275
|
+
|
|
3276
|
+
**requestOptions:** `Sources.RequestOptions`
|
|
3290
3277
|
|
|
3291
3278
|
</dd>
|
|
3292
3279
|
</dl>
|
|
@@ -3297,7 +3284,7 @@ await client.runs.deleteRun("run_id");
|
|
|
3297
3284
|
</dl>
|
|
3298
3285
|
</details>
|
|
3299
3286
|
|
|
3300
|
-
<details><summary><code>client.
|
|
3287
|
+
<details><summary><code>client.agents.sources.<a href="/src/api/resources/agents/resources/sources/client/Client.ts">detach</a>(agentId, sourceId) -> Letta.AgentState</code></summary>
|
|
3301
3288
|
<dl>
|
|
3302
3289
|
<dd>
|
|
3303
3290
|
|
|
@@ -3309,20 +3296,7 @@ await client.runs.deleteRun("run_id");
|
|
|
3309
3296
|
<dl>
|
|
3310
3297
|
<dd>
|
|
3311
3298
|
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
Args:
|
|
3315
|
-
run_id: ID of the run
|
|
3316
|
-
before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
|
|
3317
|
-
after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
|
|
3318
|
-
limit: Maximum number of messages to return
|
|
3319
|
-
order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.
|
|
3320
|
-
role: Filter by role (user/assistant/system/tool)
|
|
3321
|
-
return_message_object: Whether to return Message objects or LettaMessage objects
|
|
3322
|
-
user_id: ID of the user making the request
|
|
3323
|
-
|
|
3324
|
-
Returns:
|
|
3325
|
-
A list of messages associated with the run. Default is List[LettaMessage].
|
|
3299
|
+
Detach a source from an agent.
|
|
3326
3300
|
|
|
3327
3301
|
</dd>
|
|
3328
3302
|
</dl>
|
|
@@ -3338,7 +3312,7 @@ A list of messages associated with the run. Default is List[LettaMessage].
|
|
|
3338
3312
|
<dd>
|
|
3339
3313
|
|
|
3340
3314
|
```typescript
|
|
3341
|
-
await client.
|
|
3315
|
+
await client.agents.sources.detach("agent_id", "source_id");
|
|
3342
3316
|
```
|
|
3343
3317
|
|
|
3344
3318
|
</dd>
|
|
@@ -3354,7 +3328,7 @@ await client.runs.listRunMessages("run_id");
|
|
|
3354
3328
|
<dl>
|
|
3355
3329
|
<dd>
|
|
3356
3330
|
|
|
3357
|
-
**
|
|
3331
|
+
**agentId:** `string`
|
|
3358
3332
|
|
|
3359
3333
|
</dd>
|
|
3360
3334
|
</dl>
|
|
@@ -3362,7 +3336,7 @@ await client.runs.listRunMessages("run_id");
|
|
|
3362
3336
|
<dl>
|
|
3363
3337
|
<dd>
|
|
3364
3338
|
|
|
3365
|
-
**
|
|
3339
|
+
**sourceId:** `string`
|
|
3366
3340
|
|
|
3367
3341
|
</dd>
|
|
3368
3342
|
</dl>
|
|
@@ -3370,7 +3344,7 @@ await client.runs.listRunMessages("run_id");
|
|
|
3370
3344
|
<dl>
|
|
3371
3345
|
<dd>
|
|
3372
3346
|
|
|
3373
|
-
**requestOptions:** `
|
|
3347
|
+
**requestOptions:** `Sources.RequestOptions`
|
|
3374
3348
|
|
|
3375
3349
|
</dd>
|
|
3376
3350
|
</dl>
|
|
@@ -3381,7 +3355,7 @@ await client.runs.listRunMessages("run_id");
|
|
|
3381
3355
|
</dl>
|
|
3382
3356
|
</details>
|
|
3383
3357
|
|
|
3384
|
-
<details><summary><code>client.
|
|
3358
|
+
<details><summary><code>client.agents.sources.<a href="/src/api/resources/agents/resources/sources/client/Client.ts">list</a>(agentId) -> Letta.Source[]</code></summary>
|
|
3385
3359
|
<dl>
|
|
3386
3360
|
<dd>
|
|
3387
3361
|
|
|
@@ -3393,7 +3367,7 @@ await client.runs.listRunMessages("run_id");
|
|
|
3393
3367
|
<dl>
|
|
3394
3368
|
<dd>
|
|
3395
3369
|
|
|
3396
|
-
Get
|
|
3370
|
+
Get the sources associated with an agent.
|
|
3397
3371
|
|
|
3398
3372
|
</dd>
|
|
3399
3373
|
</dl>
|
|
@@ -3409,7 +3383,7 @@ Get usage statistics for a run.
|
|
|
3409
3383
|
<dd>
|
|
3410
3384
|
|
|
3411
3385
|
```typescript
|
|
3412
|
-
await client.
|
|
3386
|
+
await client.agents.sources.list("agent_id");
|
|
3413
3387
|
```
|
|
3414
3388
|
|
|
3415
3389
|
</dd>
|
|
@@ -3425,7 +3399,7 @@ await client.runs.retrieveRunUsage("run_id");
|
|
|
3425
3399
|
<dl>
|
|
3426
3400
|
<dd>
|
|
3427
3401
|
|
|
3428
|
-
**
|
|
3402
|
+
**agentId:** `string`
|
|
3429
3403
|
|
|
3430
3404
|
</dd>
|
|
3431
3405
|
</dl>
|
|
@@ -3433,7 +3407,7 @@ await client.runs.retrieveRunUsage("run_id");
|
|
|
3433
3407
|
<dl>
|
|
3434
3408
|
<dd>
|
|
3435
3409
|
|
|
3436
|
-
**requestOptions:** `
|
|
3410
|
+
**requestOptions:** `Sources.RequestOptions`
|
|
3437
3411
|
|
|
3438
3412
|
</dd>
|
|
3439
3413
|
</dl>
|
|
@@ -3444,9 +3418,9 @@ await client.runs.retrieveRunUsage("run_id");
|
|
|
3444
3418
|
</dl>
|
|
3445
3419
|
</details>
|
|
3446
3420
|
|
|
3447
|
-
##
|
|
3421
|
+
## Agents CoreMemory
|
|
3448
3422
|
|
|
3449
|
-
<details><summary><code>client.
|
|
3423
|
+
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">retrieve</a>(agentId) -> Letta.Memory</code></summary>
|
|
3450
3424
|
<dl>
|
|
3451
3425
|
<dd>
|
|
3452
3426
|
|
|
@@ -3458,7 +3432,8 @@ await client.runs.retrieveRunUsage("run_id");
|
|
|
3458
3432
|
<dl>
|
|
3459
3433
|
<dd>
|
|
3460
3434
|
|
|
3461
|
-
|
|
3435
|
+
Retrieve the memory state of a specific agent.
|
|
3436
|
+
This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.
|
|
3462
3437
|
|
|
3463
3438
|
</dd>
|
|
3464
3439
|
</dl>
|
|
@@ -3474,7 +3449,7 @@ Get a list of all tags in the database
|
|
|
3474
3449
|
<dd>
|
|
3475
3450
|
|
|
3476
3451
|
```typescript
|
|
3477
|
-
await client.
|
|
3452
|
+
await client.agents.coreMemory.retrieve("agent_id");
|
|
3478
3453
|
```
|
|
3479
3454
|
|
|
3480
3455
|
</dd>
|
|
@@ -3490,7 +3465,7 @@ await client.tag.listTags();
|
|
|
3490
3465
|
<dl>
|
|
3491
3466
|
<dd>
|
|
3492
3467
|
|
|
3493
|
-
**
|
|
3468
|
+
**agentId:** `string`
|
|
3494
3469
|
|
|
3495
3470
|
</dd>
|
|
3496
3471
|
</dl>
|
|
@@ -3498,7 +3473,7 @@ await client.tag.listTags();
|
|
|
3498
3473
|
<dl>
|
|
3499
3474
|
<dd>
|
|
3500
3475
|
|
|
3501
|
-
**requestOptions:** `
|
|
3476
|
+
**requestOptions:** `CoreMemory.RequestOptions`
|
|
3502
3477
|
|
|
3503
3478
|
</dd>
|
|
3504
3479
|
</dl>
|
|
@@ -3509,9 +3484,7 @@ await client.tag.listTags();
|
|
|
3509
3484
|
</dl>
|
|
3510
3485
|
</details>
|
|
3511
3486
|
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
<details><summary><code>client.agents.context.<a href="/src/api/resources/agents/resources/context/client/Client.ts">retrieve</a>(agentId) -> Letta.ContextWindowOverview</code></summary>
|
|
3487
|
+
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">retrieveBlock</a>(agentId, blockLabel) -> Letta.Block</code></summary>
|
|
3515
3488
|
<dl>
|
|
3516
3489
|
<dd>
|
|
3517
3490
|
|
|
@@ -3523,7 +3496,7 @@ await client.tag.listTags();
|
|
|
3523
3496
|
<dl>
|
|
3524
3497
|
<dd>
|
|
3525
3498
|
|
|
3526
|
-
Retrieve
|
|
3499
|
+
Retrieve a memory block from an agent.
|
|
3527
3500
|
|
|
3528
3501
|
</dd>
|
|
3529
3502
|
</dl>
|
|
@@ -3539,7 +3512,7 @@ Retrieve the context window of a specific agent.
|
|
|
3539
3512
|
<dd>
|
|
3540
3513
|
|
|
3541
3514
|
```typescript
|
|
3542
|
-
await client.agents.
|
|
3515
|
+
await client.agents.coreMemory.retrieveBlock("agent_id", "block_label");
|
|
3543
3516
|
```
|
|
3544
3517
|
|
|
3545
3518
|
</dd>
|
|
@@ -3563,7 +3536,15 @@ await client.agents.context.retrieve("agent_id");
|
|
|
3563
3536
|
<dl>
|
|
3564
3537
|
<dd>
|
|
3565
3538
|
|
|
3566
|
-
**
|
|
3539
|
+
**blockLabel:** `string`
|
|
3540
|
+
|
|
3541
|
+
</dd>
|
|
3542
|
+
</dl>
|
|
3543
|
+
|
|
3544
|
+
<dl>
|
|
3545
|
+
<dd>
|
|
3546
|
+
|
|
3547
|
+
**requestOptions:** `CoreMemory.RequestOptions`
|
|
3567
3548
|
|
|
3568
3549
|
</dd>
|
|
3569
3550
|
</dl>
|
|
@@ -3574,9 +3555,7 @@ await client.agents.context.retrieve("agent_id");
|
|
|
3574
3555
|
</dl>
|
|
3575
3556
|
</details>
|
|
3576
3557
|
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
<details><summary><code>client.agents.tools.<a href="/src/api/resources/agents/resources/tools/client/Client.ts">list</a>(agentId) -> Letta.Tool[]</code></summary>
|
|
3558
|
+
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">modifyBlock</a>(agentId, blockLabel, { ...params }) -> Letta.Block</code></summary>
|
|
3580
3559
|
<dl>
|
|
3581
3560
|
<dd>
|
|
3582
3561
|
|
|
@@ -3588,7 +3567,7 @@ await client.agents.context.retrieve("agent_id");
|
|
|
3588
3567
|
<dl>
|
|
3589
3568
|
<dd>
|
|
3590
3569
|
|
|
3591
|
-
|
|
3570
|
+
Updates a memory block of an agent.
|
|
3592
3571
|
|
|
3593
3572
|
</dd>
|
|
3594
3573
|
</dl>
|
|
@@ -3604,7 +3583,7 @@ Get tools from an existing agent
|
|
|
3604
3583
|
<dd>
|
|
3605
3584
|
|
|
3606
3585
|
```typescript
|
|
3607
|
-
await client.agents.
|
|
3586
|
+
await client.agents.coreMemory.modifyBlock("agent_id", "block_label", {});
|
|
3608
3587
|
```
|
|
3609
3588
|
|
|
3610
3589
|
</dd>
|
|
@@ -3628,7 +3607,23 @@ await client.agents.tools.list("agent_id");
|
|
|
3628
3607
|
<dl>
|
|
3629
3608
|
<dd>
|
|
3630
3609
|
|
|
3631
|
-
**
|
|
3610
|
+
**blockLabel:** `string`
|
|
3611
|
+
|
|
3612
|
+
</dd>
|
|
3613
|
+
</dl>
|
|
3614
|
+
|
|
3615
|
+
<dl>
|
|
3616
|
+
<dd>
|
|
3617
|
+
|
|
3618
|
+
**request:** `Letta.BlockUpdate`
|
|
3619
|
+
|
|
3620
|
+
</dd>
|
|
3621
|
+
</dl>
|
|
3622
|
+
|
|
3623
|
+
<dl>
|
|
3624
|
+
<dd>
|
|
3625
|
+
|
|
3626
|
+
**requestOptions:** `CoreMemory.RequestOptions`
|
|
3632
3627
|
|
|
3633
3628
|
</dd>
|
|
3634
3629
|
</dl>
|
|
@@ -3639,7 +3634,7 @@ await client.agents.tools.list("agent_id");
|
|
|
3639
3634
|
</dl>
|
|
3640
3635
|
</details>
|
|
3641
3636
|
|
|
3642
|
-
<details><summary><code>client.agents.
|
|
3637
|
+
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">listBlocks</a>(agentId) -> Letta.Block[]</code></summary>
|
|
3643
3638
|
<dl>
|
|
3644
3639
|
<dd>
|
|
3645
3640
|
|
|
@@ -3651,7 +3646,7 @@ await client.agents.tools.list("agent_id");
|
|
|
3651
3646
|
<dl>
|
|
3652
3647
|
<dd>
|
|
3653
3648
|
|
|
3654
|
-
|
|
3649
|
+
Retrieve the memory blocks of a specific agent.
|
|
3655
3650
|
|
|
3656
3651
|
</dd>
|
|
3657
3652
|
</dl>
|
|
@@ -3667,7 +3662,7 @@ Attach a tool to an agent.
|
|
|
3667
3662
|
<dd>
|
|
3668
3663
|
|
|
3669
3664
|
```typescript
|
|
3670
|
-
await client.agents.
|
|
3665
|
+
await client.agents.coreMemory.listBlocks("agent_id");
|
|
3671
3666
|
```
|
|
3672
3667
|
|
|
3673
3668
|
</dd>
|
|
@@ -3691,15 +3686,7 @@ await client.agents.tools.attach("agent_id", "tool_id");
|
|
|
3691
3686
|
<dl>
|
|
3692
3687
|
<dd>
|
|
3693
3688
|
|
|
3694
|
-
**
|
|
3695
|
-
|
|
3696
|
-
</dd>
|
|
3697
|
-
</dl>
|
|
3698
|
-
|
|
3699
|
-
<dl>
|
|
3700
|
-
<dd>
|
|
3701
|
-
|
|
3702
|
-
**requestOptions:** `Tools.RequestOptions`
|
|
3689
|
+
**requestOptions:** `CoreMemory.RequestOptions`
|
|
3703
3690
|
|
|
3704
3691
|
</dd>
|
|
3705
3692
|
</dl>
|
|
@@ -3710,7 +3697,7 @@ await client.agents.tools.attach("agent_id", "tool_id");
|
|
|
3710
3697
|
</dl>
|
|
3711
3698
|
</details>
|
|
3712
3699
|
|
|
3713
|
-
<details><summary><code>client.agents.
|
|
3700
|
+
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">attachBlock</a>(agentId, blockId) -> Letta.AgentState</code></summary>
|
|
3714
3701
|
<dl>
|
|
3715
3702
|
<dd>
|
|
3716
3703
|
|
|
@@ -3722,7 +3709,7 @@ await client.agents.tools.attach("agent_id", "tool_id");
|
|
|
3722
3709
|
<dl>
|
|
3723
3710
|
<dd>
|
|
3724
3711
|
|
|
3725
|
-
|
|
3712
|
+
Attach a block to an agent.
|
|
3726
3713
|
|
|
3727
3714
|
</dd>
|
|
3728
3715
|
</dl>
|
|
@@ -3738,7 +3725,7 @@ Detach a tool from an agent.
|
|
|
3738
3725
|
<dd>
|
|
3739
3726
|
|
|
3740
3727
|
```typescript
|
|
3741
|
-
await client.agents.
|
|
3728
|
+
await client.agents.coreMemory.attachBlock("agent_id", "block_id");
|
|
3742
3729
|
```
|
|
3743
3730
|
|
|
3744
3731
|
</dd>
|
|
@@ -3762,7 +3749,7 @@ await client.agents.tools.detach("agent_id", "tool_id");
|
|
|
3762
3749
|
<dl>
|
|
3763
3750
|
<dd>
|
|
3764
3751
|
|
|
3765
|
-
**
|
|
3752
|
+
**blockId:** `string`
|
|
3766
3753
|
|
|
3767
3754
|
</dd>
|
|
3768
3755
|
</dl>
|
|
@@ -3770,7 +3757,7 @@ await client.agents.tools.detach("agent_id", "tool_id");
|
|
|
3770
3757
|
<dl>
|
|
3771
3758
|
<dd>
|
|
3772
3759
|
|
|
3773
|
-
**requestOptions:** `
|
|
3760
|
+
**requestOptions:** `CoreMemory.RequestOptions`
|
|
3774
3761
|
|
|
3775
3762
|
</dd>
|
|
3776
3763
|
</dl>
|
|
@@ -3781,9 +3768,7 @@ await client.agents.tools.detach("agent_id", "tool_id");
|
|
|
3781
3768
|
</dl>
|
|
3782
3769
|
</details>
|
|
3783
3770
|
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
<details><summary><code>client.agents.sources.<a href="/src/api/resources/agents/resources/sources/client/Client.ts">attach</a>(agentId, sourceId) -> Letta.AgentState</code></summary>
|
|
3771
|
+
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">detachBlock</a>(agentId, blockId) -> Letta.AgentState</code></summary>
|
|
3787
3772
|
<dl>
|
|
3788
3773
|
<dd>
|
|
3789
3774
|
|
|
@@ -3795,7 +3780,7 @@ await client.agents.tools.detach("agent_id", "tool_id");
|
|
|
3795
3780
|
<dl>
|
|
3796
3781
|
<dd>
|
|
3797
3782
|
|
|
3798
|
-
|
|
3783
|
+
Detach a block from an agent.
|
|
3799
3784
|
|
|
3800
3785
|
</dd>
|
|
3801
3786
|
</dl>
|
|
@@ -3811,7 +3796,7 @@ Attach a source to an agent.
|
|
|
3811
3796
|
<dd>
|
|
3812
3797
|
|
|
3813
3798
|
```typescript
|
|
3814
|
-
await client.agents.
|
|
3799
|
+
await client.agents.coreMemory.detachBlock("agent_id", "block_id");
|
|
3815
3800
|
```
|
|
3816
3801
|
|
|
3817
3802
|
</dd>
|
|
@@ -3835,7 +3820,7 @@ await client.agents.sources.attach("agent_id", "source_id");
|
|
|
3835
3820
|
<dl>
|
|
3836
3821
|
<dd>
|
|
3837
3822
|
|
|
3838
|
-
**
|
|
3823
|
+
**blockId:** `string`
|
|
3839
3824
|
|
|
3840
3825
|
</dd>
|
|
3841
3826
|
</dl>
|
|
@@ -3843,7 +3828,7 @@ await client.agents.sources.attach("agent_id", "source_id");
|
|
|
3843
3828
|
<dl>
|
|
3844
3829
|
<dd>
|
|
3845
3830
|
|
|
3846
|
-
**requestOptions:** `
|
|
3831
|
+
**requestOptions:** `CoreMemory.RequestOptions`
|
|
3847
3832
|
|
|
3848
3833
|
</dd>
|
|
3849
3834
|
</dl>
|
|
@@ -3854,8 +3839,10 @@ await client.agents.sources.attach("agent_id", "source_id");
|
|
|
3854
3839
|
</dl>
|
|
3855
3840
|
</details>
|
|
3856
3841
|
|
|
3857
|
-
|
|
3858
|
-
|
|
3842
|
+
## Agents ArchivalMemory
|
|
3843
|
+
|
|
3844
|
+
<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>
|
|
3845
|
+
<dl>
|
|
3859
3846
|
<dd>
|
|
3860
3847
|
|
|
3861
3848
|
#### 📝 Description
|
|
@@ -3866,7 +3853,7 @@ await client.agents.sources.attach("agent_id", "source_id");
|
|
|
3866
3853
|
<dl>
|
|
3867
3854
|
<dd>
|
|
3868
3855
|
|
|
3869
|
-
|
|
3856
|
+
Retrieve the memories in an agent's archival memory store (paginated query).
|
|
3870
3857
|
|
|
3871
3858
|
</dd>
|
|
3872
3859
|
</dl>
|
|
@@ -3882,7 +3869,7 @@ Detach a source from an agent.
|
|
|
3882
3869
|
<dd>
|
|
3883
3870
|
|
|
3884
3871
|
```typescript
|
|
3885
|
-
await client.agents.
|
|
3872
|
+
await client.agents.archivalMemory.list("agent_id");
|
|
3886
3873
|
```
|
|
3887
3874
|
|
|
3888
3875
|
</dd>
|
|
@@ -3906,7 +3893,7 @@ await client.agents.sources.detach("agent_id", "source_id");
|
|
|
3906
3893
|
<dl>
|
|
3907
3894
|
<dd>
|
|
3908
3895
|
|
|
3909
|
-
**
|
|
3896
|
+
**request:** `Letta.agents.ArchivalMemoryListRequest`
|
|
3910
3897
|
|
|
3911
3898
|
</dd>
|
|
3912
3899
|
</dl>
|
|
@@ -3914,7 +3901,7 @@ await client.agents.sources.detach("agent_id", "source_id");
|
|
|
3914
3901
|
<dl>
|
|
3915
3902
|
<dd>
|
|
3916
3903
|
|
|
3917
|
-
**requestOptions:** `
|
|
3904
|
+
**requestOptions:** `ArchivalMemory.RequestOptions`
|
|
3918
3905
|
|
|
3919
3906
|
</dd>
|
|
3920
3907
|
</dl>
|
|
@@ -3925,7 +3912,7 @@ await client.agents.sources.detach("agent_id", "source_id");
|
|
|
3925
3912
|
</dl>
|
|
3926
3913
|
</details>
|
|
3927
3914
|
|
|
3928
|
-
<details><summary><code>client.agents.
|
|
3915
|
+
<details><summary><code>client.agents.archivalMemory.<a href="/src/api/resources/agents/resources/archivalMemory/client/Client.ts">create</a>(agentId, { ...params }) -> Letta.Passage[]</code></summary>
|
|
3929
3916
|
<dl>
|
|
3930
3917
|
<dd>
|
|
3931
3918
|
|
|
@@ -3937,7 +3924,7 @@ await client.agents.sources.detach("agent_id", "source_id");
|
|
|
3937
3924
|
<dl>
|
|
3938
3925
|
<dd>
|
|
3939
3926
|
|
|
3940
|
-
|
|
3927
|
+
Insert a memory into an agent's archival memory store.
|
|
3941
3928
|
|
|
3942
3929
|
</dd>
|
|
3943
3930
|
</dl>
|
|
@@ -3953,7 +3940,9 @@ Get the sources associated with an agent.
|
|
|
3953
3940
|
<dd>
|
|
3954
3941
|
|
|
3955
3942
|
```typescript
|
|
3956
|
-
await client.agents.
|
|
3943
|
+
await client.agents.archivalMemory.create("agent_id", {
|
|
3944
|
+
text: "text",
|
|
3945
|
+
});
|
|
3957
3946
|
```
|
|
3958
3947
|
|
|
3959
3948
|
</dd>
|
|
@@ -3977,7 +3966,86 @@ await client.agents.sources.list("agent_id");
|
|
|
3977
3966
|
<dl>
|
|
3978
3967
|
<dd>
|
|
3979
3968
|
|
|
3980
|
-
**
|
|
3969
|
+
**request:** `Letta.agents.CreateArchivalMemory`
|
|
3970
|
+
|
|
3971
|
+
</dd>
|
|
3972
|
+
</dl>
|
|
3973
|
+
|
|
3974
|
+
<dl>
|
|
3975
|
+
<dd>
|
|
3976
|
+
|
|
3977
|
+
**requestOptions:** `ArchivalMemory.RequestOptions`
|
|
3978
|
+
|
|
3979
|
+
</dd>
|
|
3980
|
+
</dl>
|
|
3981
|
+
</dd>
|
|
3982
|
+
</dl>
|
|
3983
|
+
|
|
3984
|
+
</dd>
|
|
3985
|
+
</dl>
|
|
3986
|
+
</details>
|
|
3987
|
+
|
|
3988
|
+
<details><summary><code>client.agents.archivalMemory.<a href="/src/api/resources/agents/resources/archivalMemory/client/Client.ts">delete</a>(agentId, memoryId) -> unknown</code></summary>
|
|
3989
|
+
<dl>
|
|
3990
|
+
<dd>
|
|
3991
|
+
|
|
3992
|
+
#### 📝 Description
|
|
3993
|
+
|
|
3994
|
+
<dl>
|
|
3995
|
+
<dd>
|
|
3996
|
+
|
|
3997
|
+
<dl>
|
|
3998
|
+
<dd>
|
|
3999
|
+
|
|
4000
|
+
Delete a memory from an agent's archival memory store.
|
|
4001
|
+
|
|
4002
|
+
</dd>
|
|
4003
|
+
</dl>
|
|
4004
|
+
</dd>
|
|
4005
|
+
</dl>
|
|
4006
|
+
|
|
4007
|
+
#### 🔌 Usage
|
|
4008
|
+
|
|
4009
|
+
<dl>
|
|
4010
|
+
<dd>
|
|
4011
|
+
|
|
4012
|
+
<dl>
|
|
4013
|
+
<dd>
|
|
4014
|
+
|
|
4015
|
+
```typescript
|
|
4016
|
+
await client.agents.archivalMemory.delete("agent_id", "memory_id");
|
|
4017
|
+
```
|
|
4018
|
+
|
|
4019
|
+
</dd>
|
|
4020
|
+
</dl>
|
|
4021
|
+
</dd>
|
|
4022
|
+
</dl>
|
|
4023
|
+
|
|
4024
|
+
#### ⚙️ Parameters
|
|
4025
|
+
|
|
4026
|
+
<dl>
|
|
4027
|
+
<dd>
|
|
4028
|
+
|
|
4029
|
+
<dl>
|
|
4030
|
+
<dd>
|
|
4031
|
+
|
|
4032
|
+
**agentId:** `string`
|
|
4033
|
+
|
|
4034
|
+
</dd>
|
|
4035
|
+
</dl>
|
|
4036
|
+
|
|
4037
|
+
<dl>
|
|
4038
|
+
<dd>
|
|
4039
|
+
|
|
4040
|
+
**memoryId:** `string`
|
|
4041
|
+
|
|
4042
|
+
</dd>
|
|
4043
|
+
</dl>
|
|
4044
|
+
|
|
4045
|
+
<dl>
|
|
4046
|
+
<dd>
|
|
4047
|
+
|
|
4048
|
+
**requestOptions:** `ArchivalMemory.RequestOptions`
|
|
3981
4049
|
|
|
3982
4050
|
</dd>
|
|
3983
4051
|
</dl>
|
|
@@ -4094,7 +4162,7 @@ await client.agents.messages.create("agent_id", {
|
|
|
4094
4162
|
messages: [
|
|
4095
4163
|
{
|
|
4096
4164
|
role: "user",
|
|
4097
|
-
|
|
4165
|
+
content: "content",
|
|
4098
4166
|
},
|
|
4099
4167
|
],
|
|
4100
4168
|
});
|
|
@@ -4253,7 +4321,7 @@ const response = await client.agents.messages.createStream("agent_id", {
|
|
|
4253
4321
|
messages: [
|
|
4254
4322
|
{
|
|
4255
4323
|
role: "user",
|
|
4256
|
-
|
|
4324
|
+
content: "content",
|
|
4257
4325
|
},
|
|
4258
4326
|
],
|
|
4259
4327
|
});
|
|
@@ -4335,7 +4403,7 @@ await client.agents.messages.createAsync("agent_id", {
|
|
|
4335
4403
|
messages: [
|
|
4336
4404
|
{
|
|
4337
4405
|
role: "user",
|
|
4338
|
-
|
|
4406
|
+
content: "content",
|
|
4339
4407
|
},
|
|
4340
4408
|
],
|
|
4341
4409
|
});
|
|
@@ -4672,482 +4740,6 @@ await client.agents.memoryVariables.list("agent_id");
|
|
|
4672
4740
|
</dl>
|
|
4673
4741
|
</details>
|
|
4674
4742
|
|
|
4675
|
-
## Agents CoreMemory
|
|
4676
|
-
|
|
4677
|
-
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">retrieve</a>(agentId) -> void</code></summary>
|
|
4678
|
-
<dl>
|
|
4679
|
-
<dd>
|
|
4680
|
-
|
|
4681
|
-
#### 🔌 Usage
|
|
4682
|
-
|
|
4683
|
-
<dl>
|
|
4684
|
-
<dd>
|
|
4685
|
-
|
|
4686
|
-
<dl>
|
|
4687
|
-
<dd>
|
|
4688
|
-
|
|
4689
|
-
```typescript
|
|
4690
|
-
await client.agents.coreMemory.retrieve("agent_id");
|
|
4691
|
-
```
|
|
4692
|
-
|
|
4693
|
-
</dd>
|
|
4694
|
-
</dl>
|
|
4695
|
-
</dd>
|
|
4696
|
-
</dl>
|
|
4697
|
-
|
|
4698
|
-
#### ⚙️ Parameters
|
|
4699
|
-
|
|
4700
|
-
<dl>
|
|
4701
|
-
<dd>
|
|
4702
|
-
|
|
4703
|
-
<dl>
|
|
4704
|
-
<dd>
|
|
4705
|
-
|
|
4706
|
-
**agentId:** `string`
|
|
4707
|
-
|
|
4708
|
-
</dd>
|
|
4709
|
-
</dl>
|
|
4710
|
-
|
|
4711
|
-
<dl>
|
|
4712
|
-
<dd>
|
|
4713
|
-
|
|
4714
|
-
**requestOptions:** `CoreMemory.RequestOptions`
|
|
4715
|
-
|
|
4716
|
-
</dd>
|
|
4717
|
-
</dl>
|
|
4718
|
-
</dd>
|
|
4719
|
-
</dl>
|
|
4720
|
-
|
|
4721
|
-
</dd>
|
|
4722
|
-
</dl>
|
|
4723
|
-
</details>
|
|
4724
|
-
|
|
4725
|
-
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">listBlocks</a>(agentId) -> void</code></summary>
|
|
4726
|
-
<dl>
|
|
4727
|
-
<dd>
|
|
4728
|
-
|
|
4729
|
-
#### 🔌 Usage
|
|
4730
|
-
|
|
4731
|
-
<dl>
|
|
4732
|
-
<dd>
|
|
4733
|
-
|
|
4734
|
-
<dl>
|
|
4735
|
-
<dd>
|
|
4736
|
-
|
|
4737
|
-
```typescript
|
|
4738
|
-
await client.agents.coreMemory.listBlocks("agent_id");
|
|
4739
|
-
```
|
|
4740
|
-
|
|
4741
|
-
</dd>
|
|
4742
|
-
</dl>
|
|
4743
|
-
</dd>
|
|
4744
|
-
</dl>
|
|
4745
|
-
|
|
4746
|
-
#### ⚙️ Parameters
|
|
4747
|
-
|
|
4748
|
-
<dl>
|
|
4749
|
-
<dd>
|
|
4750
|
-
|
|
4751
|
-
<dl>
|
|
4752
|
-
<dd>
|
|
4753
|
-
|
|
4754
|
-
**agentId:** `string`
|
|
4755
|
-
|
|
4756
|
-
</dd>
|
|
4757
|
-
</dl>
|
|
4758
|
-
|
|
4759
|
-
<dl>
|
|
4760
|
-
<dd>
|
|
4761
|
-
|
|
4762
|
-
**requestOptions:** `CoreMemory.RequestOptions`
|
|
4763
|
-
|
|
4764
|
-
</dd>
|
|
4765
|
-
</dl>
|
|
4766
|
-
</dd>
|
|
4767
|
-
</dl>
|
|
4768
|
-
|
|
4769
|
-
</dd>
|
|
4770
|
-
</dl>
|
|
4771
|
-
</details>
|
|
4772
|
-
|
|
4773
|
-
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">attachBlock</a>(agentId, blockId) -> void</code></summary>
|
|
4774
|
-
<dl>
|
|
4775
|
-
<dd>
|
|
4776
|
-
|
|
4777
|
-
#### 🔌 Usage
|
|
4778
|
-
|
|
4779
|
-
<dl>
|
|
4780
|
-
<dd>
|
|
4781
|
-
|
|
4782
|
-
<dl>
|
|
4783
|
-
<dd>
|
|
4784
|
-
|
|
4785
|
-
```typescript
|
|
4786
|
-
await client.agents.coreMemory.attachBlock("agent_id", "block_id");
|
|
4787
|
-
```
|
|
4788
|
-
|
|
4789
|
-
</dd>
|
|
4790
|
-
</dl>
|
|
4791
|
-
</dd>
|
|
4792
|
-
</dl>
|
|
4793
|
-
|
|
4794
|
-
#### ⚙️ Parameters
|
|
4795
|
-
|
|
4796
|
-
<dl>
|
|
4797
|
-
<dd>
|
|
4798
|
-
|
|
4799
|
-
<dl>
|
|
4800
|
-
<dd>
|
|
4801
|
-
|
|
4802
|
-
**agentId:** `string`
|
|
4803
|
-
|
|
4804
|
-
</dd>
|
|
4805
|
-
</dl>
|
|
4806
|
-
|
|
4807
|
-
<dl>
|
|
4808
|
-
<dd>
|
|
4809
|
-
|
|
4810
|
-
**blockId:** `string`
|
|
4811
|
-
|
|
4812
|
-
</dd>
|
|
4813
|
-
</dl>
|
|
4814
|
-
|
|
4815
|
-
<dl>
|
|
4816
|
-
<dd>
|
|
4817
|
-
|
|
4818
|
-
**requestOptions:** `CoreMemory.RequestOptions`
|
|
4819
|
-
|
|
4820
|
-
</dd>
|
|
4821
|
-
</dl>
|
|
4822
|
-
</dd>
|
|
4823
|
-
</dl>
|
|
4824
|
-
|
|
4825
|
-
</dd>
|
|
4826
|
-
</dl>
|
|
4827
|
-
</details>
|
|
4828
|
-
|
|
4829
|
-
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">detachBlock</a>(agentId, blockId) -> void</code></summary>
|
|
4830
|
-
<dl>
|
|
4831
|
-
<dd>
|
|
4832
|
-
|
|
4833
|
-
#### 🔌 Usage
|
|
4834
|
-
|
|
4835
|
-
<dl>
|
|
4836
|
-
<dd>
|
|
4837
|
-
|
|
4838
|
-
<dl>
|
|
4839
|
-
<dd>
|
|
4840
|
-
|
|
4841
|
-
```typescript
|
|
4842
|
-
await client.agents.coreMemory.detachBlock("agent_id", "block_id");
|
|
4843
|
-
```
|
|
4844
|
-
|
|
4845
|
-
</dd>
|
|
4846
|
-
</dl>
|
|
4847
|
-
</dd>
|
|
4848
|
-
</dl>
|
|
4849
|
-
|
|
4850
|
-
#### ⚙️ Parameters
|
|
4851
|
-
|
|
4852
|
-
<dl>
|
|
4853
|
-
<dd>
|
|
4854
|
-
|
|
4855
|
-
<dl>
|
|
4856
|
-
<dd>
|
|
4857
|
-
|
|
4858
|
-
**agentId:** `string`
|
|
4859
|
-
|
|
4860
|
-
</dd>
|
|
4861
|
-
</dl>
|
|
4862
|
-
|
|
4863
|
-
<dl>
|
|
4864
|
-
<dd>
|
|
4865
|
-
|
|
4866
|
-
**blockId:** `string`
|
|
4867
|
-
|
|
4868
|
-
</dd>
|
|
4869
|
-
</dl>
|
|
4870
|
-
|
|
4871
|
-
<dl>
|
|
4872
|
-
<dd>
|
|
4873
|
-
|
|
4874
|
-
**requestOptions:** `CoreMemory.RequestOptions`
|
|
4875
|
-
|
|
4876
|
-
</dd>
|
|
4877
|
-
</dl>
|
|
4878
|
-
</dd>
|
|
4879
|
-
</dl>
|
|
4880
|
-
|
|
4881
|
-
</dd>
|
|
4882
|
-
</dl>
|
|
4883
|
-
</details>
|
|
4884
|
-
|
|
4885
|
-
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">retrieveBlock</a>(agentId, blockLabel) -> void</code></summary>
|
|
4886
|
-
<dl>
|
|
4887
|
-
<dd>
|
|
4888
|
-
|
|
4889
|
-
#### 🔌 Usage
|
|
4890
|
-
|
|
4891
|
-
<dl>
|
|
4892
|
-
<dd>
|
|
4893
|
-
|
|
4894
|
-
<dl>
|
|
4895
|
-
<dd>
|
|
4896
|
-
|
|
4897
|
-
```typescript
|
|
4898
|
-
await client.agents.coreMemory.retrieveBlock("agent_id", "block_label");
|
|
4899
|
-
```
|
|
4900
|
-
|
|
4901
|
-
</dd>
|
|
4902
|
-
</dl>
|
|
4903
|
-
</dd>
|
|
4904
|
-
</dl>
|
|
4905
|
-
|
|
4906
|
-
#### ⚙️ Parameters
|
|
4907
|
-
|
|
4908
|
-
<dl>
|
|
4909
|
-
<dd>
|
|
4910
|
-
|
|
4911
|
-
<dl>
|
|
4912
|
-
<dd>
|
|
4913
|
-
|
|
4914
|
-
**agentId:** `string`
|
|
4915
|
-
|
|
4916
|
-
</dd>
|
|
4917
|
-
</dl>
|
|
4918
|
-
|
|
4919
|
-
<dl>
|
|
4920
|
-
<dd>
|
|
4921
|
-
|
|
4922
|
-
**blockLabel:** `string`
|
|
4923
|
-
|
|
4924
|
-
</dd>
|
|
4925
|
-
</dl>
|
|
4926
|
-
|
|
4927
|
-
<dl>
|
|
4928
|
-
<dd>
|
|
4929
|
-
|
|
4930
|
-
**requestOptions:** `CoreMemory.RequestOptions`
|
|
4931
|
-
|
|
4932
|
-
</dd>
|
|
4933
|
-
</dl>
|
|
4934
|
-
</dd>
|
|
4935
|
-
</dl>
|
|
4936
|
-
|
|
4937
|
-
</dd>
|
|
4938
|
-
</dl>
|
|
4939
|
-
</details>
|
|
4940
|
-
|
|
4941
|
-
<details><summary><code>client.agents.coreMemory.<a href="/src/api/resources/agents/resources/coreMemory/client/Client.ts">modifyBlock</a>(agentId, blockLabel) -> void</code></summary>
|
|
4942
|
-
<dl>
|
|
4943
|
-
<dd>
|
|
4944
|
-
|
|
4945
|
-
#### 🔌 Usage
|
|
4946
|
-
|
|
4947
|
-
<dl>
|
|
4948
|
-
<dd>
|
|
4949
|
-
|
|
4950
|
-
<dl>
|
|
4951
|
-
<dd>
|
|
4952
|
-
|
|
4953
|
-
```typescript
|
|
4954
|
-
await client.agents.coreMemory.modifyBlock("agent_id", "block_label");
|
|
4955
|
-
```
|
|
4956
|
-
|
|
4957
|
-
</dd>
|
|
4958
|
-
</dl>
|
|
4959
|
-
</dd>
|
|
4960
|
-
</dl>
|
|
4961
|
-
|
|
4962
|
-
#### ⚙️ Parameters
|
|
4963
|
-
|
|
4964
|
-
<dl>
|
|
4965
|
-
<dd>
|
|
4966
|
-
|
|
4967
|
-
<dl>
|
|
4968
|
-
<dd>
|
|
4969
|
-
|
|
4970
|
-
**agentId:** `string`
|
|
4971
|
-
|
|
4972
|
-
</dd>
|
|
4973
|
-
</dl>
|
|
4974
|
-
|
|
4975
|
-
<dl>
|
|
4976
|
-
<dd>
|
|
4977
|
-
|
|
4978
|
-
**blockLabel:** `string`
|
|
4979
|
-
|
|
4980
|
-
</dd>
|
|
4981
|
-
</dl>
|
|
4982
|
-
|
|
4983
|
-
<dl>
|
|
4984
|
-
<dd>
|
|
4985
|
-
|
|
4986
|
-
**requestOptions:** `CoreMemory.RequestOptions`
|
|
4987
|
-
|
|
4988
|
-
</dd>
|
|
4989
|
-
</dl>
|
|
4990
|
-
</dd>
|
|
4991
|
-
</dl>
|
|
4992
|
-
|
|
4993
|
-
</dd>
|
|
4994
|
-
</dl>
|
|
4995
|
-
</details>
|
|
4996
|
-
|
|
4997
|
-
## Agents ArchivalMemory
|
|
4998
|
-
|
|
4999
|
-
<details><summary><code>client.agents.archivalMemory.<a href="/src/api/resources/agents/resources/archivalMemory/client/Client.ts">list</a>(agentId) -> void</code></summary>
|
|
5000
|
-
<dl>
|
|
5001
|
-
<dd>
|
|
5002
|
-
|
|
5003
|
-
#### 🔌 Usage
|
|
5004
|
-
|
|
5005
|
-
<dl>
|
|
5006
|
-
<dd>
|
|
5007
|
-
|
|
5008
|
-
<dl>
|
|
5009
|
-
<dd>
|
|
5010
|
-
|
|
5011
|
-
```typescript
|
|
5012
|
-
await client.agents.archivalMemory.list("agent_id");
|
|
5013
|
-
```
|
|
5014
|
-
|
|
5015
|
-
</dd>
|
|
5016
|
-
</dl>
|
|
5017
|
-
</dd>
|
|
5018
|
-
</dl>
|
|
5019
|
-
|
|
5020
|
-
#### ⚙️ Parameters
|
|
5021
|
-
|
|
5022
|
-
<dl>
|
|
5023
|
-
<dd>
|
|
5024
|
-
|
|
5025
|
-
<dl>
|
|
5026
|
-
<dd>
|
|
5027
|
-
|
|
5028
|
-
**agentId:** `string`
|
|
5029
|
-
|
|
5030
|
-
</dd>
|
|
5031
|
-
</dl>
|
|
5032
|
-
|
|
5033
|
-
<dl>
|
|
5034
|
-
<dd>
|
|
5035
|
-
|
|
5036
|
-
**requestOptions:** `ArchivalMemory.RequestOptions`
|
|
5037
|
-
|
|
5038
|
-
</dd>
|
|
5039
|
-
</dl>
|
|
5040
|
-
</dd>
|
|
5041
|
-
</dl>
|
|
5042
|
-
|
|
5043
|
-
</dd>
|
|
5044
|
-
</dl>
|
|
5045
|
-
</details>
|
|
5046
|
-
|
|
5047
|
-
<details><summary><code>client.agents.archivalMemory.<a href="/src/api/resources/agents/resources/archivalMemory/client/Client.ts">create</a>(agentId) -> void</code></summary>
|
|
5048
|
-
<dl>
|
|
5049
|
-
<dd>
|
|
5050
|
-
|
|
5051
|
-
#### 🔌 Usage
|
|
5052
|
-
|
|
5053
|
-
<dl>
|
|
5054
|
-
<dd>
|
|
5055
|
-
|
|
5056
|
-
<dl>
|
|
5057
|
-
<dd>
|
|
5058
|
-
|
|
5059
|
-
```typescript
|
|
5060
|
-
await client.agents.archivalMemory.create("agent_id");
|
|
5061
|
-
```
|
|
5062
|
-
|
|
5063
|
-
</dd>
|
|
5064
|
-
</dl>
|
|
5065
|
-
</dd>
|
|
5066
|
-
</dl>
|
|
5067
|
-
|
|
5068
|
-
#### ⚙️ Parameters
|
|
5069
|
-
|
|
5070
|
-
<dl>
|
|
5071
|
-
<dd>
|
|
5072
|
-
|
|
5073
|
-
<dl>
|
|
5074
|
-
<dd>
|
|
5075
|
-
|
|
5076
|
-
**agentId:** `string`
|
|
5077
|
-
|
|
5078
|
-
</dd>
|
|
5079
|
-
</dl>
|
|
5080
|
-
|
|
5081
|
-
<dl>
|
|
5082
|
-
<dd>
|
|
5083
|
-
|
|
5084
|
-
**requestOptions:** `ArchivalMemory.RequestOptions`
|
|
5085
|
-
|
|
5086
|
-
</dd>
|
|
5087
|
-
</dl>
|
|
5088
|
-
</dd>
|
|
5089
|
-
</dl>
|
|
5090
|
-
|
|
5091
|
-
</dd>
|
|
5092
|
-
</dl>
|
|
5093
|
-
</details>
|
|
5094
|
-
|
|
5095
|
-
<details><summary><code>client.agents.archivalMemory.<a href="/src/api/resources/agents/resources/archivalMemory/client/Client.ts">delete</a>(agentId, memoryId) -> void</code></summary>
|
|
5096
|
-
<dl>
|
|
5097
|
-
<dd>
|
|
5098
|
-
|
|
5099
|
-
#### 🔌 Usage
|
|
5100
|
-
|
|
5101
|
-
<dl>
|
|
5102
|
-
<dd>
|
|
5103
|
-
|
|
5104
|
-
<dl>
|
|
5105
|
-
<dd>
|
|
5106
|
-
|
|
5107
|
-
```typescript
|
|
5108
|
-
await client.agents.archivalMemory.delete("agent_id", "memory_id");
|
|
5109
|
-
```
|
|
5110
|
-
|
|
5111
|
-
</dd>
|
|
5112
|
-
</dl>
|
|
5113
|
-
</dd>
|
|
5114
|
-
</dl>
|
|
5115
|
-
|
|
5116
|
-
#### ⚙️ Parameters
|
|
5117
|
-
|
|
5118
|
-
<dl>
|
|
5119
|
-
<dd>
|
|
5120
|
-
|
|
5121
|
-
<dl>
|
|
5122
|
-
<dd>
|
|
5123
|
-
|
|
5124
|
-
**agentId:** `string`
|
|
5125
|
-
|
|
5126
|
-
</dd>
|
|
5127
|
-
</dl>
|
|
5128
|
-
|
|
5129
|
-
<dl>
|
|
5130
|
-
<dd>
|
|
5131
|
-
|
|
5132
|
-
**memoryId:** `string`
|
|
5133
|
-
|
|
5134
|
-
</dd>
|
|
5135
|
-
</dl>
|
|
5136
|
-
|
|
5137
|
-
<dl>
|
|
5138
|
-
<dd>
|
|
5139
|
-
|
|
5140
|
-
**requestOptions:** `ArchivalMemory.RequestOptions`
|
|
5141
|
-
|
|
5142
|
-
</dd>
|
|
5143
|
-
</dl>
|
|
5144
|
-
</dd>
|
|
5145
|
-
</dl>
|
|
5146
|
-
|
|
5147
|
-
</dd>
|
|
5148
|
-
</dl>
|
|
5149
|
-
</details>
|
|
5150
|
-
|
|
5151
4743
|
## Sources Files
|
|
5152
4744
|
|
|
5153
4745
|
<details><summary><code>client.sources.files.<a href="/src/api/resources/sources/resources/files/client/Client.ts">upload</a>(file, sourceId) -> Letta.Job</code></summary>
|