OpenGenerativeUI icon indicating copy to clipboard operation
OpenGenerativeUI copied to clipboard

bug: ag-ui-langgraph logs a context_schema introspection warning on every request

Open tbrandenburg opened this issue 1 week ago • 0 comments

Summary

Every agent request logs this warning:

get_schema_keys: context_schema introspection failed (AttributeError: 'dict' object has no attribute 'schema'); falling back to empty context keys while keeping input/output/config

Evidence

ag_ui_langgraph/agent.py (get_schema_keys) calls self.graph.context_schema().schema(). With the LangGraph version in the lockfile, context_schema() returns a plain dict, so .schema() raises AttributeError. apps/agent/main.py passes context_schema=AgentState.

Impact

Low. The library catches the error, logs the warning, and keeps the input/output/config keys; only the context keys are empty. I have not observed any functional effect.

Options (untested)

Upgrade ag-ui-langgraph if a newer release uses get_context_jsonschema, or reconsider whether AgentState should be passed as context_schema at all. Filing for tracking; no PR until you say whether you want it addressed here or upstream.

tbrandenburg avatar Nov 22 '26 13:11 tbrandenburg