UNPKG

@travisennis/acai-brainstorm

Version:

A set of brainstorming agents and tools to use with AI.SDK.

22 lines (20 loc) 439 B
export interface Message { data: string | Promise<string>; event?: "tool-init" | "tool-update" | "tool-completion" | "tool-error"; id?: string; retry?: number; } // Define message types 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>;