addLLMAnswerExactPattern
fun <Args : ToolArgs> addLLMAnswerExactPattern(pattern: String, tool: Tool<Args, *>, args: Args, toolCallId: String?)(source)
Adds an exact pattern match for an LLM answer that triggers a tool call.
Parameters
pattern
The exact input string to match
tool
The tool to be called when the input matches
args
The arguments to pass to the tool
fun <Args : ToolArgs> addLLMAnswerExactPattern(pattern: String, toolCalls: List<Pair<Tool<Args, *>, Args>>)(source)
Adds an exact pattern match for an LLM answer that triggers a set of tool calls.
Parameters
pattern
The exact input string to match
toolCalls
Tool calls with args
fun <Args : ToolArgs> addLLMAnswerExactPattern(pattern: String, toolCalls: List<Pair<Tool<Args, *>, Args>>, responses: List<String>)(source)
Adds an exact pattern match for an LLM answer that triggers a set of tool calls with predefined responses.
Parameters
pattern
The exact input string to match.
toolCalls
A list of tool call and argument pairs to be triggered when the input matches.
responses
A list of response strings corresponding to each tool call.