Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
A comprehensive collection of Agent Skills for context engineering, multi-agent architectures, and production agent systems.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
examples/llm-as-judge-skills/src/config/index.ts
1import 'dotenv/config';23export const config = {4openai: {5apiKey: process.env.OPENAI_API_KEY || '',6model: process.env.OPENAI_MODEL || 'gpt-4o'7},8anthropic: {9apiKey: process.env.ANTHROPIC_API_KEY || ''10}11} as const;1213export function validateConfig(): void {14if (!config.openai.apiKey) {15throw new Error('OPENAI_API_KEY is required. Create a .env file with your API key.');16}17}1819