# `Nous.Eval.Scorers.ToolArgs`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/nous/eval/scorers/tool_args.ex#L1)

Checks the arguments of one tool's calls in the trace.

    {Nous.Eval.Scorers.ToolArgs, tool: "search_orders", args: %{"order_id" => "123"}}

The score is named `"tool_args.<tool>"`.

## Options

  * `:tool` - the tool name (required)
  * `:args` - the expected arguments, a map (required)
  * `:occurrence` - which calls must match: `:all` (default; every call of
    the tool), `:any`, `:first`, `:last`, or `n` (the n-th call, from 1)
  * `:match` - `:subset` (default; recursive), `:exact`, or a function
    `(actual, expected -> boolean)` (Elixir only)
  * `:ignore_args`, `:numbers` - as in `Nous.Eval.Scorers.Trajectory`
  * `:include` - which call outcomes count (default `[:executed]`)
  * `:scope` - `:root` (default), `:tree` or `{:sub_agent, template}`

The sample fails when the tool was not called. On a truncated trace a
result that later calls could change (not called, `:all`, `:last`, a
missing n-th call, or `:any` without a match) is a `:missing_trace` error.
`details.mismatches` lists `%{tool_call_id:, paths:}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
