mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
9355329dfd
* updated structure and samples * updated names and removed cross tests * updated projects etc * updated tests * updated test * test fixes * removed devui for now * updated all-tests task * removed old style configs * remove coverage from tests * updated to unit tests with all-tests * updated foundry everywhere * fix azure ai tests * fix merge tests * fix mypy
9355329dfd
·
2025-09-25 07:02:53 +00:00
History
Cookiecutter Template for Agent Framework Lab Packages
This is a cookiecutter template for creating new lab packages in the Microsoft Agent Framework.
Usage
cd /path/to/agent-framework/python/packages/lab
cookiecutter ./cookiecutter-agent-framework-lab
You will be prompted for the following information:
- package_name: The name of your lab package (e.g., "lightning", "vision")
- package_display_name: Human-readable name (e.g., "Lighting Tools", "Computer Vision")
- package_description: Brief description of the package (auto-generated from display name)
- version: Starting version (default: 0.1.0b1)
- author_name: Author name (default: Microsoft)
- author_email: Author email (default: af-support@microsoft.com)
- include_cli_script: Whether to include a CLI script (y/n)
- cli_script_name: Name of CLI script if included
What Gets Generated
The template creates a complete lab package structure:
{package_name}/
├── agent_framework/
│ └── lab/
│ └── {package_name}/
│ └── __init__.py
├── agent_framework_lab_{package_name}/
│ ├── __init__.py
│ └── py.typed
├── tests/
│ ├── __init__.py
│ └── test_{package_name}.py
├── pyproject.toml
├── README.md
└── LICENSE
After Generation
- Implement your functionality in
agent_framework_lab_{package_name}/ - Update the
__all__exports in__init__.py - Add your dependencies to
pyproject.toml - Write comprehensive tests
- Update the README with usage examples
Integration
Don't forget to add your new package to the workspace:
- Add to
python/pyproject.tomldependencies - Add to
[tool.uv.sources]section - Test installation with
uv run python -c "from agent_framework.lab.{name} import *"