Aller au contenu
Skillpedia
API et serveurs (backend)14k · #11139

agent-framework-builder-dotnet

Ce qu’il fait

Cette compétence guide la création d'applications .NET (C#) 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 une application C#.

Quand l’utiliser

  • ✓Quand vous voulez créer un agent IA dans une application .NET.
  • ✓Quand vous avez besoin d'un workflow en plusieurs étapes qui coordonne plusieurs agents ou outils.
  • ✓Quand vous voulez vérifier une application d'agent .NET existante par rapport aux versions actuelles du framework.

Lien du skill

https://github.com/microsoft/agent-framework/blob/main/skills/agent-framework-builder-dotnet/SKILL.md

Copiez-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

Utilise ce skill pour m’aider : https://github.com/microsoft/agent-framework/blob/main/skills/agent-framework-builder-dotnet/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Peux-tu m'aider à ajouter un agent IA doté d'un outil de recherche à mon application C# avec Microsoft Agent Framework ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent inspecte votre projet, choisit le modèle le plus simple parmi les agents, les workflows ou d'autres options, 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 .NET

Use this skill as the entry point for .NET 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

  1. Inspect the existing solution: target frameworks, SDK version, package management (central package management or per-project), and installed Microsoft.Agents.AI.* packages and versions.
  2. Choose the simplest matching path from the table below.
  3. Resolve design questions only when they materially change the implementation.
  4. Read only the linked reference for the selected path.
  5. Implement the smallest coherent change and run the narrowest validation that exercises it.

Core abstractions

  • A chat client is a Microsoft.Extensions.AI.IChatClient. It sends messages and options to a model provider and returns chat responses or streaming updates. Agent Framework builds on Microsoft.Extensions.AI types such as ChatMessage, AIFunction, and ChatOptions instead of redefining them.
  • An agent derives from AIAgent and exposes RunAsync(...) and RunStreamingAsync(...). ChatClientAgent is the standard implementation: it wraps an IChatClient with instructions, tools, context providers, a chat history provider, and session handling. Provider packages usually create one through an AsAIAgent(...) extension method.
  • A harness agent is a HarnessAgent from Microsoft.Agents.AI.Harness. It wraps a ChatClientAgent with an opinionated set of context providers and agent decorators; it is still an AIAgent.
  • A workflow (Microsoft.Agents.AI.Workflows) coordinates explicit execution paths between executors and agents. AgentWorkflowBuilder provides standard sequential, concurrent, handoff, group-chat, and Magentic patterns over AIAgent participants. A workflow can be exposed as an AIAgent when callers need the agent contract.

User interface options

  • DevUI (Microsoft.Agents.AI.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 Microsoft.Agents.AI.Hosting.AGUI.AspNetCore (server) 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 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 chat client, agent, context provider, chat history provider, or middleware. 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

  • Target a currently supported .NET release. The packages multi-target current and recent LTS .NET versions, and some also support .NET Standard 2.0 and .NET Framework 4.7.2. Prefer the latest supported SDK unless th
Questions fréquentes

Dois-je savoir quel modèle utiliser ?

Non. La compétence aide à choisir le modèle le plus simple qui conserve le comportement souhaité.

Utilisera-t-elle les API actuelles ?

Oui. La compétence demande à l'agent de vérifier les API actuelles plutôt que de se fier à d'anciens exemples de la période de préversion.

Couvre-t-elle l'hébergement ?

Oui. Elle couvre l'hébergement, ainsi que les outils, les sessions, les intergiciels et l'évaluation.

Détails

Description originale de l’auteur

Use this skill when building, modifying, reviewing, evaluating, integrating, or hosting .NET (C#) 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.

repo: microsoft/agent-framework

Popularité

Étoiles GitHub
14k
Position au classement
#11139
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires