OptionalmaxSteps?: numberUsed to create a default stepCountIs(maxSteps) when tools are present and stopWhen is omitted
OptionalonFinish?: WrappedStreamTextOnFinishCallback<Tools>Callback when stream finishes. Receives the wrapped event with optional cost.
Prompt file name
OptionalpromptDir?: stringOverride the stack-resolved prompt directory
Optionalskills?: Skill packages to provide to the LLM through the load_skill tool. Function resolvers must be synchronous.
Optionalvariables?: Record<string, string | number | boolean>Variables to interpolate into the prompt file
Parameters accepted by streamText.