UNPKG

@cellular-ai/engine

Version:

API for building custom AI coding editors/agents/platforms

10 lines (9 loc) 558 B
import { Response } from 'express'; import { EngineService, ToolErrorData, ToolRequestData, ToolResultData, ToolStartData } from "../services/engine.js"; export interface StreamEvent { type: 'text' | 'tool_request' | 'tool_start' | 'tool_result' | 'tool_error' | 'chat_compressed'; content: string | ToolRequestData | ToolStartData | ToolResultData | ToolErrorData; timestamp: string; } declare const stream: (response: Response, engine: EngineService, prompt: string, setHeaders?: boolean, context?: string) => Promise<void>; export { stream };