Repository navigation
.NET: Fix sample READMEs that don't match the DevUI and SessionFilesClient code - #10083
Draft
Naveen Chatlapalli (1aifanatic) wants to merge 2 commits into
Draft
Naveen Chatlapalli (1aifanatic) wants to merge 2 commits into
Naveen Chatlapalli (1aifanatic) wants to merge 2 commits into
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Naveen Chatlapalli (1aifanatic)
temporarily deployed
to
github-app-auth
November 4, 2026 05:37 — with
GitHub Actions
Inactive
Naveen Chatlapalli (1aifanatic)
temporarily deployed
to
github-app-auth
November 4, 2026 05:37 — with
GitHub Actions
Inactive
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the documentation-only updates aligning the two .NET sample READMEs with their implementations.
No open issues 🎉
What changed in this PR
This documentation-only PR aligns two .NET sample READMEs with their existing implementations. No runtime code changes are included.
Changes:
- Replaces the nonexistent
AddSequentialWorkflowcall withAddWorkflowandAgentWorkflowBuilder.BuildSequential, resolving registered agents by name. - Corrects SessionFilesClient’s introduction to describe configuration through a Foundry project and agent name.
| File | Description |
|---|---|
dotnet/samples/04-hosting/FoundryHostedAgents/responses/Using-Samples/SessionFilesClient/README.md |
Replaces the incorrect AGENT_ENDPOINT guidance. |
dotnet/samples/02-agents/DevUI/DevUI_Step01_BasicUsage/README.md |
Updates the workflow registration snippet to match the sample code. |
Review effort: Balanced
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation & Context
Two .NET sample READMEs don't match their sample code:
02-agents/DevUI/DevUI_Step01_BasicUsage/README.mdregisters a workflow withbuilder.AddSequentialWorkflow("my-workflow", [agent1Builder, agent2Builder]). No such extension method exists, so copying the step fails witherror CS1061: 'WebApplicationBuilder' does not contain a definition for 'AddSequentialWorkflow'. The sample'sProgram.csusesbuilder.AddWorkflow(name, (sp, key) => AgentWorkflowBuilder.BuildSequential(...)).04-hosting/FoundryHostedAgents/responses/Using-Samples/SessionFilesClient/README.mdsays to "point it at anAGENT_ENDPOINT". The sample, and the README's own configuration section, useFOUNDRY_PROJECT_ENDPOINTandAZURE_AI_AGENT_NAME.Description & Review Guide
AddWorkflowwithAgentWorkflowBuilder.BuildSequential, resolving the two hosted agents by name asProgram.csdoes.I compiled README steps 2 and 3 together as a
Program.csin a temporary copy of the DevUI sample project. With this change it builds with 0 warnings. With the original snippet it fails with the CS1061 error above.Related Issue
N/A - trivial change: README snippets and wording are corrected to match the existing sample code.
AI Assistance
AI assistance details: Claude Code helped find the mismatches by comparing README code with the .NET source, update the READMEs, compile the snippet, and draft this description.
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.🤖 Generated with Claude Code