condition

open override fun condition(requiredCondition: ToolMessageCondition, vararg additionalConditions: ToolMessageCondition, block: ToolCondition.() -> Unit)(source)

Adds a ToolCondition to the optional array of conditions that the tool call arguments must meet in order for this message to be triggered.