• Preparing search index...
  • The search index is not available
Genkit JS API reference
  • Genkit JS API reference
  • genkit
  • /
  • modelRef

Function modelRef

  • modelRef<
        CustomOptionsSchema extends
            z.ZodType<any, any, any, CustomOptionsSchema> = z.ZodTypeAny,
    >(
        options: Omit<
            ModelReference<CustomOptionsSchema>,
            "withConfig" | "withVersion",
        >,
    ): ModelReference<CustomOptionsSchema>
  • Cretes a model reference.

    Type Parameters

    • CustomOptionsSchema extends z.ZodType<any, any, any, CustomOptionsSchema> = z.ZodTypeAny

    Parameters

    • options: Omit<ModelReference<CustomOptionsSchema>, "withConfig" | "withVersion">

    Returns ModelReference<CustomOptionsSchema>

    • Defined in js/ai/lib/chunk-DBZnM3bJ.d.ts:7516

Settings

Member Visibility
Genkit JS API reference
  • Loading...

Generated using TypeDoc with typedoc-github-theme