Skip to content

Commit 8366763

Browse files
committed
Release 0.1.127
1 parent 69fde4b commit 8366763

15 files changed

+754
-15
lines changed

poetry.lock

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "letta-client"
33

44
[tool.poetry]
55
name = "letta-client"
6-
version = "0.1.126"
6+
version = "0.1.127"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

+240
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,66 @@ client.tools.upsert(
582582
</dl>
583583

584584

585+
</dd>
586+
</dl>
587+
</details>
588+
589+
<details><summary><code>client.tools.<a href="src/letta_client/tools/client.py">count</a>()</code></summary>
590+
<dl>
591+
<dd>
592+
593+
#### 📝 Description
594+
595+
<dl>
596+
<dd>
597+
598+
<dl>
599+
<dd>
600+
601+
Get a count of all tools available to agents belonging to the org of the user
602+
</dd>
603+
</dl>
604+
</dd>
605+
</dl>
606+
607+
#### 🔌 Usage
608+
609+
<dl>
610+
<dd>
611+
612+
<dl>
613+
<dd>
614+
615+
```python
616+
from letta_client import Letta
617+
618+
client = Letta(
619+
token="YOUR_TOKEN",
620+
)
621+
client.tools.count()
622+
623+
```
624+
</dd>
625+
</dl>
626+
</dd>
627+
</dl>
628+
629+
#### ⚙️ Parameters
630+
631+
<dl>
632+
<dd>
633+
634+
<dl>
635+
<dd>
636+
637+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
638+
639+
</dd>
640+
</dl>
641+
</dd>
642+
</dl>
643+
644+
585645
</dd>
586646
</dl>
587647
</details>
@@ -1813,6 +1873,66 @@ client.sources.create(
18131873
</dl>
18141874

18151875

1876+
</dd>
1877+
</dl>
1878+
</details>
1879+
1880+
<details><summary><code>client.sources.<a href="src/letta_client/sources/client.py">count</a>()</code></summary>
1881+
<dl>
1882+
<dd>
1883+
1884+
#### 📝 Description
1885+
1886+
<dl>
1887+
<dd>
1888+
1889+
<dl>
1890+
<dd>
1891+
1892+
Count all data sources created by a user.
1893+
</dd>
1894+
</dl>
1895+
</dd>
1896+
</dl>
1897+
1898+
#### 🔌 Usage
1899+
1900+
<dl>
1901+
<dd>
1902+
1903+
<dl>
1904+
<dd>
1905+
1906+
```python
1907+
from letta_client import Letta
1908+
1909+
client = Letta(
1910+
token="YOUR_TOKEN",
1911+
)
1912+
client.sources.count()
1913+
1914+
```
1915+
</dd>
1916+
</dl>
1917+
</dd>
1918+
</dl>
1919+
1920+
#### ⚙️ Parameters
1921+
1922+
<dl>
1923+
<dd>
1924+
1925+
<dl>
1926+
<dd>
1927+
1928+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
1929+
1930+
</dd>
1931+
</dl>
1932+
</dd>
1933+
</dl>
1934+
1935+
18161936
</dd>
18171937
</dl>
18181938
</details>
@@ -2353,6 +2473,66 @@ client.agents.create()
23532473
</dl>
23542474

23552475

2476+
</dd>
2477+
</dl>
2478+
</details>
2479+
2480+
<details><summary><code>client.agents.<a href="src/letta_client/agents/client.py">count</a>()</code></summary>
2481+
<dl>
2482+
<dd>
2483+
2484+
#### 📝 Description
2485+
2486+
<dl>
2487+
<dd>
2488+
2489+
<dl>
2490+
<dd>
2491+
2492+
Get the count of all agents associated with a given user.
2493+
</dd>
2494+
</dl>
2495+
</dd>
2496+
</dl>
2497+
2498+
#### 🔌 Usage
2499+
2500+
<dl>
2501+
<dd>
2502+
2503+
<dl>
2504+
<dd>
2505+
2506+
```python
2507+
from letta_client import Letta
2508+
2509+
client = Letta(
2510+
token="YOUR_TOKEN",
2511+
)
2512+
client.agents.count()
2513+
2514+
```
2515+
</dd>
2516+
</dl>
2517+
</dd>
2518+
</dl>
2519+
2520+
#### ⚙️ Parameters
2521+
2522+
<dl>
2523+
<dd>
2524+
2525+
<dl>
2526+
<dd>
2527+
2528+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
2529+
2530+
</dd>
2531+
</dl>
2532+
</dd>
2533+
</dl>
2534+
2535+
23562536
</dd>
23572537
</dl>
23582538
</details>
@@ -3812,6 +3992,66 @@ client.identities.upsert(
38123992
</dl>
38133993

38143994

3995+
</dd>
3996+
</dl>
3997+
</details>
3998+
3999+
<details><summary><code>client.identities.<a href="src/letta_client/identities/client.py">count</a>()</code></summary>
4000+
<dl>
4001+
<dd>
4002+
4003+
#### 📝 Description
4004+
4005+
<dl>
4006+
<dd>
4007+
4008+
<dl>
4009+
<dd>
4010+
4011+
Get count of all identities for a user
4012+
</dd>
4013+
</dl>
4014+
</dd>
4015+
</dl>
4016+
4017+
#### 🔌 Usage
4018+
4019+
<dl>
4020+
<dd>
4021+
4022+
<dl>
4023+
<dd>
4024+
4025+
```python
4026+
from letta_client import Letta
4027+
4028+
client = Letta(
4029+
token="YOUR_TOKEN",
4030+
)
4031+
client.identities.count()
4032+
4033+
```
4034+
</dd>
4035+
</dl>
4036+
</dd>
4037+
</dl>
4038+
4039+
#### ⚙️ Parameters
4040+
4041+
<dl>
4042+
<dd>
4043+
4044+
<dl>
4045+
<dd>
4046+
4047+
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
4048+
4049+
</dd>
4050+
</dl>
4051+
</dd>
4052+
</dl>
4053+
4054+
38154055
</dd>
38164056
</dl>
38174057
</details>

src/letta_client/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@
213213
UpdateUserMessage,
214214
UpdateUserMessageContent,
215215
UsageStatistics,
216+
UsageStatisticsCompletionTokenDetails,
217+
UsageStatisticsPromptTokenDetails,
216218
User,
217219
UserCreate,
218220
UserMessage,
@@ -531,6 +533,8 @@
531533
"UpdateUserMessage",
532534
"UpdateUserMessageContent",
533535
"UsageStatistics",
536+
"UsageStatisticsCompletionTokenDetails",
537+
"UsageStatisticsPromptTokenDetails",
534538
"User",
535539
"UserCreate",
536540
"UserMessage",

0 commit comments

Comments
 (0)