UNPKG

braiin

Version:

Behavioral Reasoning AI for Intelligent Navigation

12 lines (11 loc) 662 B
import { LLMMessage, LLMResponse } from "../model/llm"; import { OpenAIConfig } from "./openai.backend"; import { ClaudeCodeConfig } from "./claude-code.backend"; export type LLMConfig = OpenAIConfig | ClaudeCodeConfig; export interface LLMService { ask: (systemPrompt: string, prompt: string, history: LLMMessage[], callback?: (response: string) => any) => Promise<LLMResponse | undefined>; } export declare const createLLMService: (config: LLMConfig) => LLMService; export { buildMessages, buildCompletionParams } from "./openai.backend"; export type { OpenAIConfig } from "./openai.backend"; export type { ClaudeCodeConfig } from "./claude-code.backend";