Skip to content

Commit 368b070

Browse files
committed
Release 0.0.5
1 parent 19be60f commit 368b070

87 files changed

Lines changed: 189 additions & 60 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# AgentMail Python Library
1+
# Agentmail Python Library
22

33
[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fagentmail-to%2Fagentmail-python)
44
[![pypi](https://img.shields.io/pypi/v/agentmail)](https://pypi.python.org/pypi/agentmail)
55

6-
The AgentMail Python library provides convenient access to the AgentMail API from Python.
6+
The Agentmail Python library provides convenient access to the Agentmail API from Python.
77

88
## Installation
99

@@ -20,7 +20,7 @@ A full reference for this library is available [here](./reference.md).
2020
Instantiate and use the client with the following:
2121

2222
```python
23-
from agent_mail import AgentMail
23+
from agentmail import AgentMail
2424

2525
client = AgentMail(
2626
api_key="YOUR_API_KEY",
@@ -37,7 +37,7 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
3737
```python
3838
import asyncio
3939

40-
from agent_mail import AsyncAgentMail
40+
from agentmail import AsyncAgentMail
4141

4242
client = AsyncAgentMail(
4343
api_key="YOUR_API_KEY",
@@ -59,7 +59,7 @@ When the API returns a non-success status code (4xx or 5xx response), a subclass
5959
will be thrown.
6060

6161
```python
62-
from agent_mail.core.api_error import ApiError
62+
from agentmail.core.api_error import ApiError
6363

6464
try:
6565
client.inboxes.create(...)
@@ -96,7 +96,7 @@ The SDK defaults to a 60 second timeout. You can configure this with a timeout o
9696

9797
```python
9898

99-
from agent_mail import AgentMail
99+
from agentmail import AgentMail
100100

101101
client = AgentMail(
102102
...,
@@ -116,7 +116,7 @@ You can override the `httpx` client to customize it for your use-case. Some comm
116116
and transports.
117117
```python
118118
import httpx
119-
from agent_mail import AgentMail
119+
from agentmail import AgentMail
120120

121121
client = AgentMail(
122122
...,

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "agentmail"
33

44
[tool.poetry]
55
name = "agentmail"
6-
version = "0.0.4"
6+
version = "0.0.5"
77
description = ""
88
readme = "README.md"
99
authors = []
@@ -27,7 +27,7 @@ classifiers = [
2727
"Typing :: Typed"
2828
]
2929
packages = [
30-
{ include = "agent_mail", from = "src"}
30+
{ include = "agentmail", from = "src"}
3131
]
3232

3333
[project.urls]

reference.md

Lines changed: 78 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Reference
22
## Inboxes
3-
<details><summary><code>client.inboxes.<a href="src/agent_mail/inboxes/client.py">list</a>(...)</code></summary>
3+
<details><summary><code>client.inboxes.<a href="src/agentmail/inboxes/client.py">list</a>(...)</code></summary>
44
<dl>
55
<dd>
66

@@ -13,7 +13,7 @@
1313
<dd>
1414

1515
```python
16-
from agent_mail import AgentMail
16+
from agentmail import AgentMail
1717

1818
client = AgentMail(
1919
api_key="YOUR_API_KEY",
@@ -62,7 +62,7 @@ client.inboxes.list()
6262
</dl>
6363
</details>
6464

65-
<details><summary><code>client.inboxes.<a href="src/agent_mail/inboxes/client.py">get</a>(...)</code></summary>
65+
<details><summary><code>client.inboxes.<a href="src/agentmail/inboxes/client.py">get</a>(...)</code></summary>
6666
<dl>
6767
<dd>
6868

@@ -75,7 +75,7 @@ client.inboxes.list()
7575
<dd>
7676

7777
```python
78-
from agent_mail import AgentMail
78+
from agentmail import AgentMail
7979

8080
client = AgentMail(
8181
api_key="YOUR_API_KEY",
@@ -118,7 +118,7 @@ client.inboxes.get(
118118
</dl>
119119
</details>
120120

121-
<details><summary><code>client.inboxes.<a href="src/agent_mail/inboxes/client.py">create</a>(...)</code></summary>
121+
<details><summary><code>client.inboxes.<a href="src/agentmail/inboxes/client.py">create</a>(...)</code></summary>
122122
<dl>
123123
<dd>
124124

@@ -131,7 +131,7 @@ client.inboxes.get(
131131
<dd>
132132

133133
```python
134-
from agent_mail import AgentMail
134+
from agentmail import AgentMail
135135

136136
client = AgentMail(
137137
api_key="YOUR_API_KEY",
@@ -191,10 +191,24 @@ client.inboxes.create(
191191
</details>
192192

193193
## Messages
194-
<details><summary><code>client.messages.<a href="src/agent_mail/messages/client.py">list</a>(...)</code></summary>
194+
<details><summary><code>client.messages.<a href="src/agentmail/messages/client.py">list</a>(...)</code></summary>
195195
<dl>
196196
<dd>
197197

198+
#### 📝 Description
199+
200+
<dl>
201+
<dd>
202+
203+
<dl>
204+
<dd>
205+
206+
List messages in inbox. If neither or both `received` and `sent` query parameters are set, all messages are returned.
207+
</dd>
208+
</dl>
209+
</dd>
210+
</dl>
211+
198212
#### 🔌 Usage
199213

200214
<dl>
@@ -204,7 +218,7 @@ client.inboxes.create(
204218
<dd>
205219

206220
```python
207-
from agent_mail import AgentMail
221+
from agentmail import AgentMail
208222

209223
client = AgentMail(
210224
api_key="YOUR_API_KEY",
@@ -235,6 +249,22 @@ client.messages.list(
235249
<dl>
236250
<dd>
237251

252+
**received:** `Received`
253+
254+
</dd>
255+
</dl>
256+
257+
<dl>
258+
<dd>
259+
260+
**sent:** `Sent`
261+
262+
</dd>
263+
</dl>
264+
265+
<dl>
266+
<dd>
267+
238268
**limit:** `QueryLimit`
239269

240270
</dd>
@@ -263,7 +293,7 @@ client.messages.list(
263293
</dl>
264294
</details>
265295

266-
<details><summary><code>client.messages.<a href="src/agent_mail/messages/client.py">get</a>(...)</code></summary>
296+
<details><summary><code>client.messages.<a href="src/agentmail/messages/client.py">get</a>(...)</code></summary>
267297
<dl>
268298
<dd>
269299

@@ -276,7 +306,7 @@ client.messages.list(
276306
<dd>
277307

278308
```python
279-
from agent_mail import AgentMail
309+
from agentmail import AgentMail
280310

281311
client = AgentMail(
282312
api_key="YOUR_API_KEY",
@@ -328,7 +358,7 @@ client.messages.get(
328358
</dl>
329359
</details>
330360

331-
<details><summary><code>client.messages.<a href="src/agent_mail/messages/client.py">send</a>(...)</code></summary>
361+
<details><summary><code>client.messages.<a href="src/agentmail/messages/client.py">send</a>(...)</code></summary>
332362
<dl>
333363
<dd>
334364

@@ -341,7 +371,7 @@ client.messages.get(
341371
<dd>
342372

343373
```python
344-
from agent_mail import AgentMail
374+
from agentmail import AgentMail
345375

346376
client = AgentMail(
347377
api_key="YOUR_API_KEY",
@@ -433,7 +463,7 @@ client.messages.send(
433463
</dl>
434464
</details>
435465

436-
<details><summary><code>client.messages.<a href="src/agent_mail/messages/client.py">reply</a>(...)</code></summary>
466+
<details><summary><code>client.messages.<a href="src/agentmail/messages/client.py">reply</a>(...)</code></summary>
437467
<dl>
438468
<dd>
439469

@@ -446,7 +476,7 @@ client.messages.send(
446476
<dd>
447477

448478
```python
449-
from agent_mail import AgentMail
479+
from agentmail import AgentMail
450480

451481
client = AgentMail(
452482
api_key="YOUR_API_KEY",
@@ -539,10 +569,24 @@ client.messages.reply(
539569
</details>
540570

541571
## Threads
542-
<details><summary><code>client.threads.<a href="src/agent_mail/threads/client.py">list</a>(...)</code></summary>
572+
<details><summary><code>client.threads.<a href="src/agentmail/threads/client.py">list</a>(...)</code></summary>
543573
<dl>
544574
<dd>
545575

576+
#### 📝 Description
577+
578+
<dl>
579+
<dd>
580+
581+
<dl>
582+
<dd>
583+
584+
List threads in inbox. If neither or both `received` and `sent` query parameters are set, all threads are returned.
585+
</dd>
586+
</dl>
587+
</dd>
588+
</dl>
589+
546590
#### 🔌 Usage
547591

548592
<dl>
@@ -552,7 +596,7 @@ client.messages.reply(
552596
<dd>
553597

554598
```python
555-
from agent_mail import AgentMail
599+
from agentmail import AgentMail
556600

557601
client = AgentMail(
558602
api_key="YOUR_API_KEY",
@@ -583,6 +627,22 @@ client.threads.list(
583627
<dl>
584628
<dd>
585629

630+
**received:** `Received`
631+
632+
</dd>
633+
</dl>
634+
635+
<dl>
636+
<dd>
637+
638+
**sent:** `Sent`
639+
640+
</dd>
641+
</dl>
642+
643+
<dl>
644+
<dd>
645+
586646
**limit:** `QueryLimit`
587647

588648
</dd>
@@ -611,7 +671,7 @@ client.threads.list(
611671
</dl>
612672
</details>
613673

614-
<details><summary><code>client.threads.<a href="src/agent_mail/threads/client.py">get</a>(...)</code></summary>
674+
<details><summary><code>client.threads.<a href="src/agentmail/threads/client.py">get</a>(...)</code></summary>
615675
<dl>
616676
<dd>
617677

@@ -624,7 +684,7 @@ client.threads.list(
624684
<dd>
625685

626686
```python
627-
from agent_mail import AgentMail
687+
from agentmail import AgentMail
628688

629689
client = AgentMail(
630690
api_key="YOUR_API_KEY",
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file was auto-generated by Fern from our API Definition.
22

3-
from .types import Count, ErrorName, ErrorResponse, LastKey, Limit, QueryLimit, ValidationErrorResponse
3+
from .types import Count, ErrorName, ErrorResponse, LastKey, Limit, QueryLimit, Received, Sent, ValidationErrorResponse
44
from .errors import IsTakenError, NotFoundError, ValidationError
55
from . import inboxes, messages, threads
66
from .client import AgentMail, AsyncAgentMail
@@ -80,12 +80,14 @@
8080
"MessageTo",
8181
"NotFoundError",
8282
"QueryLimit",
83+
"Received",
8384
"ReplyToMessageRequest",
8485
"SendMessageBcc",
8586
"SendMessageCc",
8687
"SendMessageRequest",
8788
"SendMessageResponse",
8889
"SendMessageTo",
90+
"Sent",
8991
"Thread",
9092
"ThreadId",
9193
"ThreadItem",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class AgentMail:
4545
4646
Examples
4747
--------
48-
from agent_mail import AgentMail
48+
from agentmail import AgentMail
4949
5050
client = AgentMail(
5151
api_key="YOUR_API_KEY",
@@ -112,7 +112,7 @@ class AsyncAgentMail:
112112
113113
Examples
114114
--------
115-
from agent_mail import AsyncAgentMail
115+
from agentmail import AsyncAgentMail
116116
117117
client = AsyncAgentMail(
118118
api_key="YOUR_API_KEY",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_headers(self) -> typing.Dict[str, str]:
2222
headers: typing.Dict[str, str] = {
2323
"X-Fern-Language": "Python",
2424
"X-Fern-SDK-Name": "agentmail",
25-
"X-Fern-SDK-Version": "0.0.4",
25+
"X-Fern-SDK-Version": "0.0.5",
2626
}
2727
headers["Authorization"] = f"Bearer {self._get_api_key()}"
2828
return headers

0 commit comments

Comments
 (0)