Skip to contents

Describes a question to ask the model and the answers to accept.

Usage

eval_case(question, ...)

Arguments

question

Question to ask the model.

...

Answers to accept, each a tool_call(), or a list of tool_call() when the answer takes several calls, in any order and among others. With no answer, the model must call no tool.

Value

A list with elements question and answers.

Examples

eval_case(
  "Show me my long runs in 2024.",
  tool_call(
    "get_runs",
    year = 2024,
    type = "long"
  )
)
#> $question
#> [1] "Show me my long runs in 2024."
#> 
#> $answers
#> $answers[[1]]
#> $answers[[1]][[1]]
#> $answers[[1]][[1]]$tool
#> [1] "get_runs"
#> 
#> $answers[[1]][[1]]$args
#> $answers[[1]][[1]]$args$year
#> [1] 2024
#> 
#> $answers[[1]][[1]]$args$type
#> [1] "long"
#> 
#> 
#> 
#> 
#>