Skip to main content

oxigate_plugin_sdk/
lib.rs

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