LLM Module
Overview
File Structure
src/llm/
βββ index.ts # Exports all LLM components
βββ types.ts # Shared types for LLM integration
βββ llm-provider.ts # Provider interface
βββ openai-provider.ts # OpenAI provider implementation
βββ prompt-template.ts # Prompt templates and schemas
βββ parsers/ # (Future) Response parsers for different providersKey Components
1. Types (types.ts)
types.ts)2. Provider Interface (llm-provider.ts)
llm-provider.ts)3. OpenAI Provider (openai-provider.ts)
openai-provider.ts)4. Prompt Templates (prompt-template.ts)
prompt-template.ts)5. Index (index.ts)
index.ts)Extending the LLM Module
LLM Analysis Flow
Error Handling
Best Practices
See Also
Last updated