English Summary: llm-exe is a modular TypeScript library for building type-safe LLM agents and AI functions with full TypeScript support, provider-agnostic architecture, and production-ready features like automatic retries and schema validation. It enables developers to create composable executors, powerful parsers, and autonomous agents while allowing one-line provider switching between OpenAI, Anthropic, Google, xAI, and others.
中文摘要翻译:llm-exe是一个模块化TypeScript库,用于构建类型安全的LLM代理和AI函数,具有完整的TypeScript支持、供应商无关的架构以及生产就绪功能(如自动重试和模式验证)。它使开发人员能够创建可组合的执行器、强大的解析器和自主代理,同时允许在OpenAI、Anthropic、Google、xAI等供应商之间进行单行切换。llm-exe 是一个 TypeScript 框架,通过模块化组件将 LLM 调用封装为类型安全、可复用的 AI 函数,解决 JSON 解析、类型缺失、供应商锁定等常见痛点,让 AI 集成像调用普通函数一样可靠。
原文翻译:
llm-exe is a TypeScript framework that packages LLM calls into type-safe, reusable AI functions using modular components. It addresses common pain points like JSON parsing, lack of type safety, and vendor lock-in, making AI integration as reliable as calling regular functions.