acp-sdk 0.5.0__py3-none-any.whl → 0.6.0__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.
acp_sdk/client/client.py CHANGED
@@ -1,3 +1,5 @@
1
+ import ssl
2
+ import typing
1
3
  import uuid
2
4
  from collections.abc import AsyncGenerator, AsyncIterator
3
5
  from contextlib import asynccontextmanager
@@ -40,14 +42,49 @@ class Client:
40
42
  def __init__(
41
43
  self,
42
44
  *,
43
- base_url: httpx.URL | str = "",
44
- timeout: httpx.Timeout | None = None,
45
45
  session_id: SessionId | None = None,
46
46
  client: httpx.AsyncClient | None = None,
47
47
  instrument: bool = True,
48
+ auth: httpx._types.AuthTypes | None = None,
49
+ params: httpx._types.QueryParamTypes | None = None,
50
+ headers: httpx._types.HeaderTypes | None = None,
51
+ cookies: httpx._types.CookieTypes | None = None,
52
+ timeout: httpx._types.TimeoutTypes = None,
53
+ verify: ssl.SSLContext | str | bool = True,
54
+ cert: httpx._types.CertTypes | None = None,
55
+ http1: bool = True,
56
+ http2: bool = False,
57
+ proxy: httpx._types.ProxyTypes | None = None,
58
+ mounts: None | (typing.Mapping[str, httpx.AsyncBaseTransport | None]) = None,
59
+ follow_redirects: bool = False,
60
+ limits: httpx.Limits = httpx._config.DEFAULT_LIMITS,
61
+ max_redirects: int = httpx._config.DEFAULT_MAX_REDIRECTS,
62
+ event_hooks: None | (typing.Mapping[str, list[httpx._client.EventHook]]) = None,
63
+ base_url: httpx.URL | str = "",
64
+ transport: httpx.AsyncBaseTransport | None = None,
65
+ trust_env: bool = True,
48
66
  ) -> None:
49
67
  self._session_id = session_id
50
- self._client = client or httpx.AsyncClient(base_url=base_url, timeout=timeout)
68
+ self._client = client or httpx.AsyncClient(
69
+ auth=auth,
70
+ params=params,
71
+ headers=headers,
72
+ cookies=cookies,
73
+ timeout=timeout,
74
+ verify=verify,
75
+ cert=cert,
76
+ http1=http1,
77
+ http2=http2,
78
+ proxy=proxy,
79
+ mounts=mounts,
80
+ follow_redirects=follow_redirects,
81
+ limits=limits,
82
+ max_redirects=max_redirects,
83
+ event_hooks=event_hooks,
84
+ base_url=base_url,
85
+ transport=transport,
86
+ trust_env=trust_env,
87
+ )
51
88
  if instrument:
52
89
  HTTPXClientInstrumentor.instrument_client(self._client)
53
90
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: acp-sdk
3
- Version: 0.5.0
3
+ Version: 0.6.0
4
4
  Summary: Agent Communication Protocol SDK
5
5
  Author: IBM Corp.
6
6
  Maintainer-email: Tomas Pilar <thomas7pilar@gmail.com>
@@ -3,7 +3,7 @@ acp_sdk/instrumentation.py,sha256=JqSyvILN3sGAfOZrmckQq4-M_4_5alyPn95DK0o5lfA,16
3
3
  acp_sdk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  acp_sdk/version.py,sha256=Niy83rgvigB4hL_rR-O4ySvI7dj6xnqkyOe_JTymi9s,73
5
5
  acp_sdk/client/__init__.py,sha256=Bca1DORrswxzZsrR2aUFpATuNG2xNSmYvF1Z2WJaVbc,51
6
- acp_sdk/client/client.py,sha256=b8hiX7aymhKXOOgdUnhDXlP43Z_67btJg_gIPh4IaQ4,7893
6
+ acp_sdk/client/client.py,sha256=CtH8dBEEKLjhPqCvxhEOPGnmNMMYsG22AH0OC5pWbpE,9310
7
7
  acp_sdk/models/__init__.py,sha256=numSDBDT1QHx7n_Y3Deb5VOvKWcUBxbOEaMwQBSRHxc,151
8
8
  acp_sdk/models/errors.py,sha256=rEyaMVvQuBi7fwWe_d0PGGySYsD3FZTluQ-SkC0yhAs,444
9
9
  acp_sdk/models/models.py,sha256=eOoOfftPKbTaLlqZlE4gE1ZwDkrQ_FdRiDx4wSJILP4,6539
@@ -20,6 +20,6 @@ acp_sdk/server/session.py,sha256=0cDr924HC5x2bBNbK9NSKVHAt5A_mi5dK8P4jP_ugq0,629
20
20
  acp_sdk/server/telemetry.py,sha256=1BUxNg-xL_Vqgs27PDWNc3HikrQW2lidAtT_FKlp_Qk,1833
21
21
  acp_sdk/server/types.py,sha256=teBNRWSks8XP1SCQKGEtbNWQahVD3RAOPnysTxcQPxI,292
22
22
  acp_sdk/server/utils.py,sha256=EfrF9VCyVk3AM_ao-BIB9EzGbfTrh4V2Bz-VFr6f6Sg,351
23
- acp_sdk-0.5.0.dist-info/METADATA,sha256=0Idz5Cn8GmBGtSnDUzzbLi3kmv-EGE6_vJVzbbP788k,1654
24
- acp_sdk-0.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
- acp_sdk-0.5.0.dist-info/RECORD,,
23
+ acp_sdk-0.6.0.dist-info/METADATA,sha256=K2qABevuRD1ydsvoqniFrrNVu_abbf5I3IQDS7TuAUM,1654
24
+ acp_sdk-0.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
25
+ acp_sdk-0.6.0.dist-info/RECORD,,