Prepare Step Scope
class PrepareStepScope<TContext>(val stepNumber: Int, val model: LanguageModel, val steps: List<StepResult>, val messages: List<ModelMessage>, val context: TContext?)(source)
Scope for prepareStep, run before every step in the loop. Used for: model routing per step (cheap model for step 1 + 2, expensive for step 3), tool gating per step (only the search tool is callable on step 1), dynamic system prompts, message compression.
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(stepNumber: Int, model: LanguageModel, steps: List<StepResult>, messages: List<ModelMessage>, context: TContext?)