بنقرة واحدة
sample-structure
// Conceptual organization of Agent Framework documentation and samples. For language-specific details (file naming, provider setup, code patterns), see each code repo's skills files.
// Conceptual organization of Agent Framework documentation and samples. For language-specific details (file naming, provider setup, code patterns), see each code repo's skills files.
Required when reviewing, updating, auditing, or creating any concept documentation page. Covers code accuracy checks against source repos, language parity across zone pivots, parity table comments, and structural consistency.
How to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes.
How to configure cross-repository references (CRR) and create API class links for Microsoft Learn docs in this repository.
How breadcrumbs work on Microsoft Learn: structure, creation, configuration in docfx.json, and best practices for documentation repos.
How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.
How to create, structure, and configure table of contents (TOC) files for Microsoft Learn documentation using toc.yml and docfx.json.
| name | sample-structure |
| description | Conceptual organization of Agent Framework documentation and samples. For language-specific details (file naming, provider setup, code patterns), see each code repo's skills files. |
This skill defines the conceptual organization of Agent Framework documentation and how it maps to the learning journey. Language-specific implementation details belong in each code repo's skills files — this file covers the shared conceptual model only.
The Agent Framework uses a 5-layer structure that progressively builds complexity. Both docs and code samples mirror this structure so users can move fluidly between reading and running code.
Layer 1: Get Started → Linear tutorial, one concept per step
Layer 2: Agent Concepts → Deep-dive reference, organized by topic
Layer 3: Workflows → Multi-step orchestration patterns
Layer 4: Hosting → Deployment, protocols, production infrastructure
Layer 5: End-to-End → Complete applications combining all layers
| Layer | Purpose | Complexity | Audience |
|---|---|---|---|
| Get Started | "Follow these steps" — sequential, cumulative | Beginner | New users |
| Agent Concepts | "Go deeper on X" — one topic per page | Intermediate | Users building features |
| Workflows | "Orchestrate multiple steps" — pattern-based | Intermediate | Users composing agents |
| Hosting | "Deploy to production" — infrastructure-focused | Advanced | Users shipping |
| End-to-End | "See it all together" — reference applications | Advanced | Users architecting |
Each step adds exactly one concept to the previous step:
Concepts are grouped by architectural concern:
The Agent Framework uses a layered middleware architecture with three interception points:
Agent.run() call; can modify messages, options, threadEach layer has its own context object and supports call_next() for pipeline chaining.
Middleware can return normally (upstream post-processing runs), raise MiddlewareTermination
(skips all post-processing), or raise exceptions (propagated to caller).
Every docs page under get-started/ maps 1:1 to a sample file in both Python and .NET.
Deep-dive docs pages link to corresponding concept samples.
| Docs Section | Code Repo Layer | Cross-link pattern |
|---|---|---|
get-started/*.md | 01-get-started/ | Each step → next step + lateral deep-dive |
agents/**/*.md | 02-agents/ | Each topic → matching concept sample(s) |
workflows/*.md | 03-workflows/ | Each pattern → matching workflow sample |
integrations/*.md | 04-hosting/ | Each integration → matching hosting sample |
Docs pages follow consistent navigation: