Skip to main content

Crate objectiveai_api

Crate objectiveai_api 

Source
Expand description

ObjectiveAI API server library.

This crate provides the core implementation for the ObjectiveAI REST API, which enables scoring, ranking, and simulating preferences using ensembles of LLMs.

§Modules

  • auth - Authentication and API key management
  • chat - Chat completions with Ensemble LLMs
  • ctx - Request context and extensions
  • ensemble - Ensemble management and retrieval
  • ensemble_llm - Ensemble LLM management and retrieval
  • error - Error response handling
  • functions - Function execution and profile management
  • util - Utility types for streaming and indexing
  • vector - Vector completions for scoring and ranking

Modules§

auth
Authentication and API key management. Authentication and API key management.
chat
Chat completions with Ensemble LLMs. Chat completions with Ensemble LLMs.
ctx
Request context and extensions for dependency injection. Request context and extensions for dependency injection.
ensemble
Ensemble management, fetching, and retrieval. Ensemble management, fetching, and retrieval.
ensemble_llm
Ensemble LLM management, fetching, and retrieval. Ensemble LLM management, fetching, and retrieval.
error
Error response handling and conversion. Error response handling and conversion to Axum responses.
functions
Function execution, profile management, and computations. Function operations.
util
Utility types for streaming and choice indexing. Utility types for streaming and choice indexing.
vector
Vector completions for scoring and ranking responses. Vector completion operations.