halo - v1.0.0
Preparing search index...
tool
Function tool
tool
<
PARAMETERS
extends
ToolParameters
,
RESULT
>
(
tool
:
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
:
(
args
:
inferParameters
<
PARAMETERS
>
,
options
:
ToolExecutionOptions
,
)
=>
PromiseLike
<
RESULT
>
;
}
,
)
:
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
:
(
args
:
inferParameters
<
PARAMETERS
>
,
options
:
ToolExecutionOptions
,
)
=>
PromiseLike
<
RESULT
>
;
}
Helper function for inferring the execute args of a tool.
Type Parameters
PARAMETERS
extends
ToolParameters
RESULT
Parameters
tool
:
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
:
(
args
:
inferParameters
<
PARAMETERS
>
,
options
:
ToolExecutionOptions
,
)
=>
PromiseLike
<
RESULT
>
;
}
Returns
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
:
(
args
:
inferParameters
<
PARAMETERS
>
,
options
:
ToolExecutionOptions
,
)
=>
PromiseLike
<
RESULT
>
;
}
tool
<
PARAMETERS
extends
ToolParameters
,
RESULT
>
(
tool
:
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
?:
undefined
}
,
)
:
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
:
undefined
}
Helper function for inferring the execute args of a tool.
Type Parameters
PARAMETERS
extends
ToolParameters
RESULT
Parameters
tool
:
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
?:
undefined
}
Returns
Tool
<
PARAMETERS
,
RESULT
>
&
{
execute
:
undefined
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
halo - v1.0.0
Loading...
Helper function for inferring the execute args of a tool.