feat: Add chat history API for Semantic Kernel - #149
Merged
Johan Broberg (pontemonti) merged 4 commits intoJan 29, 2026
Conversation
Johan Broberg (pontemonti)
requested review from
Copilot,
Rahul Devikar (rahuldevikar761) and
Tahir Sousa (tmlsousa)
January 28, 2026 21:37
Copilot started reviewing on behalf of
Johan Broberg (pontemonti)
January 28, 2026 21:37
View session
Johan Broberg (pontemonti)
enabled auto-merge (squash)
January 28, 2026 21:40
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds chat history API functionality to the Semantic Kernel extension for the Microsoft Agent 365 Python SDK. The implementation enables developers to send conversation history from Semantic Kernel agents to the MCP (Model Context Protocol) platform for real-time threat protection.
Changes:
- Added two new public methods (
send_chat_historyandsend_chat_history_messages) toMcpToolRegistrationServicefor sending chat history - Implemented message conversion logic from Semantic Kernel's
ChatMessageContentto the commonChatHistoryMessageformat - Added comprehensive unit tests (910 lines) with fixtures and mock implementations covering input validation, message conversion, role mapping, error handling, and concurrent execution scenarios
Reviewed changes
Copilot reviewed 9 out of 10 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
libraries/microsoft-agents-a365-tooling-extensions-semantickernel/microsoft_agents_a365/tooling/extensions/semantickernel/services/mcp_tool_registration_service.py |
Core implementation adding chat history methods with message conversion helpers |
tests/tooling/extensions/semantickernel/services/test_send_chat_history.py |
Comprehensive unit tests covering all functionality (910 lines) |
tests/tooling/extensions/semantickernel/services/conftest.py |
Test fixtures and mock implementations for Semantic Kernel types |
tests/tooling/extensions/semantickernel/__init__.py |
Test package initialization with copyright header |
tests/tooling/extensions/semantickernel/services/__init__.py |
Test services subpackage initialization with copyright header |
libraries/microsoft-agents-a365-tooling-extensions-semantickernel/docs/design.md |
Documentation updates with API examples and usage patterns |
docs/prd/semantic-kernel-chat-history-api.md |
Detailed PRD document (1302 lines) |
docs/prd/semantic-kernel-chat-history-api-tasks.md |
Task breakdown document (553 lines) |
pyproject.toml |
Added pytest-cov dependency (invalid version) |
uv.lock |
Updated lock file with new dependencies |
Copilot started reviewing on behalf of
Johan Broberg (pontemonti)
January 29, 2026 00:01
View session
Mrunal Suyoga Hirve (mrunalhirve128)
approved these changes
Jan 29, 2026
Rahul Devikar (rahuldevikar761)
approved these changes
Jan 29, 2026
Johan Broberg (pontemonti)
deleted the
users/johanb/RTP_SemanticKernel
branch
January 29, 2026 22:49
Christopher Birnie-Browne (Git-Hub-Chris)
added a commit
to Git-Hub-Chris/Agent365-python
that referenced
this pull request
Jan 30, 2026
feat: Add chat history API for Semantic Kernel (microsoft#149). Keeping code up-to-date.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.