Genkit JS API reference
Preparing search index...
@genkit-ai/fetch
withActionOptions
Function withActionOptions
withActionOptions
<
I
extends
z
.
ZodTypeAny
,
O
extends
z
.
ZodTypeAny
,
S
extends
z
.
ZodTypeAny
,
>
(
action
:
Action
<
I
,
O
,
S
>
,
options
:
{
contextProvider
?:
ContextProvider
<
any
,
I
>
;
path
?:
string
;
streamManager
?:
StreamManager
;
}
,
)
:
ActionWithOptions
<
I
,
O
,
S
>
Wraps an action (flow, model, etc.) with options for use with
fetchHandlers
.
Type Parameters
I
extends
z
.
ZodTypeAny
O
extends
z
.
ZodTypeAny
S
extends
z
.
ZodTypeAny
Parameters
action
:
Action
<
I
,
O
,
S
>
options
:
{
contextProvider
?:
ContextProvider
<
any
,
I
>
;
path
?:
string
;
streamManager
?:
StreamManager
;
}
Returns
ActionWithOptions
<
I
,
O
,
S
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Wraps an action (flow, model, etc.) with options for use with fetchHandlers.