onCondition
Configures a conditional response or tool call based on a custom condition provided as a lambda. The condition evaluates user input, and if the condition is satisfied, the associated responses or tool calls are utilized.
Parameters
condition
A lambda function that takes a user input string and returns a boolean. If the lambda returns true, the predefined responses or tool calls associated with this condition will be triggered.