UNPKG

@cellular-ai/engine

Version:

API for building custom AI coding editors/agents/platforms

10 lines (9 loc) 528 B
import { Response } from 'express'; import { EngineService, ToolErrorData, ToolRequestData, ToolResultData, ToolStartData } from "./engine.js"; export interface StreamEvent { type: 'text' | 'tool_request' | 'tool_start' | 'tool_result' | 'tool_error'; 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 };