llm-api-contract
CommunityEnsure correct LLMService API usage
Authortylerjrbuell
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill codifies the exact TypeScript API contract for LLMService to prevent common compile-time and runtime errors caused by incorrect method signatures, wrong field access, or improper error handling.
Core Features & Use Cases
- Precise API Signatures: Documents the exact shapes and return types for complete, stream, completeStructured, embed, countTokens, and getModelConfig.
- Correct Field Usage & Error Semantics: Clarifies expected response fields such as content, stopReason, and usage.estimatedCost and enforces Effect-based error handling conventions.
- Use Case: Use this contract when implementing or calling LLMService across agent layers, writing reasoning strategies, building LLM-dependent features, or creating deterministic test providers.
Quick Start
Validate your LLMService calls against the contract by calling complete with messages and accessing response.content and response.usage.totalTokens.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: llm-api-contract Download link: https://github.com/tylerjrbuell/reactive-agents-ts/archive/main.zip#llm-api-contract Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.