Home / Docs / AI & Chat Primitives
AI Suite

AI-Native Application Primitives

First-class Svelte 5 runes primitives for building generative AI chat interfaces, prompt bars, reasoning thought trees, and tool invocation cards.

Interactive AI Chat (<AiChat />)

Includes auto-scrolling message streams, assistant & user avatars, copy actions, collapsible reasoning thoughts, and tool call inspection.

Interactive Preview

Yaxa Copilot
Online & Ready
Can you analyze the database schema and summarize the active subscriptions?
US
YC
I analyzed the schema and retrieved active organization subscriptions. You currently have 42 active Pro subscriptions and 8 Enterprise accounts.

Props & API Reference

4 Props

Complete TypeScript interface and runtime configuration properties.

PropertyType DefinitionDefaultDescription
messages
AiMessage[]
[]Array of conversation messages with roles, thoughts, and tools
loading
boolean
falseDisplays in-flight generation state and pulsing status
assistantName
string
'AI Assistant'Title displayed in the chat header
onsend
(text: string, files?: File[]) => void
undefinedCallback triggered when user submits a prompt

Prompt Input Bar (<PromptBar />)

Auto-expanding textarea with file dropzone attachments, voice microphone toggle, and slash-command autocompletion (`/`).

Interactive Preview

Reasoning & Tool Execution Cards

Interactive Preview

  • Parsed user intent
  • Resolved schema types

Model reasoning and analysis steps...