acontext 0.0.2a1__py3-none-any.whl → 0.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- acontext/async_client.py +1 -1
- acontext/client.py +2 -2
- acontext/resources/async_sessions.py +1 -1
- acontext/resources/sessions.py +1 -1
- {acontext-0.0.2a1.dist-info → acontext-0.0.3.dist-info}/METADATA +1 -1
- {acontext-0.0.2a1.dist-info → acontext-0.0.3.dist-info}/RECORD +7 -7
- {acontext-0.0.2a1.dist-info → acontext-0.0.3.dist-info}/WHEEL +0 -0
acontext/async_client.py
CHANGED
|
@@ -26,7 +26,7 @@ class AcontextAsyncClient:
|
|
|
26
26
|
*,
|
|
27
27
|
api_key: str | None = None,
|
|
28
28
|
base_url: str | None = None,
|
|
29
|
-
timeout: float | httpx.Timeout | None =
|
|
29
|
+
timeout: float | httpx.Timeout | None = 32.0,
|
|
30
30
|
user_agent: str | None = None,
|
|
31
31
|
client: httpx.AsyncClient | None = None,
|
|
32
32
|
) -> None:
|
acontext/client.py
CHANGED
|
@@ -26,7 +26,7 @@ class AcontextClient:
|
|
|
26
26
|
*,
|
|
27
27
|
api_key: str | None = None,
|
|
28
28
|
base_url: str | None = None,
|
|
29
|
-
timeout: float | httpx.Timeout | None =
|
|
29
|
+
timeout: float | httpx.Timeout | None = 32.0,
|
|
30
30
|
user_agent: str | None = None,
|
|
31
31
|
client: httpx.Client | None = None,
|
|
32
32
|
) -> None:
|
|
@@ -36,7 +36,7 @@ class AcontextClient:
|
|
|
36
36
|
Args:
|
|
37
37
|
api_key: API key for authentication. Can also be set via ACONTEXT_API_KEY env var.
|
|
38
38
|
base_url: Base URL for the API. Defaults to DEFAULT_BASE_URL. Can also be set via ACONTEXT_BASE_URL env var.
|
|
39
|
-
timeout: Request timeout in seconds. Defaults to
|
|
39
|
+
timeout: Request timeout in seconds. Defaults to 32.0. Can also be set via ACONTEXT_TIMEOUT env var.
|
|
40
40
|
Can also be an httpx.Timeout object.
|
|
41
41
|
user_agent: Custom user agent string. Can also be set via ACONTEXT_USER_AGENT env var.
|
|
42
42
|
client: Optional httpx.Client instance to reuse. If provided, headers and base_url
|
|
@@ -260,7 +260,7 @@ class AsyncSessionsAPI:
|
|
|
260
260
|
limit: int | None = None,
|
|
261
261
|
cursor: str | None = None,
|
|
262
262
|
with_asset_public_url: bool | None = None,
|
|
263
|
-
format: Literal["acontext", "openai", "anthropic"] = "
|
|
263
|
+
format: Literal["acontext", "openai", "anthropic"] = "openai",
|
|
264
264
|
time_desc: bool | None = None,
|
|
265
265
|
) -> GetMessagesOutput:
|
|
266
266
|
"""Get messages for a session.
|
acontext/resources/sessions.py
CHANGED
|
@@ -260,7 +260,7 @@ class SessionsAPI:
|
|
|
260
260
|
limit: int | None = None,
|
|
261
261
|
cursor: str | None = None,
|
|
262
262
|
with_asset_public_url: bool | None = None,
|
|
263
|
-
format: Literal["acontext", "openai", "anthropic"] = "
|
|
263
|
+
format: Literal["acontext", "openai", "anthropic"] = "openai",
|
|
264
264
|
time_desc: bool | None = None,
|
|
265
265
|
) -> GetMessagesOutput:
|
|
266
266
|
"""Get messages for a session.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
acontext/__init__.py,sha256=CZzHIZ2VEtNQFj0MkH3eDx-A78fSCYsUklDvhYUsD2Y,965
|
|
2
2
|
acontext/_constants.py,sha256=-OxfFwn4UdkQiNkyWhBmpM7KnZv6SgR-gMPEkjLKtDA,362
|
|
3
3
|
acontext/_utils.py,sha256=GKQH45arKh0sDu64u-5jwrII_ctnU_oChYlgR5lRkfE,1250
|
|
4
|
-
acontext/async_client.py,sha256=
|
|
5
|
-
acontext/client.py,sha256
|
|
4
|
+
acontext/async_client.py,sha256=mfyR-WVy_LEOXjrkTcXLNaPDC5euaZ9zFI_5e1gapGs,8153
|
|
5
|
+
acontext/client.py,sha256=jFr5-Q8obdcZBamUNtY3fCklpOJiNiIKLzEApTmbnTg,7920
|
|
6
6
|
acontext/client_types.py,sha256=uVBWzLbZyXrqkljG49ojdQL_xX6N3n_HGt4Bs_TEE48,987
|
|
7
7
|
acontext/errors.py,sha256=W9i7_t46q9kbci3XAyZiyQhS154d4R9rSon3na-gjgs,1296
|
|
8
8
|
acontext/messages.py,sha256=L-fCnnZ9OIzK3zmumAhHhQ4YdBgoFdDXrb91yz5hGXk,2350
|
|
@@ -10,12 +10,12 @@ acontext/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
10
10
|
acontext/resources/__init__.py,sha256=KSVQ3YJ-wuU6OWGWJ47gDGbjjetP102aEsVSR8JUb_4,721
|
|
11
11
|
acontext/resources/async_blocks.py,sha256=e_iJpgcAdwS2tXQ16MMCnySlddp5JV3BadN_EyqZSF4,5555
|
|
12
12
|
acontext/resources/async_disks.py,sha256=2JjLpUkz5YZEkLt_jCts_khTG_b7lvf4cUMfoaJcnI8,6471
|
|
13
|
-
acontext/resources/async_sessions.py,sha256=
|
|
13
|
+
acontext/resources/async_sessions.py,sha256=ls_s9r4St-XPE9pB5nUOTYnqIWXN4MOdM0skvY9i-NI,10760
|
|
14
14
|
acontext/resources/async_spaces.py,sha256=MnHJ6c8bqT2RgSsDeyYS8fgrvnMxZ3yOkd5d9hSHjPE,6414
|
|
15
15
|
acontext/resources/async_tools.py,sha256=RbGaF2kX65Mun-q-Fp5H1J8waWTLIdCOfbdY19jpn1o,1091
|
|
16
16
|
acontext/resources/blocks.py,sha256=HJdAy5HdyTcHCYCPmqNdvApYKZ6aWs-ORIi_wQt3TUM,5447
|
|
17
17
|
acontext/resources/disks.py,sha256=BjVhVXoujHWhg6L0TG9GmW9HLTTldJYEPxCbuppRkc4,6336
|
|
18
|
-
acontext/resources/sessions.py,sha256=
|
|
18
|
+
acontext/resources/sessions.py,sha256=gWrwQeBUEmI8yOK9-ByGGFff5SmEApH8JqZd9VHZlfg,10624
|
|
19
19
|
acontext/resources/spaces.py,sha256=ugmma1jY3k4i87MdgBSoCTP_Slxg895qeWtiKNM5SqQ,6273
|
|
20
20
|
acontext/resources/tools.py,sha256=II_185B0HYKSP43hizE6C1zs7kjkkPLKihuEG8s-DRY,1046
|
|
21
21
|
acontext/types/__init__.py,sha256=tlxMx78rn7Bybcxv5KIhzAmWidUsriz0wF4TNEqaY5A,1202
|
|
@@ -25,6 +25,6 @@ acontext/types/session.py,sha256=o4IEvRumgvQVnx4hpjXU16qzSXV30vOYrDwnKEP54XY,515
|
|
|
25
25
|
acontext/types/space.py,sha256=lhik5PMG0CthQAqgfi9MSlsP1N_sD7ubBbgAldFtO7s,1589
|
|
26
26
|
acontext/types/tool.py,sha256=-mVn-vgk2SENK0Ubt-ZgWFZxKa-ddABqcAgXQ69YY-E,805
|
|
27
27
|
acontext/uploads.py,sha256=6twnqQOY_eerNuEjeSKsE_3S0IfJUiczXtAy4aXqDl8,1379
|
|
28
|
-
acontext-0.0.
|
|
29
|
-
acontext-0.0.
|
|
30
|
-
acontext-0.0.
|
|
28
|
+
acontext-0.0.3.dist-info/WHEEL,sha256=w4ZtLaDgMAZW2MMZZwtH8zENekoQYBCeullI-zsXJQk,78
|
|
29
|
+
acontext-0.0.3.dist-info/METADATA,sha256=gvgo15nko-Yqxb4qfpcP4allp8xX6EA-bX48lE8R_90,11648
|
|
30
|
+
acontext-0.0.3.dist-info/RECORD,,
|
|
File without changes
|