ArchAstro.V1.Trajectories (archastro v0.2.0)

Copy Markdown

Trajectory API resource.

Summary

Functions

Retrieve raw trajectory contents

Retrieve a trajectory

Functions

contents(client, trajectory)

@spec contents(ArchAstro.Client.t(), String.t()) ::
  {:ok, String.t()} | {:error, ArchAstro.Error.reason()}

Retrieve raw trajectory contents

Returns the raw JSON contents of the trajectory identified by trajectory. The response body is the trajectory's stored content blob rendered directly as application/json, bypassing the standard schema serialization used by the Show endpoint.

Use this endpoint when you need the unprocessed trajectory data — for example, to replay or inspect model reasoning steps in full fidelity (eval grading). The authenticated user must have access to the trajectory; trajectories outside the caller's workspace scope return 404.

Raw trajectory JSON blob. The Content-Type header is application/json.

get(client, trajectory)

Retrieve a trajectory

Returns the AI trajectory identified by trajectory. A trajectory captures the model's full reasoning steps, messages, and metadata for a single AI invocation, including references to the associated team, organization, sandbox, and storage file when present.

The authenticated user must have access to the trajectory. Trajectories are scoped to the workspace of the requesting user; attempting to access a trajectory outside that scope returns 404.

The requested trajectory object.