@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • 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.

      Parameters

      • trajectory: string

        Trajectory ID (trj_...) whose raw contents to retrieve.

      Returns Promise<{ content: ArrayBuffer; mimeType: string }>

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

    • 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.

      Parameters

      • trajectory: string

        Trajectory ID (trj_...) of the trajectory to retrieve.

      Returns Promise<Trajectory>

      The requested trajectory object.