Microsoft Agent Framework for Python

March 15, 2026 ยท View on GitHub

Use this reference when the target project is written in Python.

Authoritative sources

Installation

For new projects, install the package with:

pip install agent-framework

Python-specific guidance

  • Use modern async patterns throughout agent and workflow operations.
  • Add type hints and keep APIs explicit even in dynamic code.
  • Follow standard Python packaging and environment practices for dependencies and tooling.
  • Use middleware, context providers, and orchestration patterns in ways that fit the Python application structure.
  • Check the latest Python samples before introducing new APIs or workflow patterns.