Preparing search index...
The search index is not available
Genkit JS API reference
Genkit JS API reference
genkit
tool
toToolDefinition
Function toToolDefinition
toToolDefinition
(
tool
:
Action
<
ZodTypeAny
,
ZodTypeAny
,
ZodTypeAny
>
,
)
:
ToolDefinition
Converts a tool action to a definition of the tool to be passed to a model.
Parameters
tool
:
Action
<
ZodTypeAny
,
ZodTypeAny
,
ZodTypeAny
>
Returns
ToolDefinition
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Genkit JS API reference
Loading...
Converts a tool action to a definition of the tool to be passed to a model.