-
Notifications
You must be signed in to change notification settings - Fork 9
feat: add experimental tool message #967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds AI chat functionality with support for tool message components. The implementation includes a new SiChatContainerComponent that provides a complete chat interface, and a SiToolMessageComponent for displaying tool calls and their results.
Key Changes
- Added
SiToolMessageComponentto display tool messages with collapsible input arguments and output sections - Created
SiChatContainerComponentas a comprehensive chat interface with support for user, AI, and tool messages - Added translation keys for chat container and tool message components
Reviewed Changes
Copilot reviewed 28 out of 28 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
projects/element-ng/chat-messages/si-tool-message.component.ts |
New component for rendering tool messages with support for loading states and collapsible sections |
projects/element-ng/ai-chat/si-chat-container.component.ts |
Main chat container component with auto-scroll, message handling, and interrupt support |
projects/element-ng/translate/si-translatable-keys.interface.ts |
Added translation keys for new components |
src/app/examples/si-ai-chat/si-chat-container.ts |
Example implementation demonstrating chat container usage |
docs/patterns/ai/ai-chat.md |
Updated documentation with code examples |
| Test and style files | Added comprehensive test coverage and styling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Documentation. Coverage Reports: |
4c6790c to
d8b9f16
Compare
da0ea4e to
c701c38
Compare
caf2453 to
9542d9d
Compare
9542d9d to
51aefc7
Compare
Adds an experimental tool message to display tool-calls, both as a factory component and model-driven support in the ai chat-container. Follow-up of #600 and #998