expression
Add a pattern-based response that does not require an API call. Expressions are evaluated in order; the first matching pattern wins.
Parameters
testValue
Template string to test (e.g., "${args.command}").
pattern
Regex pattern to match against the test value.
output
FunctionResult to return when the pattern matches.
nomatchOutput
Optional FunctionResult to return when the pattern does not match.
Returns
DataMap — Self for method chaining.