Skip to content

Commit ffa397e

Browse files
committed
feat(ai): implement experimental_prepareStep for dynamic step configuration
- Add PrepareStepFunction and PrepareStepResult types for step-by-step customization - Enable dynamic model, toolChoice, and activeTools modification per step - Support system prompt and messages override during multi-step execution - Implement experimental_prepareStep parameter in generateText and streamText - Add comprehensive test coverage for experimental_prepareStep functionality - Fix stepNumber calculation bug in stream-text.ts (use currentStep instead of recordedSteps.length)
1 parent fea995c commit ffa397e

File tree

5 files changed

+847
-24
lines changed

5 files changed

+847
-24
lines changed

0 commit comments

Comments
 (0)