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 +38 -0
- package/dist/index.cjs +3854 -3468
- package/dist/index.d.ts +58159 -60058
- package/dist/index.js +3843 -3463
- package/dist/wasm/loader.cjs +596 -0
- package/dist/wasm/loader.js +613 -0
- package/package.json +11 -8
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# ObjectiveAI JavaScript SDK
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/objectiveai)
|
|
4
|
+
[](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)
|