python-samples
Installation
SKILL.md
Python Samples
File Structure
Every sample file follows this order:
- PEP 723 inline script metadata (if external dependencies needed)
- Copyright header:
# Copyright (c) Microsoft. All rights reserved. - Required imports
- Module docstring:
"""This sample demonstrates...""" - Helper functions
- Main function(s) demonstrating functionality
- Entry point:
if __name__ == "__main__": asyncio.run(main())
External Dependencies
Use PEP 723 inline script metadata for external packages not in the dev environment:
Related skills
More from microsoft/agent-framework
python-code-quality
>
66python-development
>
35build-and-test
How to build and test .NET projects in the Agent Framework repository. Use this when verifying or testing changes.
29python-package-management
>
23python-testing
>
17project-structure
Explains the project structure of the agent-framework .NET solution
15