Genkit JS API reference
Preparing search index...
@genkit-ai/express
withContextProvider
Function withContextProvider
withContextProvider
<
C
extends
ActionContext
=
ActionContext
,
I
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
,
O
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
,
S
extends
z
.
ZodTypeAny
=
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
.
ZodTypeAny
=
z
.
ZodTypeAny
O
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
S
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
Parameters
flow
:
Flow
<
I
,
O
,
S
>
context
:
ContextProvider
<
C
,
I
>
Returns
FlowWithContextProvider
<
C
,
I
,
O
,
S
>
Deprecated
Use
withFlowOptions
instead.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Adds an auth policy to the flow.