• Preparing search index...
  • The search index is not available
Genkit JS API reference
  • Genkit JS API reference
  • genkit
  • tool
  • toToolDefinition

Function toToolDefinition

  • toToolDefinition(
        tool: Action<
            z.ZodTypeAny,
            z.ZodTypeAny,
            z.ZodTypeAny,
            ActionRunOptions<z.ZodTypeAny>,
        >,
    ): ToolDefinition
  • Converts a tool action to a definition of the tool to be passed to a model.

    Parameters

    • tool: Action<z.ZodTypeAny, z.ZodTypeAny, z.ZodTypeAny, ActionRunOptions<z.ZodTypeAny>>

    Returns ToolDefinition

    • Defined in js/ai/lib/generate-kk52SGan.d.ts:246

Settings

Member Visibility
Genkit JS API reference
  • Loading...

Generated using TypeDoc with typedoc-github-theme