Skip to content

Commit fb0f32d

Browse files
Release 0.2.13
1 parent b05bee9 commit fb0f32d

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
},
1010
"should_generate_websocket_clients": true
1111
},
12-
"sdkVersion": "0.2.12"
12+
"sdkVersion": "0.2.13"
1313
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44

55
[tool.poetry]
66
name = "agentmail"
7-
version = "0.2.12"
7+
version = "0.2.13"
88
description = ""
99
readme = "README.md"
1010
authors = []

src/agentmail/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class AgentMail:
3434
3535
3636
37-
Defaults to AgentMailEnvironment.PRODUCTION
37+
Defaults to AgentMailEnvironment.PROD
3838
3939
4040
@@ -63,7 +63,7 @@ class AgentMail:
6363
def __init__(
6464
self,
6565
*,
66-
environment: AgentMailEnvironment = AgentMailEnvironment.PRODUCTION,
66+
environment: AgentMailEnvironment = AgentMailEnvironment.PROD,
6767
api_key: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("AGENTMAIL_API_KEY"),
6868
headers: typing.Optional[typing.Dict[str, str]] = None,
6969
timeout: typing.Optional[float] = None,
@@ -191,7 +191,7 @@ class AsyncAgentMail:
191191
192192
193193
194-
Defaults to AgentMailEnvironment.PRODUCTION
194+
Defaults to AgentMailEnvironment.PROD
195195
196196
197197
@@ -220,7 +220,7 @@ class AsyncAgentMail:
220220
def __init__(
221221
self,
222222
*,
223-
environment: AgentMailEnvironment = AgentMailEnvironment.PRODUCTION,
223+
environment: AgentMailEnvironment = AgentMailEnvironment.PROD,
224224
api_key: typing.Optional[typing.Union[str, typing.Callable[[], str]]] = os.getenv("AGENTMAIL_API_KEY"),
225225
headers: typing.Optional[typing.Dict[str, str]] = None,
226226
timeout: typing.Optional[float] = None,

src/agentmail/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ def get_headers(self) -> typing.Dict[str, str]:
2525
import platform
2626

2727
headers: typing.Dict[str, str] = {
28-
"User-Agent": "agentmail/0.2.12",
28+
"User-Agent": "agentmail/0.2.13",
2929
"X-Fern-Language": "Python",
3030
"X-Fern-Runtime": f"python/{platform.python_version()}",
3131
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
3232
"X-Fern-SDK-Name": "agentmail",
33-
"X-Fern-SDK-Version": "0.2.12",
33+
"X-Fern-SDK-Version": "0.2.13",
3434
**(self.get_custom_headers() or {}),
3535
}
3636
headers["Authorization"] = f"Bearer {self._get_api_key()}"

src/agentmail/environment.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44

55

66
class AgentMailEnvironment:
7-
PRODUCTION: AgentMailEnvironment
8-
DEVELOPMENT: AgentMailEnvironment
7+
PROD: AgentMailEnvironment
8+
PROD_X_402: AgentMailEnvironment
99

1010
def __init__(self, *, http: str, websockets: str):
1111
self.http = http
1212
self.websockets = websockets
1313

1414

15-
AgentMailEnvironment.PRODUCTION = AgentMailEnvironment(
16-
http="https://api.agentmail.to", websockets="wss://ws.agentmail.to"
17-
)
18-
AgentMailEnvironment.DEVELOPMENT = AgentMailEnvironment(
19-
http="https://api.agentmail.dev", websockets="wss://ws.agentmail.dev"
15+
AgentMailEnvironment.PROD = AgentMailEnvironment(http="https://api.agentmail.to", websockets="wss://ws.agentmail.to")
16+
AgentMailEnvironment.PROD_X_402 = AgentMailEnvironment(
17+
http="https://x402.api.agentmail.to", websockets="wss://x402.ws.agentmail.to"
2018
)

0 commit comments

Comments
 (0)