SDK reference · Node SDK

prov.trace.baselines.list

prov.trace.baselines.list in Node SDK.

Signature

prov.trace.baselines.list(params?: { agentId?: string; modelVersion?: string; status?: TraceCanaryBaseline["status"]; limit?: number; cursor?: string }): Promise<{ object: "list"; data: TraceCanaryBaseline[]; hasMore: boolean; nextCursor: string | null }>

Parameters

params{ agentId?: string; modelVersion?: string; status?: TraceCanaryBaseline["status"]; limit?: number; cursor?: string }

Request fields

agent_idstringquery
The registered agent's ID.
model_versionstringquery
The model version, as a registry model ID.
statusenumquery
The object's current status. One of learning, ready, stale, superseded.
limitintegerquery
The most items to return, from 1 to 100. The default is 20.
cursorstringquery
The next_cursor from the previous page.

Returns

Promise<{ object: "list"; data: TraceCanaryBaseline[]; hasMore: boolean; nextCursor: string | null }> The baselines, newest first.

HTTP operation

GET /v1/trace/baselines: List canary baselines

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/baselines`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.