maigp-openai-agents
AIGP governance for the OpenAI Agents SDK, at the agent-loop level.
Part of MAIGP — the Mediated AI Governance Protocol: a runtime consent / scope / evidence layer for AI systems. Every governed call is CHECKed before it runs (policy, scope, jurisdiction, circuit-breaker) and RECORDed + TRACEd as tamper-evident evidence after.
What it governs
Governs the OpenAI Agents SDK agent loop — Runner.run(agent, input), tools, and handoffs.
Governance model
This adapter maps the framework's lifecycle onto the AIGP agent-governance loop provided by maigp-agent-core:
| Framework event | AIGP action |
|---|---|
| run / invocation start | CHECK (pre_invoke) — allowed? under what authority? |
| each model reply | token accounting (on_model_call) |
| each tool / function call | tool governance (on_tool_call) |
| run complete | RECORD + TRACE (post_invoke) |
| failure | on_error (recorded, then re-raised) |
Install
pip install maigp-openai-agents
Pulls in maigp-agent-core (shared lifecycle) and, transitively, maigp-client.
Quick start
from agents import Agent, Runner # OpenAI Agents SDK
from aigp_openai_agents import AigpAgentsGovernance
gov = AigpAgentsGovernance(gov_url="https://gov.example.com",
app_id="my-agent", hmac_secret="secret")
agent = Agent(name="analyst", instructions="...", tools=[...])
result = await gov.run(agent, "Analyze this finding")
# CHECK before the run · usage read from RunResult · RECORD+TRACE after
Not to be confused with maigp-openai
This package governs the Agents SDK agent loop. For raw openai.chat.completions calls, use maigp-openai instead. The Runner is injected (duck-typed) so no specific SDK version is required.
Links
- Protocol, specs & full adapter catalog: https://github.com/owner-spec/aigp-protocol
- Issues: https://github.com/owner-spec/aigp-protocol/issues
License: Proprietary. © Kanjani AI Research & Causum.
Metadata
Release files for maigp-openai-agents 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| maigp_openai_agents-1.0.1.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maigp_openai_agents-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / maigp_openai_agents-1.0.1.tar.gz
| Download URL | maigp_openai_agents-1.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fcd31ef9a79c305c658990792f7a41d36988934300cb1485f3475eff3949733
|
|
BLAKE2b-256 checksum How to use checksums |
b7864154d682e4e718f9330d6e12d05a54586b9ae06d7b2d80be03f65d7fd957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / maigp_openai_agents-1.0.1-py3-none-any.whl
| Download URL | maigp_openai_agents-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22215cb01a25500dce8bee7a583e8017fec091221c6ef49e6a489e7cd00c44c1
|
|
BLAKE2b-256 checksum How to use checksums |
a0762a1e67b24c188ac2a0671b56a01aa9cc8c9dfdf0f004b9850de81fca4a57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|