Skip to content

Python: [Bug]: The current implementation of AG-UI fails to pass the state to AgentSession. #5197

@lixiaoqiang

Description

@lixiaoqiang

Description

The current implementation of AG-UI fails to pass the state to AgentSession.
Since MAF's ContextProvider relies on state to transmit valid information, this prevents additional information from being passed to the ContextProvider.
For example: I want to pass information such as agent_id, user_id, and tenant_id to the HistoryProvider (which inherits from ContextProvider).
However, these values cannot be effectively passed to the HistoryProvider when the frontend uses the AG-UI protocol.
Alternatively, you may have a robust mechanism for passing information to the ContextProvider but lack corresponding examples.
Based on my review of the source code, it seems that this requirement cannot be fulfilled at present.

Code Sample

Error Messages / Stack Traces

Package Versions

agent-framework-ag-ui: 1.0.0b260402

Python Version

python:3.13

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions