Skip to content

Commit 35ea1c6

Browse files
committed
Release 0.0.41
1 parent a1c5202 commit 35ea1c6

18 files changed

Lines changed: 7 additions & 1146 deletions

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
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.40"
6+
version = "0.0.41"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 0 additions & 238 deletions
Original file line numberDiff line numberDiff line change
@@ -181,244 +181,6 @@ client.inboxes.create()
181181
</dl>
182182

183183

184-
</dd>
185-
</dl>
186-
</details>
187-
188-
## Contexts
189-
<details><summary><code>client.contexts.<a href="src/agentmail/contexts/client.py">list</a>(...)</code></summary>
190-
<dl>
191-
<dd>
192-
193-
#### 🔌 Usage
194-
195-
<dl>
196-
<dd>
197-
198-
<dl>
199-
<dd>
200-
201-
```python
202-
from agentmail import AgentMail
203-
client = AgentMail(api_key="YOUR_API_KEY", )
204-
client.contexts.list()
205-
206-
```
207-
</dd>
208-
</dl>
209-
</dd>
210-
</dl>
211-
212-
#### ⚙️ Parameters
213-
214-
<dl>
215-
<dd>
216-
217-
<dl>
218-
<dd>
219-
220-
**limit:** `typing.Optional[Limit]`
221-
222-
</dd>
223-
</dl>
224-
225-
<dl>
226-
<dd>
227-
228-
**page_token:** `typing.Optional[PageToken]`
229-
230-
</dd>
231-
</dl>
232-
233-
<dl>
234-
<dd>
235-
236-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
237-
238-
</dd>
239-
</dl>
240-
</dd>
241-
</dl>
242-
243-
244-
</dd>
245-
</dl>
246-
</details>
247-
248-
<details><summary><code>client.contexts.<a href="src/agentmail/contexts/client.py">get</a>(...)</code></summary>
249-
<dl>
250-
<dd>
251-
252-
#### 🔌 Usage
253-
254-
<dl>
255-
<dd>
256-
257-
<dl>
258-
<dd>
259-
260-
```python
261-
from agentmail import AgentMail
262-
client = AgentMail(api_key="YOUR_API_KEY", )
263-
client.contexts.get(context_id='context_id', )
264-
265-
```
266-
</dd>
267-
</dl>
268-
</dd>
269-
</dl>
270-
271-
#### ⚙️ Parameters
272-
273-
<dl>
274-
<dd>
275-
276-
<dl>
277-
<dd>
278-
279-
**context_id:** `ContextId`
280-
281-
</dd>
282-
</dl>
283-
284-
<dl>
285-
<dd>
286-
287-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
288-
289-
</dd>
290-
</dl>
291-
</dd>
292-
</dl>
293-
294-
295-
</dd>
296-
</dl>
297-
</details>
298-
299-
<details><summary><code>client.contexts.<a href="src/agentmail/contexts/client.py">create</a>(...)</code></summary>
300-
<dl>
301-
<dd>
302-
303-
#### 🔌 Usage
304-
305-
<dl>
306-
<dd>
307-
308-
<dl>
309-
<dd>
310-
311-
```python
312-
from agentmail import AgentMail
313-
client = AgentMail(api_key="YOUR_API_KEY", )
314-
client.contexts.create(type='type', data={'data': {'key': 'value'}
315-
}, is_event=True, )
316-
317-
```
318-
</dd>
319-
</dl>
320-
</dd>
321-
</dl>
322-
323-
#### ⚙️ Parameters
324-
325-
<dl>
326-
<dd>
327-
328-
<dl>
329-
<dd>
330-
331-
**type:** `ContextType`
332-
333-
</dd>
334-
</dl>
335-
336-
<dl>
337-
<dd>
338-
339-
**data:** `ContextData`
340-
341-
</dd>
342-
</dl>
343-
344-
<dl>
345-
<dd>
346-
347-
**is_event:** `ContextIsEvent`
348-
349-
</dd>
350-
</dl>
351-
352-
<dl>
353-
<dd>
354-
355-
**metadata:** `typing.Optional[ContextMetadata]`
356-
357-
</dd>
358-
</dl>
359-
360-
<dl>
361-
<dd>
362-
363-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
364-
365-
</dd>
366-
</dl>
367-
</dd>
368-
</dl>
369-
370-
371-
</dd>
372-
</dl>
373-
</details>
374-
375-
<details><summary><code>client.contexts.<a href="src/agentmail/contexts/client.py">delete</a>(...)</code></summary>
376-
<dl>
377-
<dd>
378-
379-
#### 🔌 Usage
380-
381-
<dl>
382-
<dd>
383-
384-
<dl>
385-
<dd>
386-
387-
```python
388-
from agentmail import AgentMail
389-
client = AgentMail(api_key="YOUR_API_KEY", )
390-
client.contexts.delete(context_id='context_id', )
391-
392-
```
393-
</dd>
394-
</dl>
395-
</dd>
396-
</dl>
397-
398-
#### ⚙️ Parameters
399-
400-
<dl>
401-
<dd>
402-
403-
<dl>
404-
<dd>
405-
406-
**context_id:** `ContextId`
407-
408-
</dd>
409-
</dl>
410-
411-
<dl>
412-
<dd>
413-
414-
**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.
415-
416-
</dd>
417-
</dl>
418-
</dd>
419-
</dl>
420-
421-
422184
</dd>
423185
</dl>
424186
</details>

