Genkit JS API reference
Preparing search index...
@genkit-ai/express
withFlowOptions
Function withFlowOptions
withFlowOptions
<
I
extends
z
.
ZodTypeAny
,
O
extends
z
.
ZodTypeAny
,
S
extends
z
.
ZodTypeAny
,
>
(
flow
:
Flow
<
I
,
O
,
S
>
,
options
:
{
contextProvider
?:
ContextProvider
<
any
,
I
>
;
path
?:
string
;
streamManager
?:
StreamManager
;
}
,
)
:
FlowWithOptions
<
I
,
O
,
S
>
Adds an auth policy to the flow.
Type Parameters
I
extends
z
.
ZodTypeAny
O
extends
z
.
ZodTypeAny
S
extends
z
.
ZodTypeAny
Parameters
flow
:
Flow
<
I
,
O
,
S
>
options
:
{
contextProvider
?:
ContextProvider
<
any
,
I
>
;
path
?:
string
;
streamManager
?:
StreamManager
;
}
Returns
FlowWithOptions
<
I
,
O
,
S
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Adds an auth policy to the flow.