Skip to content

Commit 1bd770d

Browse files
committed
Release 0.0.13
1 parent 99e4e59 commit 1bd770d

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

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.12"
6+
version = "0.0.13"
77
description = ""
88
readme = "README.md"
99
authors = []

src/agentmail/core/client_wrapper.py

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.12",
25+
"X-Fern-SDK-Version": "0.0.13",
2626
}
2727
headers["Authorization"] = f"Bearer {self._get_api_key()}"
2828
return headers

src/agentmail/messages/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def send(
280280
)
281281
"""
282282
_response = self._client_wrapper.httpx_client.request(
283-
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages",
283+
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages/send",
284284
method="POST",
285285
json={
286286
"to": convert_and_respect_annotation_metadata(object_=to, annotation=SendMessageTo, direction="write"),
@@ -382,7 +382,7 @@ def reply(
382382
)
383383
"""
384384
_response = self._client_wrapper.httpx_client.request(
385-
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages/{jsonable_encoder(message_id)}",
385+
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages/{jsonable_encoder(message_id)}/reply",
386386
method="POST",
387387
json={
388388
"to": convert_and_respect_annotation_metadata(object_=to, annotation=SendMessageTo, direction="write"),
@@ -701,7 +701,7 @@ async def main() -> None:
701701
asyncio.run(main())
702702
"""
703703
_response = await self._client_wrapper.httpx_client.request(
704-
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages",
704+
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages/send",
705705
method="POST",
706706
json={
707707
"to": convert_and_respect_annotation_metadata(object_=to, annotation=SendMessageTo, direction="write"),
@@ -811,7 +811,7 @@ async def main() -> None:
811811
asyncio.run(main())
812812
"""
813813
_response = await self._client_wrapper.httpx_client.request(
814-
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages/{jsonable_encoder(message_id)}",
814+
f"v0/inboxes/{jsonable_encoder(inbox_id)}/messages/{jsonable_encoder(message_id)}/reply",
815815
method="POST",
816816
json={
817817
"to": convert_and_respect_annotation_metadata(object_=to, annotation=SendMessageTo, direction="write"),

0 commit comments

Comments
 (0)