Use this reference when the target project is written in Python.
- Repository: https://github.com/microsoft/agent-framework/tree/main/python
- Samples: https://github.com/microsoft/agent-framework/tree/main/python/samples
For new projects, install the package with:
pip install agent-framework- 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.