Preparing search index...
The search index is not available
Genkit JS API reference
Genkit JS API reference
genkit
/
Action
Type Alias Action<I, O, S>
Action
:
(
input
?:
TypeOf
<
I
>
,
options
?:
ActionRunOptions
<
S
>
)
=>
Promise
<
TypeOf
<
O
>
>
&
{
__action
:
ActionMetadata
<
I
,
O
,
S
>
;
__registry
:
Registry
;
run
(
input
:
TypeOf
<
I
>
,
options
?:
ActionRunOptions
<
TypeOf
<
S
>
>
,
)
:
Promise
<
ActionResult
<
TypeOf
<
O
>
>
>
;
stream
(
input
?:
TypeOf
<
I
>
,
opts
?:
ActionRunOptions
<
TypeOf
<
S
>
>
,
)
:
StreamingResponse
<
O
,
S
>
;
}
Self-describing, validating, observable, locally and remotely callable function.
Type Parameters
I
extends
ZodTypeAny
=
ZodTypeAny
O
extends
ZodTypeAny
=
ZodTypeAny
S
extends
ZodTypeAny
=
ZodTypeAny
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Self-describing, validating, observable, locally and remotely callable function.