Type Alias StructuredOutputMethodParams<RunOutput, IncludeRaw>

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

Type Parameters

  • RunOutput
  • IncludeRaw extends boolean = false

Type declaration

  • OptionalincludeRaw?: IncludeRaw
  • Optionalmethod?: "functionCalling" | "jsonMode"
  • Optionalname?: string
  • schema: z.ZodType<RunOutput> | Record<string, any>

    Pass schema in as the first argument

Use StructuredOutputMethodOptions instead