| vitals_log_read | R Documentation |
Reconstruct the samples of a logged evaluation, including their
ellmer::Chat objects, from an eval log file written by Task's $log()
method (or by Python Inspect).
Chats are rebuilt from the log's message history: turn contents (text,
reasoning, images, tool calls, and tool results), per-turn token usage,
durations, and finish reasons are all restored. Information that is not
written to the log–most notably provider configuration beyond the model
name and the raw provider responses–cannot be recovered. Tool functions
are not serializable; pass tools to re-attach tool definitions by name.
vitals_log_read(path, solver_chat = NULL, scorer_chat = NULL, tools = list())
path |
Path to an eval log file, e.g. an element of the output of
|
solver_chat |
Optional. An ellmer::Chat object to use as the base
for reconstructed solver chats. When |
scorer_chat |
Optional. Analogous to |
tools |
Optional. A named list of |
A tibble with columns id, epoch, input, target, result,
score, and solver_chat, mirroring the output of Task's
$get_samples() method. When the log contains model-graded scoring events,
a scorer_chat column is included as well.
logs <- list.files(
system.file("test/inspect/logs", package = "vitals"),
full.names = TRUE
)
samples <- vitals_log_read(logs[1])
samples$solver_chat[[1]]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.