Skip to content

Python: [Bug]: A2AAgent inconsistent with BaseAgent: context_providers not triggered #4754

Closed

Description

@lixiaoqiang

Description

A2AAgent currently does not use context_providers, nor does it trigger the invocation of the passed ContextProvider before the start and after the end of an Agent call.
This causes A2AAgent to violate the semantic definition of BaseAgent, resulting in inconsistency.

Code Sample

Error Messages / Stack Traces

Package Versions

agent-framework: 1.0.0rc4

Python Version

No response

Additional Context

No response

Activity

  1. added
    bugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)
    on Mar 18, 2026
  2. FocusMode-coder commented on Mar 18, 2026

    @FocusMode-coder

    Hey! I may be able to help with this bug.

    I build custom fixes for Python projects and automation systems.

    If you'd like help resolving this issue quickly feel free to reach out.

    Happy to take a look 👍

  3. added 9 commits that reference this issue on Mar 18, 2026
    f160521
    ea7d739
    1ebd481
    a198c58
    37c88a0
    430069a
    a8f7796
    eb986bd
    3165912
  4. added a commit that references this issue on Mar 19, 2026
    4b21f38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugUsage: [Issues], Target: all issues (Legacy, prefer issue type: bug)pythonUsage: [Issues, PRs], Target: Python

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions