Langfuse JS/TS SDKs
    Preparing search index...

    Interface GetMediaUploadUrlRequest

    interface GetMediaUploadUrlRequest {
        contentLength: number;
        contentType: MediaContentType;
        datasetId?: string;
        datasetItemId?: string;
        field?: string;
        observationId?: string;
        sha256Hash: string;
        traceId?: string;
    }
    Index

    Properties

    contentLength: number

    The size of the media record in bytes

    contentType: MediaContentType
    datasetId?: string

    The dataset the media belongs to. Null for trace/observation media uploads.

    datasetItemId?: string

    The dataset item the media is associated with (need not exist yet). Null for trace/observation media uploads.

    field?: string

    The item field the media is in: input/output/metadata (trace) or input/expectedOutput/metadata (dataset item).

    observationId?: string

    The observation ID associated with the media record. If the media record is associated directly with a trace, this will be null.

    sha256Hash: string

    The SHA-256 hash of the media record

    traceId?: string

    The trace the media is associated with. Null for dataset item media uploads.