Circle V2 API Docs
    Preparing search index...

    Type Alias UpsertAiFeedbackParams

    A user's thumbs vote on an AI output. targetRef is the canonical per-output key (e.g. the audit_response id, chat message id, or session_<id>_note); the optional domain refs are stored for later correlation/deep-linking. Phase 2 writes to our table only — LangSmith trace-tagging is a later phase.

    type UpsertAiFeedbackParams = {
        auditQuestionId?: AuditQuestionId | null;
        auditResponseId?: AuditResponseId | null;
        auditRunId?: AuditRunId | null;
        comment?: string | null;
        conversationId?: string | null;
        correction?: string | null;
        createdBy: UserId;
        entityId?: EntityId | null;
        feedbackKey?: string;
        flow: AiFeedbackFlow;
        langsmithThreadId?: string | null;
        messageId?: string | null;
        patientId?: PatientId | null;
        patientSessionId?: SessionId | null;
        rating: AiFeedbackRating;
        targetRef: string;
        targetSnapshot?: string | null;
        threadSnapshot?: AiFeedbackThreadTurn[] | null;
    }
    Index

    Properties

    auditQuestionId?: AuditQuestionId | null
    auditResponseId?: AuditResponseId | null
    auditRunId?: AuditRunId | null
    comment?: string | null
    conversationId?: string | null
    correction?: string | null
    createdBy: UserId
    entityId?: EntityId | null
    feedbackKey?: string
    langsmithThreadId?: string | null
    messageId?: string | null
    patientId?: PatientId | null
    patientSessionId?: SessionId | null
    targetRef: string
    targetSnapshot?: string | null
    threadSnapshot?: AiFeedbackThreadTurn[] | null