f13865a21f
The middleware reads state["ag-ui"]["inject_a2ui_tool"] and state["ag-ui"]["a2ui_schema"], but "ag-ui" was never declared on the StateSchema, so create_agent's StateGraph dropped both keys before the middleware ran — the generate_a2ui tool never injected and the catalog was lost. Declare the "ag-ui" channel via StateSchema.__annotations__ so the flag and catalog survive. Also add an a2ui_params kwarg so a host can steer the auto-injected generate_a2ui subagent (design/generation guidelines, catalog id, ...). The middleware still injects the bound model and folds the registered catalog in, but host-set values win.