Type Alias StructuredOutputMethodParams<RunOutput, IncludeRaw>

StructuredOutputMethodParams<RunOutput, IncludeRaw>: {
    schema: z.ZodType<RunOutput> | Record<string, any>;
    includeRaw?: IncludeRaw;
    method?: "functionCalling" | "jsonMode";
    name?: string;
}

Type Parameters

  • RunOutput
  • IncludeRaw extends boolean = false

Type declaration

  • schema: z.ZodType<RunOutput> | Record<string, any>

    Pass schema in as the first argument

  • OptionalincludeRaw?: IncludeRaw
  • Optionalmethod?: "functionCalling" | "jsonMode"
  • Optionalname?: string

Use StructuredOutputMethodOptions instead