Files
westey 5e830f4dc9 .NET: Only use the output from the last message for structured output (#6499)
* Only use the output from the last message for structured output

* Address PR comments

* Address PR comment

* Address PR comments
5e830f4dc9 · 2026-06-12 15:47:32 +00:00
History
..

Harness Agent Samples

Samples demonstrating the Harness AIContextProviders — reusable providers that add planning, task management, and mode tracking to any ChatClientAgent.

Samples

Sample Description
Harness_Step01_Research Using a ChatClientAgent with TodoProvider and AgentModeProvider for research, showcasing planning mode and todo management
Harness_Step02_Research_WithBackgroundAgents Using BackgroundAgentsProvider to delegate stock price lookups to a web-search background agent concurrently
Harness_Step03_DataProcessing Using FileAccessProvider to give an agent access to CSV data files for reading, analysis, and output generation
Harness_Step05_Loop Wrapping a HarnessAgent with the LoopAgent decorator to re-invoke it until a configured LoopEvaluator (completion marker, predicate, AI judge, or approval-aware loop) decides to stop