OptionalmaxMaximum tool call iterations before stopping.
OptionaltoolTimeout for each tool execution in milliseconds.
OptionalonHow to handle tool execution errors.
OptionalonCallback fired when the model issues tool calls, before execution begins. Useful for showing tool activity indicators in UIs.
OptionalonCallback fired after all tool calls in an iteration have been executed. Receives the results (including success/failure status) for each call.
Options for tool execution.