View as Markdown

SDK reference · Python SDK

prov.account.set_trace_explanations

prov.account.set_trace_explanations in Python SDK. On" | "off" for the AI summary and/or AI labelling (an owner/admin session, or an admin-scope key).

Signature

prov.account.set_trace_explanations(ai_summary: Optional[str] = …, ai_labeling: Optional[str] = …) -> Any

Parameters

ai_summaryOptional[str]
ai_labelingOptional[str]

Request fields

ai_summaryenum
Whether AI trip summaries are on or off. One of off, on.
ai_labelingenum
Whether the canary family builder may send example text to the AI provider for proposed labels and plain words. Send either field or both. One of off, on.

Returns

Any The setting.

HTTP operation

PUT /v1/trace/settings/explanations: Set the AI settings

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/trace/settings/explanations`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "ai_summary": "off" }),
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.