ToolPromptFormatResult constructor

ToolPromptFormatResult({
  1. String? formattedPrompt,
  2. ToolCallFormatName? format,
  3. String? errorMessage,
  4. int? errorCode,
})

Implementation

factory ToolPromptFormatResult({
  $core.String? formattedPrompt,
  ToolCallFormatName? format,
  $core.String? errorMessage,
  $core.int? errorCode,
}) {
  final result = create();
  if (formattedPrompt != null) result.formattedPrompt = formattedPrompt;
  if (format != null) result.format = format;
  if (errorMessage != null) result.errorMessage = errorMessage;
  if (errorCode != null) result.errorCode = errorCode;
  return result;
}