Model, fallback models, instructions, temperature, maximum output tokens, top-p, and tools can be fixed values or callbacks evaluated for each turn.
Use runtime.set_context(value) when a tool discovers information needed later. Use next_turn_params for an override that applies only to the immediately following model request.
Next-turn overrides are saved with paused state, so an approval checkpoint does not discard the routing or sampling decision.
Keep context serializable when using AgentStateAccessor.
Last modified on July 26, 2026