MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / ChatMessage

Interface ChatMessage

demo/chat/session.ts:3–9  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { splitStoredStreamText } from "streamhtml";
2
3export interface ChatMessage {
4 id: string;
5 role: "user" | "assistant";
6 content: string;
7 reasoning?: string;
8 at: string;
9}
10
11export interface ChatSession {
12 id: string;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected