Skip to main content

Crate everruns_openrouter

Crate everruns_openrouter 

Source
Expand description

OpenRouter provider driver for Everruns.

everruns-openrouter is part of the Everruns ecosystem. It implements the ChatDriver contract from everruns-core and registers the OpenRouter provider into a DriverRegistry.

OpenRouter exposes an OpenAI-compatible Responses API, so OpenRouterChatDriver wraps everruns_provider::OpenResponsesProtocolChatDriver tagged with DriverId::OpenRouter. Its /models endpoint advertises richer metadata (a supported_parameters array) that the crate parses into capability profiles at discovery time.

§Registering the Driver

use everruns_provider::DriverRegistry;
use everruns_openrouter::register_driver;

let mut registry = DriverRegistry::new();
register_driver(&mut registry);

Structs§

DriverRegistry
Registry for LLM drivers
OpenRouterArchitecture
Modality metadata from OpenRouter’s architecture object.
OpenRouterChatDriver
OpenRouter driver using its OpenAI-compatible Responses API.
OpenRouterModelInfo
Individual model entry from OpenRouter’s models API.
OpenRouterModelsResponse
Response from OpenRouter’s /api/v1/models endpoint.
OpenRouterPricing
Per-token pricing reported by OpenRouter’s pricing object.
OpenRouterRequestExtension
Layers OpenRouter-specific fields onto an Open Responses request body.
OpenRouterTopProvider
Per-request limits reported by the routed upstream provider.

Traits§

ChatDriver
Trait for LLM drivers

Functions§

register_driver
Register the OpenRouter driver with the driver registry.