Skip to content

Commit 0746541

Browse files
committed
feat: add extensions parameter documentation in ClientFactory and update header function docstring
1 parent a2eeb7b commit 0746541

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/a2a/client/client_factory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ async def connect( # noqa: PLR0913
145145
A2AAgentCardResolver.get_agent_card as the http_kwargs parameter.
146146
extra_transports: Additional transport protocols to enable when
147147
constructing the client.
148+
extensions: List of extensions to be activated.
148149
149150
Returns:
150151
A `Client` object.
@@ -190,6 +191,7 @@ def create(
190191
interceptors: A list of interceptors to use for each request. These
191192
are used for things like attaching credentials or http headers
192193
to all outbound requests.
194+
extensions: List of extensions to be activated.
193195
194196
Returns:
195197
A `Client` object.

src/a2a/extensions/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def update_extension_header(
3434
active_extensions: list[str] | None,
3535
new_extensions: list[str] | None,
3636
) -> tuple[dict[str, Any], list[str] | None]:
37+
"""Update the X-A2A-Extensions header and update active extensions."""
3738
if new_extensions:
3839
active_extensions = new_extensions
3940
if active_extensions:

0 commit comments

Comments
 (0)