ToolCallValidationResult constructor

ToolCallValidationResult({
  1. bool? isValid,
  2. Iterable<String>? validationErrors,
  3. ToolDefinition? matchedTool,
  4. String? normalizedArgumentsJson,
  5. String? errorMessage,
  6. int? errorCode,
})

Implementation

factory ToolCallValidationResult({
  $core.bool? isValid,
  $core.Iterable<$core.String>? validationErrors,
  ToolDefinition? matchedTool,
  $core.String? normalizedArgumentsJson,
  $core.String? errorMessage,
  $core.int? errorCode,
}) {
  final result = create();
  if (isValid != null) result.isValid = isValid;
  if (validationErrors != null)
    result.validationErrors.addAll(validationErrors);
  if (matchedTool != null) result.matchedTool = matchedTool;
  if (normalizedArgumentsJson != null)
    result.normalizedArgumentsJson = normalizedArgumentsJson;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (errorCode != null) result.errorCode = errorCode;
  return result;
}