@coral-ui/chat
v0.2.0
Published
Chat surface for Coral UI: Chat, Chat.Canvas, Chat.Messages, Chat.Input, and agent helpers.
Readme
@coral-ui/chat
Chat surface for Coral UI: <Chat>, <Chat.Canvas>, <Chat.Messages>, <Chat.Input>, agent registration, and streaming helpers.
Install
npm install @coral-ui/chat @coral-ui/markdown @coral-ui/bundleicons @fluentui/react-components @fluentui/react-icons react react-domPeer dependencies do not install transitively. Install all of the above explicitly.
Usage
import { Chat, createHandler } from "@coral-ui/chat";
const myHandler = createHandler(async ({ message }) => {
return { content: `You said: ${message}` };
});
<Chat
agents={{ default: { handler: myHandler } }}
agent="default"
/>See coral-ui for the full project.
