List Artifacts In Experiment
List normalized artifact descriptors derived from experiment metrics.
Use this tool when the caller wants to discover which artifacts exist before
fetching one specific artifact or downloading binary content. Read-side
artifact shapes are normalized for MCP, so the returned kind may be
more compact than the original write-time kind.
When to Use:
- Call this before fetching one named artifact or before downloading base64-backed content.
- Call this when the caller needs a discoverable list of current artifact keys and normalized output types.
Constraints:
- The endpoint reads the stored experiment metrics map as-is; it does not create a metrics container for experiments that do not already have one.
- The returned
kindreflects MCP normalization, not a guaranteed round-trip of the original write-time artifact kind.
Notes:
- The endpoint returns metadata only.
- When an artifact is base64-backed, the response includes
content_urlrather than raw bytes.
Args: experiment_id: Parent experiment identifier. user: Authenticated user resolved from the API key. db: Active database session.
Returns: A list of normalized artifact descriptors for the experiment.
Raises:
HTTPException: Raised with 404 when the experiment is not available
to the caller.