onRequestContains

infix fun onRequestContains(pattern: String): String(source)

Configures the system to partially match user requests containing the specified pattern. If the pattern is found within a user request, the associated tool call response will be triggered.

Return

The pattern string for method chaining

Parameters

pattern

The substring pattern to match within user requests.