onCondition
Configures the LLM to respond with a tool call based on a custom condition.
Parameters
condition
A predicate function that takes a string input and returns a Boolean. The condition determines whether the associated tool call should be triggered.