Expand description
ObjectiveAI SDK for Rust.
This crate provides data structures, validation, and client-side compilation for the ObjectiveAI API - a platform for scoring, ranking, and simulating preferences using ensembles of LLMs.
§Core Concepts
- Ensemble LLM: A configured instance of a single upstream language model
- Ensemble: A collection of Ensemble LLMs used together for voting
- Vector Completion: Runs multiple LLMs to vote on responses, producing weighted scores
- Function: A composable scoring pipeline built from Vector Completions
- Profile: Learned weights for a Function, trained on example data
§Features
http(default): Enables the HTTP client for making API requests
§Modules
auth- API authentication typeschat- Chat completion APIsensemble- Ensemble definitions and validationensemble_llm- Ensemble LLM configurationserror- Error typesfunctions- Function definitions, execution, and client-side compilationprefixed_uuid- UUID utilitiesvector- Vector completion APIs
When the http feature is enabled:
HttpClient- HTTP client for API requestsHttpError- HTTP error types
Modules§
- auth
- Authentication types for the ObjectiveAI API.
- chat
- Chat completion API types.
- ensemble
- Ensemble definitions and validation.
- ensemble_
llm - Ensemble LLM definitions and configuration.
- error
- Error types for the ObjectiveAI SDK.
- functions
- Function definitions, profiles, and execution types.
- prefixed_
uuid - Prefixed UUID type for ObjectiveAI identifiers.
- vector
- Vector completion API types.
Structs§
- Http
Client - HTTP client for making requests to the ObjectiveAI API.
Enums§
- Http
Error - Errors that can occur during HTTP operations.