Add comprehensive SDK engine documentation and migration guide #10179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creates complete documentation for the Copilot SDK engine mode, enabling users to build advanced agentic workflows with multi-turn conversations, custom inline tools, and multi-agent orchestration.
Documentation Structure
Reference Documentation (1 file, 13 KB)
reference/engines-sdk.md- SDK engine specification with architecture, configuration options, performance characteristics, and security considerationsGuides (5 files, 101 KB)
guides/sdk-sessions.md- Session management patterns, state persistence, restoration strategiesguides/sdk-custom-tools.md- Inline tool development with JSON Schema parameters, implementation patterns, securityguides/sdk-events.md- Real-time event handling, custom handlers, budget monitoringguides/sdk-multi-agent.md- Multi-agent coordination strategies (sequential, parallel, pipeline, hierarchical)guides/migrate-to-sdk.md- Step-by-step migration from CLI mode with decision framework, mapping tables, rollback strategyMigration Examples (5 files, 28 KB)
examples/sdk-migrations/- Four complete migration examples ranging from simple (5 min) to complex (1-2 days)examples/sdk-migrations.md- Index with complexity assessment and best practicesExample: Basic SDK Configuration
CLI Mode (Before):
SDK Mode (After):
Example: Custom Inline Tool
Example: Multi-Agent Orchestration
Updates to Existing Documentation
reference/engines.md- Added SDK mode section with feature comparison and links to comprehensive SDK documentationCoverage
All documentation follows Diátaxis framework with cross-referenced links.
Original prompt
This section details on the original issue you should resolve
<issue_title>Create documentation and migration guide for SDK workflows</issue_title>
<issue_description>## Description
Create comprehensive documentation for the Copilot SDK engine, including migration guide for converting existing CLI workflows to SDK mode.
Part of Epic
#10154 - Copilot SDK Integration for Advanced Agentic Workflows
Documentation Scope
1. SDK Engine Overview
New documentation page:
docs/src/content/docs/reference/engines-sdk.mdContent:
2. Session Management Guide
New documentation page:
docs/src/content/docs/guides/sdk-sessions.mdContent:
3. Custom Tools Guide
New documentation page:
docs/src/content/docs/guides/sdk-custom-tools.mdContent:
4. Event Handling Guide
New documentation page:
docs/src/content/docs/guides/sdk-events.mdContent:
5. Multi-Agent Guide
New documentation page:
docs/src/content/docs/guides/sdk-multi-agent.mdContent:
6. Migration Guide
New documentation page:
docs/src/content/docs/guides/migrate-to-sdk.mdContent:
Migration Guide Content
Decision Framework
Migration Steps
2. Update Frontmatter
Before (CLI):
After (SDK):
3. Convert Custom Logic to Inline Tools
If you have bash scripts doing custom logic, convert to inline tools.
4. Test in Parallel
Run both CLI and SDK versions side-by-side to compare results.
5. Monitor and Tune
Use event handlers to monitor performance and adjust configuration.
After (SDK):
Notes: Minimal changes needed for simple workflows.
Example 2: Multi-Stage Review
Before (CLI - not possible):
# Cannot implement multi-stage review with context retentionAfter (SDK):
Example 3: Custom Validation
Before (CLI with bash):
After (SDK with inline tool):