Skip to main content
Create client with analyses(). Start a wave with jobs.analyze, then read its results here.
Python exposes list, defaults, download, and filesystem. Direct get, transcript, and artifact reads are TypeScript-only. In Python, list(job=...) or Trial.analysis gives the result; an analysis download gives its stored evidence.

list

List visible analyses, newest first. Returns one page or an iterable of TrialAnalysis.
Optional scope: my (default), shared, or org; job: source job id; status: list of queued, running, completed, or failed. limit defaults to 50 (maximum 200); cursor continues a page. Python analysis rows are dictionaries: row["id"], row["checks"]. Analysis result fields include failures and cost as well as the per-criterion checks.

defaults

Read the current analysis defaults. Returns AnalyzeDefaults: model, effort, sandbox provider, rubric, and unrendered prompt template.
Python returns a dictionary. These are current defaults; an existing analysis records the policy it actually ran under.

get

TypeScript only. Read one TrialAnalysis at any status, including an earlier analysis no longer attached to Trial.analysis.
Takes one analysis id. Missing or inaccessible records return analysis_not_found.

transcript

TypeScript only. Read the analyzer’s own activity, not the evaluated agent’s trace. Returns AnalysisTranscript.
Optional since is the number of events already read (nonnegative integer, default 0). There is no server-side pagination. total counts all stored events; events starts at since. gateway_calls is returned separately in full on each read. See transcript fields.

artifact

TypeScript only. Read the analyzer’s stored stdout, stderr, or captured home.
trace-stdout and trace-stderr return string | null; agent-home returns Record<string, string> | null. Null means not stored. Analyses do not expose trial verifier or trace-atif artifact selectors.

download

Download a settled analysis as a .tar.gz containing its wrapper trial, transcript, logs, and available result artifacts.
Omit delivery options to return Buffer / bytes; to saves to a directory and returns a path. TypeScript also accepts { stream: true }, returning a raw ReadableStream<Uint8Array> that the caller must verify. Python has no stream option. Queued or running analyses return analysis_not_terminal.

filesystem

Get the analyzer’s RunFilesystem, including its live or captured files, sandbox logs, and process list.
This is the analyzer’s sandbox, separate from the trial it analyzed. See filesystem methods.