Python SDK
The Ollive Python SDK.
Your agents’ record, in your product.
Put Ollive’s findings, evidence and trends wherever your team and your customers already look. A few lines of Python give you everything you see in Ollive, fully typed and ready for production.
- Install
pip install ollive- Version
0.1.0- Requires
- Python 3.10 or later
What you can build
Ollive checks every conversation your agents have against the laws, frameworks and contracts they’re bound by. The SDK puts that record in your hands.
A compliance view your customers can see
Show each of your customers how their agents measure up against the rules they’re bound by, inside your product and in your design.
See how Leadership reportingA weekly risk report that writes itself
What changed this week, where the risk sits and what to look at first, in your leadership’s inbox before they ask.
See how Real-time alertsA page the moment a critical finding appears
Check every few minutes for new critical findings and page whoever’s on call, with the rule and the law attached.
See how Audit-ready evidenceEvidence in every audit file
Attach the rule, the clause and the exact words behind each finding to the file your auditors review.
See howA few lines is all it takes
Every high-severity rule your agents didn’t meet, and how often, with one call:
findings.py
from ollive import Ollive, Severity client = Ollive() # reads OLLIVE_API_KEY for finding in client.findings.list(severities=[Severity.CRITICAL, Severity.HIGH]): print(finding.rule.title, finding.in_time_range.run_count, "runs")Or let your coding agent build it
Describe what you want in your own words, and your coding agent writes the integration. Every method and field is typed and documented, so it gets the calls right the first time, and you review the change like any other.
- Prompt
Add a compliance panel to our agent page with the ollive Python SDK: the share of rules met, with the change on last week, and the top findings with their citations.
- Prompt
Write a job that emails our leadership a weekly AI risk summary from Ollive: findings this week against last week, where the risk sits by rule set, and what to look at first.
- Prompt
Every 15 minutes, check Ollive for new critical findings and send each one to our on-call webhook with the rule, the agent and its citations.
Connect the Ollive MCP server to the same agent, and it can check your real agents and findings while it builds.
Built for production
Typed, end to end
Every request and response has type hints, and every fixed value is an enum. Your editor completes it, and your type checker catches a typo before it ships.
Sync or async
OlliveandAsyncOlliveshare every method. Use the one your service already runs on.Pages itself
List methods hand you an iterator. Loop over it, and the SDK fetches the next page as you need it.
Retries for you
Dropped connections, timeouts, rate limits and server errors are retried with backoff, honouring
Retry-After.Errors you can act on
One exception family, with a stable
code, the field at fault and a request ID to send support.Ready for what’s next
New fields and values from Ollive never break the version you’ve installed. Upgrade when it suits you.