翻篇收录说明
翻篇网页快照

Transcripts – Inspect Scout

https://meridianlabs-ai.github.io/inspect_scout/transcripts.html

最近抓取:2026-12-04 20:57:26(北京时间)

最近内容变化:2026-12-02 08:24:35(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Transcript Analysis for AI Agents

正文摘录

Overview Transcripts are the fundamental input to scanners. The Transcripts class represents a collection of transcripts that has been selected for scanning, and supports various filtering operations to refine the collection. Reading Transcripts Use the transcripts_from() function to read a collection of Transcripts: from inspect_scout import transcripts_from # read from a transcript database on S3 transcripts = transcripts_from("s3://weave-rollouts/cybench") # read from an Inspect log directory transcripts = transcripts_from("./logs") The transcripts_from() function can read transcripts from either: A transcript database that contains transcripts you have imported from a variety of sources (Agent traces, RL rollouts, Inspect logs, etc.); or One or more Inspect log directories that contain Inspect .eval logs. See the sections below on the Transcripts Database and Inspect Eval Logs for additional details on working with each. Filtering Transcripts If you want to scan only a subset of transcripts, you can use the .where() method to narrow down the collection. For example: from inspect_scout import transcripts_from, columns as c transcripts = ( transcripts_from("./logs") .where(c.task_set == "cybench") .where(c.model.like("openai/%")) ) See the Columns documentation for additional details on supported filtering operations. You can also limit the total number of transcripts as well as shuffle the order of transcripts read (both are useful during scanner development when you don’t want to process all transcripts). For example: from inspect_scout import transcripts_from transcripts = ( transcripts_from("./logs") .limit(10) .shuffle(42) ) Viewing Transcripts You can use Scout View to view and filter transcripts: scout view If you filter down into a set of transcripts that you want to analyze, use the Copy button to copy the code required to apply the filter: If you drill into a transcript you can see its messages, events, and other details: Transcript Fields Here are the available Transcript fields: Field Type Description transcript_id str Globally unique identifier for a transcript (maps to EvalSample.uuid in Inspect logs). source_type str Type of transcript source (e.g. “eval_log”, “weave”, etc.). source_id str Globally unique identifier for a transcript source (maps to eval_id in Inspect logs) source_uri str URI for source data (e.g. full path to the Inspect log file). date iso Date/time when the transcript was created. task_set str Set from which transcript task was drawn (e.g. Inspect task name or benchmark name) task_id str Identifier for task (e.g. dataset sample id). task_repeat int Repeat for a given task id within a task set (e.g. epoch). agent str Agent used to to execute task. agent_args dict JSON Arguments passed to create agent. model str Main model used by agent. model_options dict JSON Generation options for main model. score JsonValueJSON Value indicating score on task. score_explanation str Scorer’s account of how it reached score, where it gave one. success bool Boolean reduction of score to succeeded/failed. message_count int Total messages in conversation. total_time number Time required to execute task (seconds) total_tokens number Tokens spent in execution of task. error str Error message that terminated the task. limit str Limit that caused the task to exit (e.g. “tokens”, “messages, etc.) trust_content bool Whether the viewer may render the transcript’s model output richly. False shows it as plain text. For Inspect logs this is the task’s ViewerConfig(trust_content=...). messages_from list[str] uuids of the ModelEvents whose conversation messages is. Set by the transcript importers; None for Inspect logs. metadata dict[str, JsonValue] Transcript source specific metadata (e.g. model, task name, errors, epoch, dataset sample id, limits, etc.). For Inspect logs this includes sample_metadata, target and scores from the sample body unless the scanner passes metadata=False. messages list[ChatMessage] Message history. events list[Event] Event history (e.g. model events, tool events, etc.) timelines list[Timeline] Optional list of custom timelines for this transcript. Scanning Transcripts Once you have established your list of transcripts to scan, just pass them to the scan() function: from inspect_scout import scan, transcripts_from from .scanners import ctf_environment, java_tool_calls scan( scanners = [ctf_environment(), java_tool_calls()], transcripts = transcripts_from("./logs") ) If you want to do transcript filtering and then invoke your scan from the CLI using scout scan, then perform the filtering inside a @scanjob. For example: cybench_scan.py from inspect_scout ( import ScanJob, scanjob, transcripts_from, columns as c ) from .scanners import deception, tool_errors @scanjob def cybench_job(logs: str = "./logs") -> ScanJob: transcripts = transcripts_from(logs) transcripts = transcripts.where(c.task_set == "cybench") return ScanJob( scanners = [deception(), java_tool_usages()], transcripts = transcripts ) Then from the CLI: scout scan cybench.py -S logs=./logs --model openai/gpt-5 The -S argument enables you to pass arguments to the @scanjob function (in this case determining what directory to read logs from). Inspect Eval Logs The transcripts_from() function can read a collection of transcripts directly from an Inspect log directory. You can specify one or more directories and/or individual log files. For example: # read from a log directory transcripts = transcripts_from("./logs") # read multiple log directories transcripts = transcripts_from(["./logs", "./logs2"]) # read from one or more log files transcripts = transcripts_from( ["logs/cybench.eval", "logs/swebench.eval"] ) For Inspect logs, the metadata field within TranscriptInfo includes fields from eval sample metadata. For example: transcript.metadata["sample_id"] # sample uuid transcript.metadata["id"] # dataset sample id transcript.metadata["epoch"] # sample epoch transcript.metadata["eval_metadata"] # eval metadata transcript.metadata["sample_metadata"] # sample metadata (full, unless the scanner passes metadata=False) transcript.metadata["score_<scorer>"] # named sample scores See the LogColumns class for details on all of the fields included in transcript.metadata. Use log_columns (aliased to c below) to do typesafe filtering for Inspect logs: from inspect_scout import transcripts_from, log_columns as c transcripts = ( transcripts_from("./logs") .where(c.sample_metadata.category == "accounting") ) Transcripts Database Scout can analyze transcripts from any source (e.g. Agent traces, RL rollouts, etc.) so long as the transcripts have been organized into a transcripts database. Transcript databases use Parquet files for storage and can be located in the local filesystem or remote systems like S3. You can read from a transcript database using the transcripts_from() function. For example: from inspect_scout import transcripts_from # read from a transcript database on S3 transcripts = transcripts_from("s3://weave-rollouts/cybench") See the Transcripts Database documentation for additional details on creating, managing, and publishing transcript databases.