Genkit JS API reference
Preparing search index...
genkit
plugin
retriever
Function retriever
retriever
<
OptionsType
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
>
(
options
:
{
configSchema
?:
OptionsType
;
info
?:
{
label
?:
string
;
supports
?:
{
media
?:
boolean
}
}
;
name
:
string
;
}
,
runner
:
RetrieverFn
<
OptionsType
>
,
)
:
RetrieverAction
<
OptionsType
>
Creates a retriever action for the provided
RetrieverFn
implementation.
Type Parameters
OptionsType
extends
z
.
ZodTypeAny
=
z
.
ZodTypeAny
Parameters
options
:
{
configSchema
?:
OptionsType
;
info
?:
{
label
?:
string
;
supports
?:
{
media
?:
boolean
}
}
;
name
:
string
;
}
runner
:
RetrieverFn
<
OptionsType
>
Returns
RetrieverAction
<
OptionsType
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Creates a retriever action for the provided RetrieverFn implementation.