onToolCall

Creates an edge that filters tool call messages based on a custom condition.

Parameters

block

A function that evaluates whether to accept a tool call message


Creates an edge that filters tool call messages for a specific tool and arguments condition.

Parameters

tool

The tool to match against

block

A function that evaluates the tool arguments to determine if the edge should accept the message


Creates an edge that filters tool call messages for a specific tool.

Parameters

tool

The tool to match against