Skip to contents

Creates dev/evals.R, a script that checks, through Claude Code, that the model calls the right tool with the right arguments, and .github/workflows/evals.yaml, a workflow that runs it when started by hand. Replace the example cases of the script with questions your users ask, and add an ANTHROPIC_API_KEY secret to the repository for the workflow.

Usage

use_evals(mordew_wd = get_mordew_wd())

Arguments

mordew_wd

Path to the package, get_mordew_wd() by default.

Value

Whether each of the two files was copied, as file.copy() gives it.

Examples

path <- file.path(
  tempfile(),
  "runlog"
)
create_mordew(
  path
)
use_evals(
  path
)
#> [1] TRUE TRUE
list.files(
  file.path(
    path,
    "dev"
  )
)
#> [1] "01_start.R"  "02_dev.R"    "03_deploy.R" "evals.R"