decisions 0.1.0
Initial CRAN submission.
Deciders:
decider_typesafe(),decider_openai(),decider_foundry(),decider_openrouter()anddecider_systemone().Questions:
question_noul(),question_choice()andquestion_score().decide()calls one model for many inputs. It returns a tibble in the tidymodels style, with one row for each input in input order. A failed call keeps its row, withNAanswers and the reason in.error.Setups:
decision_setup(),write_setup()andread_setup()keep the question, the descriptions, the references and the calibrator in one JSON file.Scoring:
score_setup()scores a setup on labeled rows.evaluate_once()runs the one-time test.Six vignettes: getting started, choosing a model, open models, grading with a rubric, images, and the industrial image inspection case study.
Four datasets:
ohio_injuries,ohio_recalls,textilesandrubric_answers.An agent skill, in
system.file("skills", "decisions", package = "decisions").Requirements: R 4.3.0 or newer (for
@on S7 objects), httr2 1.2.0 or newer, and rlang 1.3.0 or newer. rlang 1.3.0 changed the values ofrlang::hash(), and thepathfiles, the run hash and the calibrator hash of a setup use it. With an older rlang, apathfile or a setup from a newer rlang does not match.