Dynamic turn callbacks let routing react to run state without rebuilding the agent. They run before each model request and receive the current turn context.
You can also configure dynamic tools and per-turn Temperature, MaxOutputTokens, and TopP values.
Set NextTurn on a tool to change the immediately following model request. These overrides are stored in paused state, so they survive an approval checkpoint, and expire after the next turn.
Use dynamic callbacks for policy that should be recalculated every turn. Use NextTurn for a tool-specific handoff such as switching models after repository inspection. Last modified on July 26, 2026