e-naxosMAF COURSE / COURS
Français

MICROSOFT AGENT FRAMEWORK · 0.16.0-rc.1

Demo050 — Structured Business Contract

Deserialize and validate BacklogDraft before any action.

Objectives

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.

Projects to run
ProjectRole
demos/Demo050_StructuredBusinessContract/Demo050.App.csprojApp

Launch from the root

dotnet run --project demos/Demo050_StructuredBusinessContract/Demo050.App.csproj -c Release --no-build

Modes 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.");

demos/Demo050_StructuredBusinessContract/Program.cs · L35–L38 · 9a895c94534c

Source code · Demo050 · Folder

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.

Continue and verify

Prerequisites

Continue reading

Complete demo folder · README

lot007-foundations-1 · 2026-10-24 · 9a895c94534cd5fc6f3da883e37e5f7856e588c1