ml-knowledge-platform/knowledge_platform/widgets/welcome.py
Lilith 240b4328f1 chore(config): 🔧 Update 40 configuration files across project
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-02-16 01:39:57 -08:00

25 lines
753 B
Python

"""Show a welcome box on the home page when the user has
no chat history.
"""
from rich.console import RenderableType
from textual.widgets import Static
class Welcome(Static):
MESSAGE = """
To get started, type a message in the box at the top of the
screen and press [b u]enter[/] to send it. Use [b u]shift+enter[/] or [b u]\\[/] for newlines.
Change the model and system prompt by pressing [b u]ctrl+o[/].
Connected to the Knowledge Verification API for grounded responses.
Use [b u]/search[/], [b u]/verify[/], and [b u]/correct[/] for direct KV operations.
For cloud models, set the appropriate API key (e.g. [b]ANTHROPIC_API_KEY[/]).
"""
BORDER_TITLE = "Welcome!"
def render(self) -> RenderableType:
return self.MESSAGE