Langfuse JS/TS SDKs
    Preparing search index...

    Interface CreateCommentRequest

    This file was auto-generated by Fern from our API Definition.

    interface CreateCommentRequest {
        authorUserId?: string;
        content: string;
        objectId: string;
        objectStartTime?: string;
        objectType: string;
        projectId: string;
    }
    Index

    Properties

    authorUserId?: string

    The id of the user who created the comment. Must be a member of the organization that owns the project, otherwise an error will be thrown.

    content: string

    The content of the comment. May include markdown. Currently limited to 5000 characters.

    objectId: string

    The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.

    objectStartTime?: string

    The start time of the referenced object (for observations, the observation's start time). Optional performance hint - when provided, Langfuse narrows the lookup to validate the reference faster. It only affects speed - an incorrect or omitted value never changes the result.

    objectType: string

    The type of the object to attach the comment to (trace, observation, session, prompt).

    projectId: string

    The id of the project to attach the comment to.