OptionalclassAdditional root CSS class.
OptionalmappingsAG-UI state mappings: project agent state onto entity-graph entities.
OptionalonCalled when the user requests closing (e.g. presses Escape or an X button).
OptionalonCalled on stream error.
OptionalonCalled when a full assistant message has been received.
OptionalopenWhether the copilot panel is open. Controls visibility via CSS (display).
OptionalplaceholderPlaceholder text for the input.
OptionalrenderRender override for a single suggestion bubble.
OptionalsessionUnique session id; defaults to a generated id.
OptionalsuggestionsQuick-reply prompts shown when the message list is empty.
OptionaltitleTitle shown at the top of the copilot panel.
OptionaltoolOptional tool provider for function-calling / MCP.
entity-copilot.tsx — EntityCopilot: a compact "sidebar copilot" variant.
Unlike EntityChat (which renders a full chat surface), EntityCopilot is designed to be embedded inline — a floating panel, a slide-over, or an editor drawer. It reuses useChatSession for the same entity-graph projection while providing a narrower component API and a more compact default UI.
Layering: Component → useChatSession hook → applyAgUiSnapshot/Delta (store).