Get Artifact Content In Experiment
Return raw bytes for a base64-backed artifact entry.
Use this tool only after obtaining artifact_name from artifact listing
or descriptor endpoints and when raw bytes are actually required. This
route is for binary retrieval, not discovery.
When to Use:
- Call this only after discovery or descriptor lookup has confirmed the
correct
artifact_name. - Call this when raw bytes are required for download or downstream processing rather than textual summarization.
Constraints:
- The stored artifact must resolve to a base64-backed read-side shape.
- This route is for retrieval only and does not provide artifact discovery metadata.
Notes:
- Agent responses should summarize content type or size when useful, not inline the binary data itself.
- The response is plain HTTP binary content with the detected media type.
Args: experiment_id: Parent experiment identifier. artifact_name: Artifact key within experiment metrics. user: Authenticated user resolved from the API key. db: Active database session.
Returns: A binary HTTP response with the detected media type.
Raises:
HTTPException: Raised with 404 if the experiment is unavailable to
the caller or the artifact key is missing, or by helper decoding
logic when the stored artifact cannot be served as binary content.