You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: use CallbackPipeline consistently in all callback execution sites
Address bot feedback (round 4) by replacing all manual callback iterations
with CallbackPipeline.execute() for consistency and maintainability.
Changes (9 locations):
1. base_agent.py: Use CallbackPipeline for before/after agent callbacks
2. callback_pipeline.py: Optimize single plugin callback execution
3. base_llm_flow.py: Use CallbackPipeline for before/after model callbacks
4. functions.py: Use CallbackPipeline for all tool callbacks (async + live)
Impact:
- Eliminates remaining manual callback iteration logic (~40 lines)
- Achieves 100% consistency in callback execution
- All sync/async handling and early exit logic centralized
- Tests: 24/24 passing
- Lint: 9.57/10 (improved from 9.49/10)
#non-breaking
0 commit comments