SDK reference · Node SDK

prov.trace.trips.summary

prov.trace.trips.summary in Node SDK. The opt-in AI summary, grounded only in the trip's explanations.

Signature

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

Parameters

tripIdstringRequired
params{ regenerate?: boolean }

Request fields

Idempotency-Keystringheader
Retry a create safely: the same key + request returns the stored response (24 h, per caller).
idstringpathRequired
The canary trip's ID.
regenerateboolean
Write a new summary even if one exists.

Returns

Promise<CanaryTripSummary> The summary.

HTTP operation

POST /v1/trace/trips/{id}/summary: Write a trip summary

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/trips/trp_01M5Q2KD3N7V4Y9W1XQ2B8R6TS/summary`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "regenerate": false }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.