StructuredOutputPromptResult constructor
StructuredOutputPromptResult({})
Implementation
factory StructuredOutputPromptResult({
$core.String? preparedPrompt,
$core.String? systemPrompt,
$core.String? jsonSchema,
$core.String? regexPattern,
$core.String? grammar,
$core.String? errorMessage,
$core.int? errorCode,
}) {
final result = create();
if (preparedPrompt != null) result.preparedPrompt = preparedPrompt;
if (systemPrompt != null) result.systemPrompt = systemPrompt;
if (jsonSchema != null) result.jsonSchema = jsonSchema;
if (regexPattern != null) result.regexPattern = regexPattern;
if (grammar != null) result.grammar = grammar;
if (errorMessage != null) result.errorMessage = errorMessage;
if (errorCode != null) result.errorCode = errorCode;
return result;
}