StructuredOutputPromptResult constructor
StructuredOutputPromptResult({})
Implementation
factory StructuredOutputPromptResult({
$core.String? preparedPrompt,
$core.String? systemPrompt,
$core.String? jsonSchema,
$core.String? regexPattern,
$core.String? grammar,
$0.SDKError? error,
}) {
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 (error != null) result.error = error;
return result;
}