Langfuse JS/TS SDKs
    Preparing search index...

    Type Alias UploadMediaParamsInternal

    Parameters for uploadMedia.

    type UploadMediaParams = {
        apiClient: LangfuseAPIClient;
        baseDelay?: number;
        field?: string;
        logger?: Logger;
        maxRetries?: number;
        media: LangfuseMedia;
        observationId?: string;
        traceId?: string;
    }
    Index

    Properties

    The API client used to request the upload URL and report completion.

    baseDelay?: number

    Base delay in milliseconds for exponential backoff. Defaults to 1000.

    field?: string

    The trace / observation field the media is associated with (input, output, or metadata). Ignored when traceId is omitted.

    logger?: Logger

    Logger to use. Defaults to the global logger.

    maxRetries?: number

    Maximum number of upload retries on transient failures. Defaults to 3.

    The media to upload.

    observationId?: string

    The observation the media belongs to, if any.

    traceId?: string

    The trace the media belongs to. Omit for media that is not associated with a trace (e.g. dataset item media).