src/agentmail/__init__.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
ValidationErrorResponse,
1515
)
1616
from .errors import IsTakenError, NotFoundError, ValidationError
17-
from . import attachments, contexts, domains, drafts, inboxes, messages, threads, webhooks
17+
from . import attachments, domains, drafts, inboxes, messages, threads, webhooks
1818
from .attachments import (
1919
Attachment,
2020
AttachmentContent,
@@ -26,16 +26,6 @@
2626
SendAttachment,
2727
)
2828
from .client import AgentMail, AsyncAgentMail
29-
from .contexts import (
30-
Context,
31-
ContextData,
32-
ContextId,
33-
ContextIsEvent,
34-
ContextMetadata,
35-
ContextType,
36-
CreateContextRequest,
37-
ListContextsResponse,
38-
)
3929
from .domains import (
4030
CreateDomainRequest,
4131
CreateDomainResponse,
@@ -142,14 +132,7 @@
142132
"AttachmentInline",
143133
"AttachmentSize",
144134
"ClientId",
145-
"Context",
146-
"ContextData",
147-
"ContextId",
148-
"ContextIsEvent",
149-
"ContextMetadata",
150-
"ContextType",
151135
"Count",
152-
"CreateContextRequest",
153136
"CreateDomainRequest",
154137
"CreateDomainResponse",
155138
"CreateDraftRequest",
@@ -181,7 +164,6 @@
181164
"IsTakenError",
182165
"Labels",
183166
"Limit",
184-
"ListContextsResponse",
185167
"ListDomainsResponse",
186168
"ListDraftsResponse",
187169
"ListMessagesResponse",
@@ -241,7 +223,6 @@
241223
"WebhookId",
242224
"__version__",
243225
"attachments",
244-
"contexts",
245226
"domains",
246227
"drafts",
247228
"inboxes",

src/agentmail/client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import typing
55

66
import httpx
7-
from .contexts.client import AsyncContextsClient, ContextsClient
87
from .core.api_error import ApiError
98
from .core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
109
from .domains.client import AsyncDomainsClient, DomainsClient
@@ -75,7 +74,6 @@ def __init__(
7574
timeout=_defaulted_timeout,
7675
)
7776
self.inboxes = InboxesClient(client_wrapper=self._client_wrapper)
78-
self.contexts = ContextsClient(client_wrapper=self._client_wrapper)
7977
self.domains = DomainsClient(client_wrapper=self._client_wrapper)
8078
self.drafts = DraftsClient(client_wrapper=self._client_wrapper)
8179
self.threads = ThreadsClient(client_wrapper=self._client_wrapper)
@@ -142,7 +140,6 @@ def __init__(
142140
timeout=_defaulted_timeout,
143141
)
144142
self.inboxes = AsyncInboxesClient(client_wrapper=self._client_wrapper)
145-
self.contexts = AsyncContextsClient(client_wrapper=self._client_wrapper)
146143
self.domains = AsyncDomainsClient(client_wrapper=self._client_wrapper)
147144
self.drafts = AsyncDraftsClient(client_wrapper=self._client_wrapper)
148145
self.threads = AsyncThreadsClient(client_wrapper=self._client_wrapper)

src/agentmail/contexts/__init__.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)