condition

abstract fun condition(requiredCondition: ToolMessageCondition, vararg additionalConditions: ToolMessageCondition, block: RequestFailedCondition.() -> Unit)

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