tests/testthat/_snaps/helper-init.md

initializing a helper

Code
  .init_helper("cli")
Message

  -- A cli chore helper using claude-3-5-sonnet-latest.
Code
  .init_helper("testthat")
Message

  -- A testthat chore helper using claude-3-5-sonnet-latest.

can use other models

Code
  .init_helper("cli", .chores_chat = ellmer::chat_openai(model = "gpt-4o-mini"))
Message

  -- A cli chore helper using gpt-4o-mini.

errors informatively with bad chore

Code
  .init_helper()
Condition
  Error in `.init_helper()`:
  ! `chore` must be a single string, not `NULL`.
Code
  .init_helper(NULL)
Condition
  Error in `.init_helper()`:
  ! `chore` must be a single string, not `NULL`.
Code
  .init_helper("beepBopBoop")
Condition
  Error in `.init_helper()`:
  ! No helpers for chore `beepBopBoop` registered.
  i See `prompt_new()`.


Try the chores package in your browser

Any scripts or data that you put into this service are public.

chores documentation built on April 3, 2025, 9:31 p.m.