MICROSOFT AGENT FRAMEWORK · 0.16.0-rc.1
Demo240 — Agent Workflow
Clarification skips the model. The ready case uses live chat and native binding; changed facts or malformed output produce Rejected and exit code 1. Reviewed creates no ticket.
Objectives
- Insert a native linguistic agent step into the typed graph.
Prepare the program
Live chat through common configuration, granite4:3b by default; no embeddings required. An optional API is selected explicitly with no automatic fallback. Start at the root of the complete distribution. Preserve shared projects and configuration files. Some historical prompts and labels in Demo260–290 remain French in public code; commands and identifiers match this revision.
dotnet build BaseTechnique.slnx -m:1 -c Release| Project | Role |
|---|---|
| demos/Demo240_AgentWorkflow/Demo240.App.csproj | App |
| shared/Maf.Workflows/Maf.Workflows.csproj | Shared implementation |
Commands from the root
dotnet run --project demos/Demo240_AgentWorkflow/Demo240.App.csproj -c Release --no-buildProcedures and variants
Run --incomplete before the ready case with no argument. Read the raw response and ReviewResult separately.
var nativeAgent = reviewer.BindAsExecutor(new AIAgentHostOptions
{
ForwardIncomingMessages = false,
EmitAgentUpdateEvents = false,
EmitAgentResponseEvents = true
});
return builder.AddEdge<DraftDecision>(analyze, prepare, condition: d => d is { IsReady: true })
.AddEdge(prepare, nativeAgent)
.AddEdge(nativeAgent, validate)
.WithOutputFrom(clarify, validate).Build();
What must be observable
Clarification skips the model. The ready case uses live chat and native binding; changed facts or malformed output produce Rejected and exit code 1. Reviewed creates no ticket.
These results are expected from the linked code. Checks actually rerun for this lot are distinguished in exercises and reception; no unmeasured live output is presented as observed.
Limits and retained state
Demo230–250 build a fresh graph per input and write no business effect. Demo260 retains its two sessions only in-process. Demo270–290 interpret a plan through simulated printing without a workflow engine. Live calls depend on the profile; scripted tests qualify no model.
dotnet test tests/Maf.Workflows.Tests/Maf.Workflows.Tests.csproj -m:1 -c Release --no-build --no-restore