Documentation Index
Fetch the complete documentation index at: https://docs.mobile-starter.amisi.ai/llms.txt
Use this file to discover all available pages before exploring further.
@amisi/chat
@amisi/chat provides reusable chat UI components, typed chat models, local conversation history, and mock handlers for AI assistant experiences.
What it includes
-
UI components
ChatContainerChatHeaderChatMessageBubbleChatComposerChatSuggestionChipsChatTypingIndicator
-
Typed models
- Zod-backed message and conversation schemas.
- Shared
ChatConfig, message role, and handler types.
-
Conversation persistence
- Local conversation storage utilities using MMKV.
- History retrieval and management via
useChatHistory.
-
Mock handlers
- Streaming and non-streaming mock handlers for local development.
Render a chat container
Use chat history
AI integration strategy
You can start with the built-in mock handlers and then swap in real providers by passing your own handlers toChatContainer:
onSendMessagefor request-response handlingonStreamMessagefor token streaming