SDK reference · Python SDK

prov.mandate.takeover.agent

prov.mandate.takeover.agent in Python SDK.

Signature

prov.mandate.takeover.agent(agent_id: str) -> Any

Parameters

agent_idstrRequired

Request fields

idstringpathRequired
Your agent's ID.

Returns

Any The agent's verdict.

HTTP operation

GET /v1/mandate/agents/{id}/takeover: Read an agent's takeover verdict

Errors

Example

const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents`, {
  method: "POST",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "name": "invoice-bot" }),
})).json();
const agentId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/agents/${agentId}/takeover`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.