oxigate-plugin-sdk 0.0.1

Extension-point traits for OxiGate plugins — Middleware, ProviderAdapter, CostCalculator, RoutingStrategy, StorageBackend, ExportSink
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! OxiGate Plugin SDK — extension-point traits for building OxiGate plugins.
//!
//! **Pre-release placeholder.** Trait definitions are under design (E-10).
//! Stable API not yet available. See <https://oxigate.io> for updates.
//!
//! ## Planned extension points
//!
//! - `Middleware` — custom pre-request, post-response, and error-handling logic
//! - `ProviderAdapter` — custom LLM provider backends
//! - `CostCalculator` — custom pricing logic per model or provider
//! - `RoutingStrategy` — custom request routing logic
//! - `StorageBackend` — swap the default PostgreSQL storage layer
//! - `ExportSink` — push cost/metrics data to custom destinations

/// Returns the crate version string.
pub fn version() -> &'static str {
    env!("CARGO_PKG_VERSION")
}