Skip to main content

Installation

pip install operark

Initialize

from operark import Operark

client = Operark(api_key="YOUR_API_KEY")

Ask an executive

response = client.executives.CEO.ask(
    question="What's our strategy for Q2?"
)

print(response.answer)

Request a governed decision

decision = client.executives.CRO.decide(
    question="Approve a new vendor without ISO 27001?"
)

print(decision.outcome, decision.rationale)

Error handling

from operark import Operark, OperarkError

try:
    client.executives.CFO.ask(question="Q2 burn rate?")
except OperarkError as err:
    print(err.code, err.message)

API Reference

Full endpoint reference, generated from OpenAPI.