Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
modelcontextprotocol
/
csharp-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
767
Star
4.4k
Code
Issues
109
Pull requests
35
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Fix CreateSamplingHandler to use ChatRole.Tool for tool result messages
- #1128
#1128
Merged
stephentoub
merged 7 commits into
main
modelcontextprotocol/csharp-sdk:main
from
copilot/fix-sampling-handler-error
modelcontextprotocol/csharp-sdk:copilot/fix-sampling-handler-error
Copy head branch name to clipboard
Jan 6, 2026
Conversation
Commits
7
(7)
Checks
Files changed
Merged
Fix CreateSamplingHandler to use ChatRole.Tool for tool result messages
#1128
stephentoub
merged 7 commits into
main
modelcontextprotocol/csharp-sdk:main
from
copilot/fix-sampling-handler-error
modelcontextprotocol/csharp-sdk:copilot/fix-sampling-handler-error
Copy head branch name to clipboard
Commits
Commits on Dec 31, 2025
Initial plan
Copilot
committed
8e44062
View commit details
Copy full SHA for 8e44062
Browse repository at this point
Fix sampling handler to use ChatRole.Tool for tool result messages
Show description for 5372d24
Copilot
and
stephentoub
committed
5372d24
View commit details
Copy full SHA for 5372d24
Browse repository at this point
Commits on Jan 2, 2026
Fix test to use JsonElement.Parse instead of anonymous type serialization
Show description for c350e00
Copilot
and
stephentoub
committed
c350e00
View commit details
Copy full SHA for c350e00
Browse repository at this point
Commits on Jan 4, 2026
Update src/ModelContextProtocol.Core/AIContentExtensions.cs
stephentoub
authored
893c1cb
View commit details
Copy full SHA for 893c1cb
Browse repository at this point
Commits on Jan 6, 2026
Add test for mixed content with ToolResultContentBlock
Show description for 048ebeb
Copilot
and
MackinnonBuck
committed
048ebeb
View commit details
Copy full SHA for 048ebeb
Browse repository at this point
Merge mixed content test case into existing test
Show description for b5e6cda
Copilot
and
MackinnonBuck
committed
b5e6cda
View commit details
Copy full SHA for b5e6cda
Browse repository at this point
Remove comment
MackinnonBuck
authored
642f522
View commit details
Copy full SHA for 642f522
Browse repository at this point
You can’t perform that action at this time.