Skip to content

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

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

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

Conversation

Copy link
Contributor

Copilot AI commented Jan 22, 2026

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
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 Improvements or additions to documentation .NET labels Jan 23, 2026
…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
Co-authored-by: westey-m <164392973+westey-m@users.noreply.github.com>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 27, 2026
@dmytrostruk dmytrostruk added this pull request to the merge queue Jan 27, 2026
Merged via the queue into main with commit e82d9f5 Jan 27, 2026
15 checks passed
This was referenced Jan 28, 2026
@crickman crickman deleted the copilot/add-aiagent-implementation branch February 4, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants