objectiveai
v1.3.3
Published
SDK for the ObjectiveAI API.
Downloads
1,363
Maintainers
Readme
ObjectiveAI JavaScript SDK
Score everything. Rank everything. Simulate anyone.
The official JavaScript/TypeScript SDK for ObjectiveAI - a platform for remote Functions that score, rank, and simulate preferences using ensembles of LLMs.
Installation
npm install objectiveaiFeatures
- TypeScript definitions with Zod schemas for runtime validation
- ESM and CommonJS support
- Type-safe request and response types for all API endpoints
- WASM bindings included for client-side validation and compilation
Usage
import { ... } from 'objectiveai';The SDK provides comprehensive type definitions for:
- Ensemble LLMs and Ensembles
- Chat Completions
- Vector Completions
- Functions and Profiles
- Expressions (JMESPath)
- Rich content types (text, image, video, file, audio)
