• Preparing search index...
  • The search index is not available
Genkit JS API reference
  • Genkit JS API reference
  • @genkit-ai/express
  • withContextProvider

Function withContextProvider

  • withContextProvider<
        C extends ActionContext = ActionContext,
        I extends z.ZodType<any, any, any, I> = z.ZodTypeAny,
        O extends z.ZodType<any, any, any, O> = z.ZodTypeAny,
        S extends z.ZodType<any, any, any, S> = z.ZodTypeAny,
    >(
        flow: Flow<I, O, S>,
        context: ContextProvider<C, I>,
    ): FlowWithContextProvider<C, I, O, S>
  • Adds an auth policy to the flow.

    Type Parameters

    • C extends ActionContext = ActionContext
    • I extends z.ZodType<any, any, any, I> = z.ZodTypeAny
    • O extends z.ZodType<any, any, any, O> = z.ZodTypeAny
    • S extends z.ZodType<any, any, any, S> = z.ZodTypeAny

    Parameters

    • flow: Flow<I, O, S>
    • context: ContextProvider<C, I>

    Returns FlowWithContextProvider<C, I, O, S>

    • Defined in index.ts:165

Settings

Member Visibility
Genkit JS API reference
  • Loading...

Generated using TypeDoc with typedoc-github-theme