API Models
reachat is data-shape driven β every component reads from a small set of TypeScript interfaces. Below are the public model types youβll use when wiring up sessions, conversations, attachments, citations, and starter prompts.
Session
Conversation
ConversationSource
| Name | Type | Default |
|---|---|---|
url | stringURL of the source, if applicable | |
title | stringTitle or description of the source | |
image | stringImage URL of the source, if applicable. |
ConversationFile
| Name | Type | Default |
|---|---|---|
name | stringName of the file | |
type | stringType of the file | |
size | numberSize of the file | |
url | stringURL of the file |
Template
Templates power the starter-prompt UI rendered by <SessionsList templates>.
Each template appears as a clickable card when no session is active.
Suggestion
Suggestions power the <ChatSuggestions> chip list β a row of clickable
prompts you can render inline in the message panel.