agent-framework-builder-python
Ce qu’il fait
Cette compétence guide la création d'applications Python avec Microsoft Agent Framework, y compris les agents, les workflows, les outils et l'hébergement. Elle s'adresse aux développeurs qui veulent un assistant IA dans un programme Python.
Quand l’utiliser
- ✓Quand vous voulez créer un agent IA dans une application Python.
- ✓Quand vous avez besoin d'un workflow qui coordonne plusieurs étapes ou agents en Python.
- ✓Quand vous voulez examiner un projet d'agent Python existant et le mettre à jour vers les versions actuelles du framework.
Lien du skill
https://github.com/microsoft/agent-framework/blob/main/skills/agent-framework-builder-python/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu m'aider à ajouter à mon application Python un agent IA capable de consulter des commandes, avec Microsoft Agent Framework ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent inspecte votre projet et ses paquets, choisit le modèle le plus simple correspondant, et ne lit que le guide dont il a besoin. Il effectue ensuite le plus petit changement possible et lance une vérification ciblée.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Agent Framework builder for Python
Use this skill as the entry point for Python Agent Framework application work. Choose the smallest framework pattern that preserves the required behavior, load only the relevant references, and validate against current APIs instead of relying on remembered preview-era syntax.
Workflow
- Inspect the existing project, Python version, dependency manager, and installed Agent Framework packages.
- Choose the simplest matching path from the table below.
- Resolve design questions only when they materially change the implementation.
- Read only the linked reference for the selected path.
- Implement the smallest coherent change and run the narrowest validation that exercises it.
Core abstractions
- A chat client implements the model-facing
SupportsChatGetResponseprotocol. It sends messages and options to a model provider and returns chat responses or streaming updates. - An agent implements the
SupportsAgentRunprotocol. The standardAgentimplementation combines a chat client with instructions, tools, middleware, context providers, and session handling behind onerun(...)interface. - A harness agent is a regular
Agentassembled bycreate_harness_agent. It adds an opinionated set of context providers and middleware; it does not introduce a separate agent abstraction. - A workflow coordinates explicit execution paths. Graph workflows and most orchestration builders can use multiple
SupportsAgentRunimplementations or executors.HandoffBuilderis the exception: its participants must be concreteAgentinstances.
User interface options
- DevUI is a local development, testing, and debugging tool for interacting with agents and workflows. Never run or deploy DevUI as a production application host.
- AG-UI is the application-facing protocol integration for connecting an agent or workflow to an AG-UI-compatible
frontend. Use the
agent-framework-ag-uipackage when the product needs streaming UI events, tool interactions, shared state, interrupts, or resume behavior.
Choose the build path
| Path | Choose it when | Details |
|---|---|---|
| Plain agent | One model-driven actor owns the task and tools, sessions, context, and middleware are sufficient. | Plain agents |
| Harness agent | The product needs an operating loop with todos, modes, memory, approvals, skills, optional file access, background agents, shell, compaction, or repeated execution. | Harness agents |
| Workflow or orchestration | Explicit stages, routing, parallelism, multiple participants, checkpointing, human input, or intermediate outputs are central to correctness. | Workflows |
| Declarative definition | YAML or JSON should be the source of truth for a supported agent or workflow. | Declarative definitions |
| Evaluation | Expected outputs, tool calls, failed runs, or quality regressions are the main concern. | Evaluation |
| Observability | The task is diagnosing or monitoring runtime behavior with traces, logs, and metrics. | Observability |
| Extensibility | The application needs a custom provider, ContextProvider, or middleware component. | Extensibility |
| Integration | The task is choosing or wiring a provider, protocol, memory store, tool service, UI, or platform extension. | Integrations |
| Hosting and deployment | Working Agent Framework code needs a process host, protocol endpoint, identity contract, or deployment shape. | Hosting and deployment |
Defaults
- Agent Framework requires Python 3.11 or later. Prefer the latest supported Python release or the previous release (N-1), unless a required dependency has a narrower compatibility range.
- Install the narrow Agent Framework distribution needed by the application instead of defaulting to the
agent-frameworkmeta-package. - Agent Framework does not automatically read
.envfiles. If the project uses one, callload_dotenv()explicitly or use the selected API's documentedenv_file_pathor equivalent initialization option.
Current documentation lookup
Use local guidance for stable decisions and common patterns. For provider matrices, package maturity, hosted tools,
Questions fréquentes
Quelles parties du framework couvre-t-elle ?
Les agents, les agents encadrés (harness), les workflows, les outils, les sessions, les intergiciels, l'évaluation, les intégrations et l'hébergement.
Utilisera-t-elle des exemples de code actuels ?
Oui. Elle demande à l'agent de vérifier les API actuelles plutôt que de se fier à d'anciens exemples.
Dois-je choisir le modèle moi-même ?
Non. La compétence aide à choisir le plus petit modèle qui conserve le comportement souhaité.
Détails
Description originale de l’auteur
Use this skill when building, modifying, reviewing, evaluating, integrating, or hosting Python applications with Microsoft Agent Framework. Use it for Agent Framework agents, harness agents, workflows, orchestrations, declarative definitions, tools, sessions, middleware, evaluation, observability, integrations, or hosting, even when the user has not yet chosen the correct framework pattern.
Popularité
- Étoiles GitHub
- 14k
- Position au classement
- #11140
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
Skills similaires
api-connector-builder
280kPermet à votre agent de créer de nouvelles connexions API en suivant le modèle existant. À utiliser pour ajouter une intégration sans inventer une nouvelle façon de faire.
api-design
280kAide votre agent à concevoir des API REST selon les bonnes pratiques. Utile pour définir la communication entre API, l'affichage des erreurs et l'organisation des données.
backend-patterns
280kAide votre agent avec les architectures côté serveur et l'optimisation des bases de données. Utile pour créer ou relire du code qui s'exécute sur le serveur.