Ask a question to get started
Enter to sendā¢Shift+Enter new line
AssistantMessage( self, content: str = '', **kwargs: Any = {}, )
Vertical
content
str
''
Initial markdown content
**kwargs
Any
{}
Additional arguments passed to parent
Compose the assistant message layout.
Store reference to markdown widget.
Append content to the message (for streaming).
Uses MarkdownStream for smoother rendering instead of re-rendering the full content on each chunk.
Write initial content if provided at construction time.
Stop the streaming and finalize the content.
Set the full message content.
This stops any active stream and sets content directly.
Widget displaying an assistant message with markdown support.
Uses MarkdownStream for smoother streaming instead of re-rendering the full content on each update.