survey-mcp-server
Version:
Survey management server handling survey creation, response collection, analysis, and reporting with database access for data management
27 lines (26 loc) • 904 B
TypeScript
export interface ChatMessage {
role: 'system' | 'user' | 'assistant';
content: string | Array<{
type: 'text' | 'image_url';
text?: string;
image_url?: {
url: string;
};
}>;
}
export interface LLMResponse {
content: string;
usage?: {
prompt_tokens: number;
completion_tokens: number;
total_tokens: number;
};
}
export declare class LLMClient {
private openai;
constructor(apiKey?: string);
ask(query: string, systemPrompt?: string, modelName?: string, jsonMode?: boolean, temperature?: number, maxTokens?: number): Promise<any>;
chatCompletion(messages: ChatMessage[], modelName?: string, temperature?: number, maxTokens?: number): Promise<string>;
generateEmbedding(text: string, model?: string): Promise<number[]>;
solveCaptcha(captchaImage: string, prompt?: string): Promise<string>;
}