mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
b3462e01fe
Both snippets named namespaces that do not resolve. `Microsoft.Agents.AI.Harness` is the NuGet package name, not a namespace. `AsHarnessAgent` and `HarnessAgentOptions` come from `Microsoft.Agents.AI`, and no `.cs` file in the repo carries a `using` for the package name. Both snippets also needed `using Microsoft.Extensions.AI`, which is where `AsIChatClient()` and `ChatOptions` live. Every agent file in both showcase columns uses exactly `Microsoft.Agents.AI` plus `Microsoft.Extensions.AI`. Also define `HarnessMaxContextWindowTokens` and `HarnessMaxOutputTokens` in the harness snippet, which referenced them without showing a value. No .NET SDK is available here, so this was checked against the `using` blocks of the twelve agent files that call `AsHarnessAgent`, not by compiling. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>