try_activate_a2ui_extension
autogen.agents.experimental.a2ui.a2a_helpers.try_activate_a2ui_extension #
Activate the A2UI extension if the client requested it.
Call this in your AgentExecutor to negotiate A2UI support. If the client's request includes the A2UI extension URI, it is activated and the function returns True.
| PARAMETER | DESCRIPTION |
|---|---|
context | The A2A request context. TYPE: |
| RETURNS | DESCRIPTION |
|---|---|
bool | True if the A2UI extension was activated, False otherwise. |