feat: add tool calling UI components for aichat2 integration#427
Open
acedatacloud-dev wants to merge 2 commits intomainfrom
Open
feat: add tool calling UI components for aichat2 integration#427acedatacloud-dev wants to merge 2 commits intomainfrom
acedatacloud-dev wants to merge 2 commits intomainfrom
Conversation
- Add IChatToolCall, IChatArtifact, IChatSSEEvent types to chat models - Add chatConversationV2() method with full SSE event parsing - Add ToolCallBlock.vue: collapsible tool call display with status states - Add ArtifactBlock.vue: renders image/audio/video/file artifacts - Add ThinkingBlock.vue: collapsible thinking process display - Add ConfirmationDialog.vue: destructive tool confirmation dialog - Backward compatible with legacy aichat delta_answer format
acedatacloud-dev
added a commit
that referenced
this pull request
Apr 12, 2026
Update chat models and operator to support aichat2's tool-calling SSE events. This prepares the data layer for the tool-calling UI components (ToolCallBlock, ArtifactBlock, ThinkingBlock) added in PR #427. Changes: - IChatConversationResponse: add type, tool_id, tool_name, tool_display_name, input, output, is_error, duration_ms, content - IChatConversationRequest: add tools_enabled, tools_filter - chatOperator stream callback: forward all tool-calling event fields
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.
Summary
Adds frontend components and types for the aichat2 AI orchestrator tool-calling UI.
New Types (
src/models/chat.ts)IChatToolCallState— pending/running/completed/errorIChatToolCall— tool call with name, input, output, artifactsIChatArtifact— image/audio/video/file artifact with URL and metadataIChatSSEEvent— union type for all aichat2 SSE eventsIChatConversationResponseV2— complete response structureNew API Method (
src/operators/chat.ts)chatConversationV2()— full SSE event stream parser for aichat2New Components (
src/components/chat/)Verification
npx vue-tsc --noEmit→ clean compile (no errors)Related