objectiveai 1.2.7 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # ObjectiveAI JavaScript SDK
2
+
3
+ [![npm version](https://img.shields.io/npm/v/objectiveai.svg)](https://www.npmjs.com/package/objectiveai)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ **Score everything. Rank everything. Simulate anyone.**
7
+
8
+ The official JavaScript/TypeScript SDK for [ObjectiveAI](https://objective-ai.io) - a platform for remote Functions that score, rank, and simulate preferences using ensembles of LLMs.
9
+
10
+ [Website](https://objective-ai.io) | [GitHub](https://github.com/ObjectiveAI/objectiveai) | [Discord](https://discord.gg/gbNFHensby)
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install objectiveai
16
+ ```
17
+
18
+ ## Features
19
+
20
+ - **TypeScript definitions** with Zod schemas for runtime validation
21
+ - **ESM and CommonJS** support
22
+ - **Type-safe** request and response types for all API endpoints
23
+ - **WASM bindings** included for client-side validation and compilation
24
+
25
+ ## Usage
26
+
27
+ ```typescript
28
+ import { ... } from 'objectiveai';
29
+ ```
30
+
31
+ The SDK provides comprehensive type definitions for:
32
+
33
+ - Ensemble LLMs and Ensembles
34
+ - Chat Completions
35
+ - Vector Completions
36
+ - Functions and Profiles
37
+ - Expressions (JMESPath)
38
+ - Rich content types (text, image, video, file, audio)