Preparing search index...
The search index is not available
Genkit JS API reference
Genkit JS API reference
genkit
/
IndexerParams
Interface IndexerParams<CustomOptions>
Options passed to the index function.
interface
IndexerParams
<
CustomOptions
extends
ZodTypeAny
=
ZodTypeAny
>
{
documents
:
{
content
:
(
|
{
media
?:
undefined
;
text
:
string
}
|
{
media
:
{
contentType
?:
string
;
url
:
string
}
;
text
?:
undefined
}
)
[]
;
metadata
?:
Record
<
string
,
any
>
;
}
[]
;
indexer
:
IndexerArgument
<
CustomOptions
>
;
options
?:
TypeOf
<
CustomOptions
>
;
}
Type Parameters
CustomOptions
extends
ZodTypeAny
=
ZodTypeAny
Index
Properties
documents
indexer
options?
Properties
documents
documents
:
{
content
:
(
|
{
media
?:
undefined
;
text
:
string
}
|
{
media
:
{
contentType
?:
string
;
url
:
string
}
;
text
?:
undefined
}
)
[]
;
metadata
?:
Record
<
string
,
any
>
;
}
[]
indexer
indexer
:
IndexerArgument
<
CustomOptions
>
Optional
options
options
?:
TypeOf
<
CustomOptions
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
documents
indexer
options
Genkit JS API reference
Loading...
Options passed to the index function.