ocp_types/lib.rs
1//! `ocp-types` — the Open Context Protocol wire types.
2//!
3//! This crate is the industry-facing artifact: **MIT licensed, zero
4//! dependencies beyond `serde`**, publishable to crates.io on its own so a
5//! third party can implement an OCP host or provider without pulling in any
6//! Stella code. See `docs/specs/stella-rust-cli/06-context-protocol.md` §3
7//! for the normative shape this crate binds to Rust types.
8//!
9//! Protocol version: `ocp/1.0-draft`.
10
11pub mod capability;
12pub mod frame;
13pub mod query;
14
15pub use capability::{Capabilities, DataFlow, ProviderInfo};
16pub use frame::{ContextFrame, FrameKind, Provenance, Relation};
17pub use query::{ContextQuery, ContextQueryResult};
18
19/// The protocol version string this crate implements. Frozen to `ocp/1.0`
20/// only at the public v1.0 release (`06-context-protocol.md` §3).
21pub const PROTOCOL_VERSION: &str = "ocp/1.0-draft";