mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
bda5c41628
Rendering activity messages outside of CopilotChatMessageView (custom chat shells, dashboards, headless setups) currently requires instantiating the whole message view or copying its private resolution logic. Tool calls already have a public component for this (RenderToolCalls), activities do not. This adds CopilotActivity (<copilot-activity [message] [agentId]>), a standalone host for a single activity message. CopilotChatMessageView now delegates to it, so there is one implementation for the activity role. No behavior change. The renderer resolution moves into an internal pickActivityRenderer that is not exported. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
329 B
329 B
@copilotkit/angular
| @copilotkit/angular |
|---|
| minor |
feat(angular): add CopilotActivity, a standalone host for a single activity message. CopilotChatMessageView now delegates activity rendering to it, so custom chat shells and non-chat surfaces can render activities through the registered renderers without instantiating the message view.