Context available to pre-generation hooks. Hooks may return a modified copy to transform the generation input.
Current messages array (system + conversation + user).
System prompt text.
Tool definitions available for this step.
Resolved model ID.
Resolved provider ID.
Current agentic step index (0-based).
The original user prompt (from opts.prompt).
Context available to pre-generation hooks. Hooks may return a modified copy to transform the generation input.