models.FeedbackCandidate

A single piece of developer pushback extracted from a transcript.

Usage

Source

models.FeedbackCandidate(
    dedup_key,
    source_kind,
    occurred_at,
    text,
    window,
    ref,
    signal,
    session_id=None,
    cc_version=None,
    payload=None
)

Parameter Attributes

dedup_key: DedupKey
source_kind: SourceKind
occurred_at: datetime
text: str
window: ContextWindow
ref: EventRef
signal: CandidateSignal
session_id: SessionId | None = None
cc_version: str | None = None
payload: Mapping[str, Any] | None = None

Attributes

dedup_key: DedupKey

The content-derived key that makes ingestion idempotent.

source_kind: SourceKind

Which detector produced the candidate.

occurred_at: datetime

When the feedback was given.

text: str

The verbatim pushback text.

window: ContextWindow

The durable context window around the feedback, captured via ~cc_transcript.context.capture_window().

ref: EventRef

The resolvable reference to the originating event.

signal: CandidateSignal

The de-noising confidence signal.

session_id: SessionId | None

The transcript session the feedback came from.

cc_version: str | None

The Claude Code version recorded for the origin.

payload: Mapping[str, Any] | None
Detector-specific metadata preserved verbatim.