Skip to main content

maigp-microsoft-agent-framework

AIGP governance for the Microsoft Agent Framework (MAF).

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 MAF agents (ChatAgent runs, function tools, and the middleware chain).

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-microsoft-agent-framework

Pulls in maigp-agent-core (shared lifecycle) and, transitively, maigp-client.

Quick start

from agent_framework import ChatAgent            # MAF
from aigp_microsoft_agent_framework import AigpMafGovernance

gov = AigpMafGovernance(gov_url="https://gov.example.com",
                        app_id="my-maf-agent", hmac_secret="secret")

# Style 1 — wrap a run explicitly:
result = await gov.run(agent, "Analyze this finding", agent_name="analyst")

# Style 2 — register as MAF middleware for automatic coverage:
agent = ChatAgent(chat_client=..., tools=[...], middleware=[gov.middleware()])

Context

MAF 1.0 (GA 2026-04-03) is the converged successor to Semantic Kernel + AutoGen. This adapter supersedes maigp-autogen and maigp-semantic-kernel; prefer it for new projects. The framework object is duck-typed (usage read from the response), so the adapter works across MAF point releases without importing MAF directly.

Links


License: Proprietary. © Kanjani AI Research & Causum.

Metadata

Release files for maigp-microsoft-agent-framework 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maigp-microsoft-agent-framework 1.0.1
File Size Uploaded
maigp_microsoft_agent_framework-1.0.1.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maigp-microsoft-agent-framework 1.0.1
File Interpreter ABI Platform
maigp_microsoft_agent_framework-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / maigp_microsoft_agent_framework-1.0.1.tar.gz

Download URL maigp_microsoft_agent_framework-1.0.1.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0c776173029e792b18a36a89c1b90bddf97e607c05c7b7aa6a1a51d645e8468f
BLAKE2b-256 checksum
How to use checksums
e81d9acce477daba4fba60c8b23cc8e084f5b8536954a6899ae529dbc0c0eb3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / maigp_microsoft_agent_framework-1.0.1-py3-none-any.whl

Download URL maigp_microsoft_agent_framework-1.0.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
587c44c30028332772198eb669175d6846866126317e1c4aebbcdea77b39b717
BLAKE2b-256 checksum
How to use checksums
4384006bf88641a9631aa0967a8e134d828e72283240676d9f2a06cf0d3a6f8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page