Skip to contents

as_agent_run() turns any high-level result into an agent_run: a single object that exposes a run at five levels through one tidy accessor, tibble::as_tibble(run, level = c("utterance","event","call","tool","state")), and that backs agent_manifest(), archive_agent_study(), diagnostics(), and report().

Usage

as_agent_run(x, ...)

# S3 method for class 'agent_run'
as_tibble(x, ..., level = c("utterance", "event", "call", "tool", "state"))

Arguments

x

An Agent; a conversation, debate, focus group, interview, or deliberation; an agent_pipeline_run; a super_brain; an agent_experiment; or a LLMR::call_llm_par()-style result frame.

...

Unused.

level

The grain to return: "utterance" (analysis grain), "event" (every span), "call" (one canonical LLMR::llm_response_record() row per model call), "tool" (tool invocations with arg/result hashes), or "state" (each participating agent's memory at run end).

Value

An object of class agent_run.

Details

Provenance is captured during every model call, so converting costs nothing during the run; the views are built on demand. For a bare Agent, the result is a live view of the agent's session so far.