Skip to content

Python: [Bug]: AG-UI EventEncoder._encode_sse cannot handle AgentResponseUpdate #4929

@lixiaoqiang

Description

@lixiaoqiang

Description

EventEncoder._encode_sse uses module_dump_json to return data. When the event type is AgentResponseUpdate, AgentResponseUpdate fails to serialize/export.
Error Message:
AttributeError: 'AgentResponseUpdate' object has no attribute 'model_dump_json'

Code Sample

Error Messages / Stack Traces

Package Versions

agent-framework-ag-ui=1.0.0b260311

Python Version

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