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.
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 anagent-hooksextra, and singular middleware conflicts with the sequence-onlyBaseAgentAPI decision recorded in #2902.Expected changes
agent-hooksextra fromagent-framework-core; users of the experimental feature installagent-hooks-sdkseparately.BaseAgent,RawAgent,Agent, the inherited agent middleware/telemetry layers, andcreate_harness_agent.