Metadata
The AgentRun and Transcript objects both take inmetadata fields, which should be of the form dict[str, Any].
Any metadata should be JSON serializable. When metadata is rendered/stored, Docent converts it to JSON-compatible values using Pydantic’s serializer (which supports common Python collections and nested Pydantic models).
We recommend including information about metrics / scores in the metadata, as well as other information about the agent or task setup.
Scoring fields are useful for tracking metrics, like task completion or reward, but they are a convention rather than a required schema. Neither AgentRun nor Transcript enforces required metadata keys.
Here’s an example of what a typical metadata might look like:
docent.loaders.load_inspect also contains a load_inspect_log function which reads the standard scoring and metadata information from Inspect logs and copies them into Docent metadata.
