rawi
Version:
Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into
29 lines (26 loc) • 1.09 kB
text/typescript
import { RawiCredentials, StreamingResponse } from '../shared/types.cjs';
import { ExecGenerationOptions, ExecGenerationResult } from './types.cjs';
import 'ai';
interface StreamResponseOptions {
filtering?: {
enabled: boolean;
types?: string[];
showFiltered?: boolean;
highlightFiltered?: boolean;
};
}
declare const streamResponse: (credentials: RawiCredentials, prompt: string, options?: StreamResponseOptions) => Promise<StreamingResponse>;
declare const processQuery: (credentials: RawiCredentials, prompt: string, options?: {
streaming?: boolean;
onChunk?: (chunk: string) => void;
onComplete?: (fullResponse: string) => void;
onError?: (error: Error) => void;
filtering?: {
enabled: boolean;
types?: string[];
showFiltered?: boolean;
highlightFiltered?: boolean;
};
}) => Promise<string>;
declare function generateWithProvider(options: ExecGenerationOptions): Promise<ExecGenerationResult>;
export { type StreamResponseOptions, generateWithProvider, processQuery, streamResponse };