@coral-ai/chat
v0.4.2
Published
Chat surface for Coral: Chat, Chat.Canvas, Chat.Messages, Chat.Input, and agent helpers.
Readme
@coral-ai/chat
Chat surface for Coral: <Chat>, <Chat.Canvas>, <Chat.Messages>, <Chat.Input>, streaming helpers, and a model-agnostic agent tool-use runner.
Install
npm install @coral-ai/chat @coral-ai/markdown @coral-ai/bundleicons @fluentui/react-components @fluentui/react-icons react react-domPeer dependencies do not install transitively. Install all of the above explicitly.
Usage
import { Chat } from "@coral-ai/chat";
<Chat onSendMessage={async (input) => `You said: ${input}`} />onSendMessage is the one handler — return a string, an async iterable of
ChatChunks, or a ChatResponse. A backend URL can also be supplied via the
api prop or coral.config.json's chat.api.
See coral-ai for the full project.
