Skip to content

.NET: Add AIAgent implementation for GitHub Copilot SDK#3395

Merged
dmytrostruk merged 41 commits into
mainfrom
copilot/add-aiagent-implementation
Jan 27, 2026
Merged

.NET: Add AIAgent implementation for GitHub Copilot SDK#3395
dmytrostruk merged 41 commits into
mainfrom
copilot/add-aiagent-implementation

Conversation

Copilot AI commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

GitHub Copilot SDK AIAgent Implementation

All Changes Complete

  • Fixed event handling: Added AgentResponseUpdate yields for SessionIdleEvent and SessionErrorEvent
  • Removed explicit subscription.Dispose() (handled by using statement)
  • Removed AutoStart from README example (defaults to true)
  • Moved name/description defaults to primary constructor (applies to all construction paths)
  • Made Name and Description properties non-nullable (always have defaults)
  • Enhanced UsageContent with complete usage details:
    • InputTokenCount from InputTokens
    • OutputTokenCount from OutputTokens
    • CachedInputTokenCount from CacheReadTokens
    • AdditionalCounts for CacheWriteTokens, Cost, Duration
  • All 11 tests passing across net8.0, net9.0, net10.0
  • All builds successful

Implementation Complete

All PR feedback addressed. Event handling complete, usage tracking comprehensive, defaults properly applied.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@stephentoub

Copy link
Copy Markdown
Member

@westey-m I was talking with @SteveSanderson earlier today about doing exactly this. :)

Copilot AI and others added 3 commits January 22, 2026 21:10
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com>
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com>
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com>
Copilot AI changed the title [WIP] Add AIAgent implementation for Github Copilot SDK .NET: Add AIAgent implementation for GitHub Copilot SDK Jan 22, 2026
Copilot AI requested a review from westey-m January 22, 2026 21:23
@markwallace-microsoft markwallace-microsoft added documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net labels Jan 23, 2026
Comment thread dotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment thread dotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment thread dotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment thread dotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment thread dotnet/samples/GettingStarted/AgentProviders/Agent_With_GithubCopilot/Program.cs Outdated
Comment thread dotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgent.cs Outdated
Comment thread dotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgent.cs Outdated
…tOptions ctor, streaming improvements, better sample, container warning

Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com>
Copilot AI requested a review from westey-m January 23, 2026 09:42
Comment thread dotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgent.cs Outdated
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs .NET Usage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants