MICROSOFT AGENT FRAMEWORK · 0.16.0-rc.1
Demo050 — Structured Business Contract
Deserialize and validate BacklogDraft before any action.
Objectives
- Validate a typed business draft and request missing information.
Prepare the demo
Start at the root of the complete solution already built in Release. Course prerequisites: Demo040. This program uses live chat from the selected profile; no embeddings are required except for Demo020 --embed. Check connectivity and required capabilities before attributing failure to the scenario.
| Project | Role |
|---|---|
| demos/Demo050_StructuredBusinessContract/Demo050.App.csproj | App |
Launch from the root
dotnet run --project demos/Demo050_StructuredBusinessContract/Demo050.App.csproj -c Release --no-buildModes and procedure
Enter a clear bug request, then “The application is sometimes slow”. Read the displayed object and questions. Submit a new text after clarification; the loop does not automatically merge requests.
var errors = draft.Validate();
Console.WriteLine(JsonSerializer.Serialize(draft));
if (errors.Length != 0) { Console.WriteLine(string.Join(" ", errors)); continue; }
Console.WriteLine("Valid actionable draft; no write tool is exposed.");
Results and useful failures
Invalid JSON produces Invalid structured response; a missing object produces Missing draft. Validate() reports domain, length or clarification errors. Success prints Valid actionable draft followed by no write tool is exposed. This demo cannot produce a successful write.
These observations are expected from inspecting the indicated code revision. No new model call was made to write this page; exact generated wording is not a reference output.
Scope and limits
The model may not generate the requested counterexample: use deterministic tests for urgent, SecretAdmin or null ClarifyingQuestions. Correct formatting establishes neither truth nor authority.
