# Pass run_context into Router and Condition logic

> Router selectors and Condition evaluators now accept run_context, giving that logic access to the full run context when deciding which branch to take.

- Published: 2026-07-17
- Author: Agno Team
- Category: Changelog
- Canonical: https://agno-com-nine.vercel.app/articles/pass-run-context-into-router-and-condition-logic
- Markdown: https://agno-com-nine.vercel.app/articles/pass-run-context-into-router-and-condition-logic.md

Router selectors and Condition evaluators now accept `run_context`, giving that logic access to the full run context when deciding which branch to take. This deprecates `session_state` in those spots, so you write routing and condition logic against one consistent, richer object going forward.
