Licence
MIT
Version
2.2.7
Deps
1
Size
46.3 MB
Vulns
0
Weekly
0
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 swarms 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:
- Swarm LLMs and Swarms
- Chat Completions
- Vector Completions
- Functions and Profiles
- Expressions (JMESPath and Starlark)
- Rich content types (text, image, video, file, audio)