| expect_tool_selection | R Documentation |
Test that an agent selects the correct tool(s) for a given task.
expect_tool_selection(result, expected_tools, exact = FALSE, info = NULL)
result |
A GenerateResult object from generate_text with tools. |
expected_tools |
Character vector of expected tool names. |
exact |
If TRUE, require exactly these tools (no more, no less). |
info |
Additional information for failure message. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.