@travisennis/acai-brainstorm
Version:
A set of brainstorming agents and tools to use with AI.SDK.
13 lines (12 loc) • 398 B
TypeScript
export interface Message {
data: string | Promise<string>;
event?: "tool-init" | "tool-update" | "tool-completion" | "tool-error";
id?: string;
retry?: number;
}
export type SseMessage<T = unknown> = {
type: "progress" | "error" | "complete";
data: T;
timestamp: number;
} | string;
export type SendData = ({ data, event, id, retry, }: Message) => void | Promise<void>;