@hbbio/nanoagent
Preparing search index...
executeToolCall
Function executeToolCall
executeToolCall
<
In
extends
Record
<
string
,
unknown
>
,
Out
,
Memory
extends
ChatMemory
,
>
(
toolCall
:
ToolCall
,
handler
:
ToolHandler
<
In
,
Out
,
Memory
>
,
schema
:
TypedSchema
<
In
>
,
memory
:
Memory
,
mode
?:
"openai"
|
"mcp"
,
)
:
Promise
<
{
memPatch
?:
ChatMemoryPatch
;
message
:
ToolMessage
}
>
Execute a single
ToolCall
.
Type Parameters
In
extends
Record
<
string
,
unknown
>
Out
Memory
extends
ChatMemory
Parameters
toolCall
:
ToolCall
handler
:
ToolHandler
<
In
,
Out
,
Memory
>
schema
:
TypedSchema
<
In
>
memory
:
Memory
mode
:
"openai"
|
"mcp"
= "openai"
Returns
Promise
<
{
memPatch
?:
ChatMemoryPatch
;
message
:
ToolMessage
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@hbbio/nanoagent
Loading...
Execute a single ToolCall.