Skip to content

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

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

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

Conversation

CopilotAI 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 (@westey-m) I was talking with Steven Sanderson (@SteveSanderson) earlier today about doing exactly this. :)

CopilotAIand 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>
CopilotAI changed the title [WIP] Add AIAgent implementation for Github Copilot SDK.NET: Add AIAgent implementation for GitHub Copilot SDKJan 22, 2026
@markwallace-microsoftMark Wallace (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 threaddotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment threaddotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment threaddotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment threaddotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgentThread.cs Outdated
Comment threaddotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgent.cs Outdated
Comment threaddotnet/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>
Comment threaddotnet/src/Microsoft.Agents.AI.GithubCopilot/GithubCopilotAgent.cs Outdated
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@stephentoub@westey-m@dmytrostruk@rogerbarreto@markwallace-microsoft