Skip to content

Python: restore sequence-only agent middleware API and remove agent-hooks extra #7917

Description

Description

PR #7515 added an agent-framework-core[agent-hooks] optional extra and broadened agent middleware inputs to accept either a singular middleware value or a sequence. The core package should not expose an agent-hooks extra, and singular middleware conflicts with the sequence-only BaseAgent API decision recorded in #2902.

Expected changes

  • Remove the agent-hooks extra from agent-framework-core; users of the experimental feature install agent-hooks-sdk separately.
  • Restore sequence-only middleware inputs across BaseAgent, RawAgent, Agent, the inherited agent middleware/telemetry layers, and create_harness_agent.
  • Keep agent-hooks middleware bundles supported as elements of a middleware sequence.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

pythonUsage: [Issues, PRs], Target: Python

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions