ai-cant-even
Version:
A satirical AI-powered utility that's confidently wrong about basic math operations
59 lines (53 loc) • 1.28 kB
text/typescript
/**
* Confidence levels for the AI's responses
*/
export enum Confidence {
OVERWHELMED = 'OVERWHELMED', // So confused it can't even finish thoughts
OVERTHINK = 'OVERTHINK', // Overthinking simple concepts
SMUG = 'SMUG', // Smugly confident in wrong answers
SNARKY = 'SNARKY', // Sarcastic and dismissive
}
/**
* Logic types for the AI's reasoning
*/
export enum Logic {
SIMPLE = 'SIMPLE', // Almost-logical reasoning with wrong conclusions
NONSEQUITUR = 'NONSEQUITUR', // Completely random associations
PSEUDOMATH = 'PSEUDOMATH', // Uses fake mathematical reasoning
VISUAL = 'VISUAL', // Based on visual/aesthetic reasoning
}
/**
* Supported LLM providers
*/
export enum Provider {
ANTHROPIC = 'anthropic',
OPENAI = 'openai',
}
/**
* Configuration options for the AI
*/
export interface AiCantEvenConfig {
confidence?: Confidence;
logic?: Logic;
provider?: Provider;
apiKey?: string;
apiEndpoint?: string;
model?: string;
}
/**
* Response from the LLM API
*/
export interface LlmResponse {
text: string;
success: boolean;
}
/**
* Parameters for generating a prompt for the LLM
*/
export interface PromptParams {
confidence: Confidence;
logic: Logic;
operation: string;
value: number;
comparisonValue?: number;
}