View as Markdown

SDK reference · Node SDK

prov.trace.trips

prov.trace.trips in the Node SDK: 4 methods. The trip log, human review and the opt-in AI summary.

Methods

list

prov.trace.trips.list(params?: { traceId?: string; family?: string; limit?: number; cursor?: string }): Promise<{ object: "list"; data: CanaryTrip[]; hasMore: boolean; nextCursor: string | null }>

Calls GET /v1/trace/trips.

get

prov.trace.trips.get(tripId: string): Promise<CanaryTripDetail>

Calls GET /v1/trace/trips/{id}.

feedback

prov.trace.trips.feedback(tripId: string, params: { verdict: "true_positive" | "false_positive" | "unsure"; note?: string }): Promise<CanaryTrip & { fieldPrecision: Array<{ family: string; truePositive: number; falsePositive: number }> }>

Record a verdict (audit-logged; feeds field precision; never changes a threshold).

Calls POST /v1/trace/trips/{id}/feedback.

summary

prov.trace.trips.summary(tripId: string, params?: { regenerate?: boolean }): Promise<CanaryTripSummary>

The opt-in AI summary, grounded only in the trip's explanations.

Calls POST /v1/trace/trips/{id}/summary.

Was this page helpful? Send us feedback

LLM? Read llms.txt.