Skip to contents

Describes a call the model is expected to make in an eval case.

Usage

tool_call(tool, ...)

Arguments

tool

Name of the tool.

...

Arguments of the call, named: the model must pass exactly these. Wrap a value in partial() to accept part of it.

Value

A list with elements tool and args.

Examples

tool_call(
  "get_runs",
  year = 2024,
  type = "long"
)
#> $tool
#> [1] "get_runs"
#> 
#> $args
#> $args$year
#> [1] 2024
#> 
#> $args$type
#> [1] "long"
#> 
#>