validate method
void
validate()
Implementation
void validate() {
final effectiveMaxToolCalls = hasMaxToolCalls() ? maxToolCalls : 5;
if (effectiveMaxToolCalls < 1) {
throw SDKException.validationFailed(
'max_tool_calls must be >= 1 (got $effectiveMaxToolCalls)',
fieldPath: 'ToolCallingOptions.max_tool_calls',
);
}
}