Skip to content

feat(chat): add tool-calling event support for aichat2#428

Merged
Germey merged 1 commit intomainfrom
feat/chat-tool-calling-support
Apr 12, 2026
Merged

feat(chat): add tool-calling event support for aichat2#428
Germey merged 1 commit intomainfrom
feat/chat-tool-calling-support

Conversation

@acedatacloud-dev
Copy link
Copy Markdown
Member

Summary

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

  • src/models/chat.ts:
    • IChatConversationResponse: Added type, tool_id, tool_name, tool_display_name, input, output, is_error, duration_ms, content fields
    • IChatConversationRequest: Added tools_enabled and tools_filter fields
  • src/operators/chat.ts: Stream callback now forwards all tool-calling event fields from aichat2 SSE events

Context

aichat2 emits SSE events with types like tool_start, tool_result, text_delta, etc. The existing Nexior stream parser only reads delta_answer and id. This PR extends the response model and stream callback to pass through all event fields, enabling the tool-calling UI components to render tool invocations in real-time.

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
@Germey Germey merged commit f7de954 into main Apr 12, 2026
1 check passed
@Germey Germey deleted the feat/chat-tool-calling-support branch April 12, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants