@letta-ai/letta-client 0.1.103 → 0.1.104
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 +11 -0
- package/api/resources/agents/client/Client.js +72 -8
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +5 -5
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/api/resources/embeddings/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +5 -5
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +11 -0
- package/api/resources/identities/client/Client.js +70 -6
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +4 -4
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.d.ts +11 -0
- package/api/resources/sources/client/Client.js +70 -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/steps/client/Client.js +3 -3
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +11 -0
- package/api/resources/tools/client/Client.js +80 -16
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/MessageCreate.d.ts +2 -0
- package/api/types/OmittedReasoningContent.d.ts +0 -2
- package/api/types/UsageStatistics.d.ts +3 -0
- package/api/types/UsageStatisticsCompletionTokenDetails.d.ts +6 -0
- package/api/types/UsageStatisticsCompletionTokenDetails.js +5 -0
- package/api/types/UsageStatisticsPromptTokenDetails.d.ts +6 -0
- package/api/types/UsageStatisticsPromptTokenDetails.js +5 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/api/resources/agents/client/Client.d.ts +11 -0
- package/dist/api/resources/agents/client/Client.js +72 -8
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
- package/dist/api/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +5 -5
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +11 -0
- package/dist/api/resources/identities/client/Client.js +70 -6
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +4 -4
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.d.ts +11 -0
- package/dist/api/resources/sources/client/Client.js +70 -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/steps/client/Client.js +3 -3
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +11 -0
- package/dist/api/resources/tools/client/Client.js +80 -16
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/MessageCreate.d.ts +2 -0
- package/dist/api/types/OmittedReasoningContent.d.ts +0 -2
- package/dist/api/types/UsageStatistics.d.ts +3 -0
- package/dist/api/types/UsageStatisticsCompletionTokenDetails.d.ts +6 -0
- package/dist/api/types/UsageStatisticsCompletionTokenDetails.js +5 -0
- package/dist/api/types/UsageStatisticsPromptTokenDetails.d.ts +6 -0
- package/dist/api/types/UsageStatisticsPromptTokenDetails.js +5 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/client/count.d.ts +9 -0
- package/dist/serialization/resources/agents/client/count.js +41 -0
- package/dist/serialization/resources/agents/client/index.d.ts +1 -0
- package/dist/serialization/resources/agents/client/index.js +2 -1
- package/dist/serialization/resources/identities/client/count.d.ts +9 -0
- package/dist/serialization/resources/identities/client/count.js +41 -0
- package/dist/serialization/resources/identities/client/index.d.ts +1 -0
- package/dist/serialization/resources/identities/client/index.js +2 -1
- package/dist/serialization/resources/sources/client/count.d.ts +9 -0
- package/dist/serialization/resources/sources/client/count.js +41 -0
- package/dist/serialization/resources/sources/client/index.d.ts +1 -0
- package/dist/serialization/resources/sources/client/index.js +2 -1
- package/dist/serialization/resources/tools/client/count.d.ts +9 -0
- package/dist/serialization/resources/tools/client/count.js +41 -0
- package/dist/serialization/resources/tools/client/index.d.ts +1 -0
- package/dist/serialization/resources/tools/client/index.js +2 -1
- package/dist/serialization/types/MessageCreate.d.ts +1 -0
- package/dist/serialization/types/MessageCreate.js +1 -0
- package/dist/serialization/types/OmittedReasoningContent.d.ts +0 -1
- package/dist/serialization/types/OmittedReasoningContent.js +0 -1
- package/dist/serialization/types/UsageStatistics.d.ts +4 -0
- package/dist/serialization/types/UsageStatistics.js +4 -0
- package/dist/serialization/types/UsageStatisticsCompletionTokenDetails.d.ts +12 -0
- package/dist/serialization/types/UsageStatisticsCompletionTokenDetails.js +43 -0
- package/dist/serialization/types/UsageStatisticsPromptTokenDetails.d.ts +12 -0
- package/dist/serialization/types/UsageStatisticsPromptTokenDetails.js +43 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +220 -0
- package/serialization/resources/agents/client/count.d.ts +9 -0
- package/serialization/resources/agents/client/count.js +41 -0
- package/serialization/resources/agents/client/index.d.ts +1 -0
- package/serialization/resources/agents/client/index.js +2 -1
- package/serialization/resources/identities/client/count.d.ts +9 -0
- package/serialization/resources/identities/client/count.js +41 -0
- package/serialization/resources/identities/client/index.d.ts +1 -0
- package/serialization/resources/identities/client/index.js +2 -1
- package/serialization/resources/sources/client/count.d.ts +9 -0
- package/serialization/resources/sources/client/count.js +41 -0
- package/serialization/resources/sources/client/index.d.ts +1 -0
- package/serialization/resources/sources/client/index.js +2 -1
- package/serialization/resources/tools/client/count.d.ts +9 -0
- package/serialization/resources/tools/client/count.js +41 -0
- package/serialization/resources/tools/client/index.d.ts +1 -0
- package/serialization/resources/tools/client/index.js +2 -1
- package/serialization/types/MessageCreate.d.ts +1 -0
- package/serialization/types/MessageCreate.js +1 -0
- package/serialization/types/OmittedReasoningContent.d.ts +0 -1
- package/serialization/types/OmittedReasoningContent.js +0 -1
- package/serialization/types/UsageStatistics.d.ts +4 -0
- package/serialization/types/UsageStatistics.js +4 -0
- package/serialization/types/UsageStatisticsCompletionTokenDetails.d.ts +12 -0
- package/serialization/types/UsageStatisticsCompletionTokenDetails.js +43 -0
- package/serialization/types/UsageStatisticsPromptTokenDetails.d.ts +12 -0
- package/serialization/types/UsageStatisticsPromptTokenDetails.js +43 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/reference.md
CHANGED
|
@@ -392,6 +392,61 @@ await client.tools.upsert({
|
|
|
392
392
|
</dl>
|
|
393
393
|
</details>
|
|
394
394
|
|
|
395
|
+
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">count</a>() -> number</code></summary>
|
|
396
|
+
<dl>
|
|
397
|
+
<dd>
|
|
398
|
+
|
|
399
|
+
#### 📝 Description
|
|
400
|
+
|
|
401
|
+
<dl>
|
|
402
|
+
<dd>
|
|
403
|
+
|
|
404
|
+
<dl>
|
|
405
|
+
<dd>
|
|
406
|
+
|
|
407
|
+
Get a count of all tools available to agents belonging to the org of the user
|
|
408
|
+
|
|
409
|
+
</dd>
|
|
410
|
+
</dl>
|
|
411
|
+
</dd>
|
|
412
|
+
</dl>
|
|
413
|
+
|
|
414
|
+
#### 🔌 Usage
|
|
415
|
+
|
|
416
|
+
<dl>
|
|
417
|
+
<dd>
|
|
418
|
+
|
|
419
|
+
<dl>
|
|
420
|
+
<dd>
|
|
421
|
+
|
|
422
|
+
```typescript
|
|
423
|
+
await client.tools.count();
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
</dd>
|
|
427
|
+
</dl>
|
|
428
|
+
</dd>
|
|
429
|
+
</dl>
|
|
430
|
+
|
|
431
|
+
#### ⚙️ Parameters
|
|
432
|
+
|
|
433
|
+
<dl>
|
|
434
|
+
<dd>
|
|
435
|
+
|
|
436
|
+
<dl>
|
|
437
|
+
<dd>
|
|
438
|
+
|
|
439
|
+
**requestOptions:** `Tools.RequestOptions`
|
|
440
|
+
|
|
441
|
+
</dd>
|
|
442
|
+
</dl>
|
|
443
|
+
</dd>
|
|
444
|
+
</dl>
|
|
445
|
+
|
|
446
|
+
</dd>
|
|
447
|
+
</dl>
|
|
448
|
+
</details>
|
|
449
|
+
|
|
395
450
|
<details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">upsertBaseTools</a>() -> Letta.Tool[]</code></summary>
|
|
396
451
|
<dl>
|
|
397
452
|
<dd>
|
|
@@ -1413,6 +1468,61 @@ await client.sources.create({
|
|
|
1413
1468
|
</dl>
|
|
1414
1469
|
</details>
|
|
1415
1470
|
|
|
1471
|
+
<details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">count</a>() -> number</code></summary>
|
|
1472
|
+
<dl>
|
|
1473
|
+
<dd>
|
|
1474
|
+
|
|
1475
|
+
#### 📝 Description
|
|
1476
|
+
|
|
1477
|
+
<dl>
|
|
1478
|
+
<dd>
|
|
1479
|
+
|
|
1480
|
+
<dl>
|
|
1481
|
+
<dd>
|
|
1482
|
+
|
|
1483
|
+
Count all data sources created by a user.
|
|
1484
|
+
|
|
1485
|
+
</dd>
|
|
1486
|
+
</dl>
|
|
1487
|
+
</dd>
|
|
1488
|
+
</dl>
|
|
1489
|
+
|
|
1490
|
+
#### 🔌 Usage
|
|
1491
|
+
|
|
1492
|
+
<dl>
|
|
1493
|
+
<dd>
|
|
1494
|
+
|
|
1495
|
+
<dl>
|
|
1496
|
+
<dd>
|
|
1497
|
+
|
|
1498
|
+
```typescript
|
|
1499
|
+
await client.sources.count();
|
|
1500
|
+
```
|
|
1501
|
+
|
|
1502
|
+
</dd>
|
|
1503
|
+
</dl>
|
|
1504
|
+
</dd>
|
|
1505
|
+
</dl>
|
|
1506
|
+
|
|
1507
|
+
#### ⚙️ Parameters
|
|
1508
|
+
|
|
1509
|
+
<dl>
|
|
1510
|
+
<dd>
|
|
1511
|
+
|
|
1512
|
+
<dl>
|
|
1513
|
+
<dd>
|
|
1514
|
+
|
|
1515
|
+
**requestOptions:** `Sources.RequestOptions`
|
|
1516
|
+
|
|
1517
|
+
</dd>
|
|
1518
|
+
</dl>
|
|
1519
|
+
</dd>
|
|
1520
|
+
</dl>
|
|
1521
|
+
|
|
1522
|
+
</dd>
|
|
1523
|
+
</dl>
|
|
1524
|
+
</details>
|
|
1525
|
+
|
|
1416
1526
|
## Agents
|
|
1417
1527
|
|
|
1418
1528
|
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">list</a>({ ...params }) -> Letta.AgentState[]</code></summary>
|
|
@@ -1544,6 +1654,61 @@ await client.agents.create();
|
|
|
1544
1654
|
</dl>
|
|
1545
1655
|
</details>
|
|
1546
1656
|
|
|
1657
|
+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">count</a>() -> number</code></summary>
|
|
1658
|
+
<dl>
|
|
1659
|
+
<dd>
|
|
1660
|
+
|
|
1661
|
+
#### 📝 Description
|
|
1662
|
+
|
|
1663
|
+
<dl>
|
|
1664
|
+
<dd>
|
|
1665
|
+
|
|
1666
|
+
<dl>
|
|
1667
|
+
<dd>
|
|
1668
|
+
|
|
1669
|
+
Get the count of all agents associated with a given user.
|
|
1670
|
+
|
|
1671
|
+
</dd>
|
|
1672
|
+
</dl>
|
|
1673
|
+
</dd>
|
|
1674
|
+
</dl>
|
|
1675
|
+
|
|
1676
|
+
#### 🔌 Usage
|
|
1677
|
+
|
|
1678
|
+
<dl>
|
|
1679
|
+
<dd>
|
|
1680
|
+
|
|
1681
|
+
<dl>
|
|
1682
|
+
<dd>
|
|
1683
|
+
|
|
1684
|
+
```typescript
|
|
1685
|
+
await client.agents.count();
|
|
1686
|
+
```
|
|
1687
|
+
|
|
1688
|
+
</dd>
|
|
1689
|
+
</dl>
|
|
1690
|
+
</dd>
|
|
1691
|
+
</dl>
|
|
1692
|
+
|
|
1693
|
+
#### ⚙️ Parameters
|
|
1694
|
+
|
|
1695
|
+
<dl>
|
|
1696
|
+
<dd>
|
|
1697
|
+
|
|
1698
|
+
<dl>
|
|
1699
|
+
<dd>
|
|
1700
|
+
|
|
1701
|
+
**requestOptions:** `Agents.RequestOptions`
|
|
1702
|
+
|
|
1703
|
+
</dd>
|
|
1704
|
+
</dl>
|
|
1705
|
+
</dd>
|
|
1706
|
+
</dl>
|
|
1707
|
+
|
|
1708
|
+
</dd>
|
|
1709
|
+
</dl>
|
|
1710
|
+
</details>
|
|
1711
|
+
|
|
1547
1712
|
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">exportFile</a>(agentId) -> string</code></summary>
|
|
1548
1713
|
<dl>
|
|
1549
1714
|
<dd>
|
|
@@ -2437,6 +2602,61 @@ await client.identities.upsert({
|
|
|
2437
2602
|
</dl>
|
|
2438
2603
|
</details>
|
|
2439
2604
|
|
|
2605
|
+
<details><summary><code>client.identities.<a href="/src/api/resources/identities/client/Client.ts">count</a>() -> number</code></summary>
|
|
2606
|
+
<dl>
|
|
2607
|
+
<dd>
|
|
2608
|
+
|
|
2609
|
+
#### 📝 Description
|
|
2610
|
+
|
|
2611
|
+
<dl>
|
|
2612
|
+
<dd>
|
|
2613
|
+
|
|
2614
|
+
<dl>
|
|
2615
|
+
<dd>
|
|
2616
|
+
|
|
2617
|
+
Get count of all identities for a user
|
|
2618
|
+
|
|
2619
|
+
</dd>
|
|
2620
|
+
</dl>
|
|
2621
|
+
</dd>
|
|
2622
|
+
</dl>
|
|
2623
|
+
|
|
2624
|
+
#### 🔌 Usage
|
|
2625
|
+
|
|
2626
|
+
<dl>
|
|
2627
|
+
<dd>
|
|
2628
|
+
|
|
2629
|
+
<dl>
|
|
2630
|
+
<dd>
|
|
2631
|
+
|
|
2632
|
+
```typescript
|
|
2633
|
+
await client.identities.count();
|
|
2634
|
+
```
|
|
2635
|
+
|
|
2636
|
+
</dd>
|
|
2637
|
+
</dl>
|
|
2638
|
+
</dd>
|
|
2639
|
+
</dl>
|
|
2640
|
+
|
|
2641
|
+
#### ⚙️ Parameters
|
|
2642
|
+
|
|
2643
|
+
<dl>
|
|
2644
|
+
<dd>
|
|
2645
|
+
|
|
2646
|
+
<dl>
|
|
2647
|
+
<dd>
|
|
2648
|
+
|
|
2649
|
+
**requestOptions:** `Identities.RequestOptions`
|
|
2650
|
+
|
|
2651
|
+
</dd>
|
|
2652
|
+
</dl>
|
|
2653
|
+
</dd>
|
|
2654
|
+
</dl>
|
|
2655
|
+
|
|
2656
|
+
</dd>
|
|
2657
|
+
</dl>
|
|
2658
|
+
</details>
|
|
2659
|
+
|
|
2440
2660
|
<details><summary><code>client.identities.<a href="/src/api/resources/identities/client/Client.ts">retrieve</a>(identityId) -> Letta.Identity</code></summary>
|
|
2441
2661
|
<dl>
|
|
2442
2662
|
<dd>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.agents.count.Response.Raw, number>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.number();
|
|
@@ -36,7 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.exportFile = exports.list = void 0;
|
|
39
|
+
exports.exportFile = exports.count = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
exports.count = __importStar(require("./count"));
|
|
41
42
|
exports.exportFile = __importStar(require("./exportFile"));
|
|
42
43
|
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.identities.count.Response.Raw, number>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.number();
|
|
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.list = void 0;
|
|
39
|
+
exports.count = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
exports.count = __importStar(require("./count"));
|
|
41
42
|
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.sources.count.Response.Raw, number>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.number();
|
|
@@ -36,7 +36,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.list = exports.retrieveByName = void 0;
|
|
39
|
+
exports.count = exports.list = exports.retrieveByName = void 0;
|
|
40
40
|
exports.retrieveByName = __importStar(require("./retrieveByName"));
|
|
41
41
|
exports.list = __importStar(require("./list"));
|
|
42
|
+
exports.count = __importStar(require("./count"));
|
|
42
43
|
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.tools.count.Response.Raw, number>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Response = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../core"));
|
|
41
|
+
exports.Response = core.serialization.number();
|
|
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.deleteMcpServer = exports.listMcpToolsByServer = exports.addMcpServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.upsertBaseTools = exports.list = void 0;
|
|
39
|
+
exports.deleteMcpServer = exports.listMcpToolsByServer = exports.addMcpServer = exports.listMcpServers = exports.listComposioActionsByApp = exports.listComposioApps = exports.upsertBaseTools = exports.count = exports.list = void 0;
|
|
40
40
|
exports.list = __importStar(require("./list"));
|
|
41
|
+
exports.count = __importStar(require("./count"));
|
|
41
42
|
exports.upsertBaseTools = __importStar(require("./upsertBaseTools"));
|
|
42
43
|
exports.listComposioApps = __importStar(require("./listComposioApps"));
|
|
43
44
|
exports.listComposioActionsByApp = __importStar(require("./listComposioActionsByApp"));
|
|
@@ -46,4 +46,5 @@ exports.MessageCreate = core.serialization.object({
|
|
|
46
46
|
name: core.serialization.string().optional(),
|
|
47
47
|
otid: core.serialization.string().optional(),
|
|
48
48
|
senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
|
|
49
|
+
groupId: core.serialization.property("group_id", core.serialization.string().optional()),
|
|
49
50
|
});
|
|
@@ -40,5 +40,4 @@ exports.OmittedReasoningContent = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.OmittedReasoningContent = core.serialization.object({
|
|
42
42
|
type: core.serialization.stringLiteral("omitted_reasoning"),
|
|
43
|
-
tokens: core.serialization.number(),
|
|
44
43
|
});
|
|
@@ -4,11 +4,15 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Letta from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { UsageStatisticsPromptTokenDetails } from "./UsageStatisticsPromptTokenDetails";
|
|
8
|
+
import { UsageStatisticsCompletionTokenDetails } from "./UsageStatisticsCompletionTokenDetails";
|
|
7
9
|
export declare const UsageStatistics: core.serialization.ObjectSchema<serializers.UsageStatistics.Raw, Letta.UsageStatistics>;
|
|
8
10
|
export declare namespace UsageStatistics {
|
|
9
11
|
interface Raw {
|
|
10
12
|
completion_tokens?: number | null;
|
|
11
13
|
prompt_tokens?: number | null;
|
|
12
14
|
total_tokens?: number | null;
|
|
15
|
+
prompt_tokens_details?: UsageStatisticsPromptTokenDetails.Raw | null;
|
|
16
|
+
completion_tokens_details?: UsageStatisticsCompletionTokenDetails.Raw | null;
|
|
13
17
|
}
|
|
14
18
|
}
|
|
@@ -38,8 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.UsageStatistics = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
|
+
const UsageStatisticsPromptTokenDetails_1 = require("./UsageStatisticsPromptTokenDetails");
|
|
42
|
+
const UsageStatisticsCompletionTokenDetails_1 = require("./UsageStatisticsCompletionTokenDetails");
|
|
41
43
|
exports.UsageStatistics = core.serialization.object({
|
|
42
44
|
completionTokens: core.serialization.property("completion_tokens", core.serialization.number().optional()),
|
|
43
45
|
promptTokens: core.serialization.property("prompt_tokens", core.serialization.number().optional()),
|
|
44
46
|
totalTokens: core.serialization.property("total_tokens", core.serialization.number().optional()),
|
|
47
|
+
promptTokensDetails: core.serialization.property("prompt_tokens_details", UsageStatisticsPromptTokenDetails_1.UsageStatisticsPromptTokenDetails.optional()),
|
|
48
|
+
completionTokensDetails: core.serialization.property("completion_tokens_details", UsageStatisticsCompletionTokenDetails_1.UsageStatisticsCompletionTokenDetails.optional()),
|
|
45
49
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const UsageStatisticsCompletionTokenDetails: core.serialization.ObjectSchema<serializers.UsageStatisticsCompletionTokenDetails.Raw, Letta.UsageStatisticsCompletionTokenDetails>;
|
|
8
|
+
export declare namespace UsageStatisticsCompletionTokenDetails {
|
|
9
|
+
interface Raw {
|
|
10
|
+
reasoning_tokens?: number | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UsageStatisticsCompletionTokenDetails = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.UsageStatisticsCompletionTokenDetails = core.serialization.object({
|
|
42
|
+
reasoningTokens: core.serialization.property("reasoning_tokens", core.serialization.number().optional()),
|
|
43
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Letta from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const UsageStatisticsPromptTokenDetails: core.serialization.ObjectSchema<serializers.UsageStatisticsPromptTokenDetails.Raw, Letta.UsageStatisticsPromptTokenDetails>;
|
|
8
|
+
export declare namespace UsageStatisticsPromptTokenDetails {
|
|
9
|
+
interface Raw {
|
|
10
|
+
cached_tokens?: number | null;
|
|
11
|
+
}
|
|
12
|
+
}
|