Use this skill when working with applications, agents, workflows, or migrations built on Microsoft Agent Framework.
Microsoft Agent Framework is the unified successor to Semantic Kernel and AutoGen, combining their strengths with new capabilities. Because it is still in public preview and changes quickly, always ground implementation advice in the latest official documentation and samples rather than relying on stale knowledge.
When working with Microsoft Agent Framework in any language:
Use async patterns for agent and workflow operations.
Implement explicit error handling and logging.
Prefer strong typing, clear interfaces, and maintainable composition patterns.
Use
DefaultAzureCredential
when Azure authentication is appropriate.
Use agents for autonomous decision-making, ad hoc planning, conversation flows, tool usage, and MCP server interactions.
Use workflows for multi-step orchestration, predefined execution graphs, long-running tasks, and human-in-the-loop scenarios.
Support model providers such as Azure AI Foundry, Azure OpenAI, OpenAI, and others, but prefer Azure AI Foundry services for new projects when that matches user needs.
Use thread-based or equivalent state handling, context providers, middleware, checkpointing, routing, and orchestration patterns when they fit the problem.
在任何语言中使用Microsoft Agent Framework时,请遵循以下规则:
对Agent和工作流操作使用异步模式。
实现明确的错误处理和日志记录。
优先使用强类型、清晰的接口和可维护的组合模式。
当需要Azure身份验证时,使用
DefaultAzureCredential
。
在自主决策、临时规划、对话流程、工具调用以及MCP服务器交互场景中使用Agent。
在多步骤编排、预定义执行图、长期运行任务和人机协同场景中使用工作流。
支持Azure AI Foundry、Azure OpenAI、OpenAI等模型提供商,但当符合用户需求时,新项目优先选用Azure AI Foundry服务。