a2a.extensions.common module

a2a.extensions.common.find_extension_by_uri(card: AgentCard, uri: str) AgentExtension | None

Find an AgentExtension in an AgentCard given a uri.

a2a.extensions.common.get_requested_extensions(values: list[str]) set[str]

Get the set of requested extensions from an input list.

This handles the list containing potentially comma-separated values, as occurs when using a list in an HTTP header.

a2a.extensions.common.update_extension_header(http_kwargs: dict[str, Any] | None, extensions: list[str] | None) dict[str, Any]

Update the X-A2A-Extensions header with active extensions.