Expand description
§ai-lib-rust
Protocol Runtime for AI-Protocol - A high-performance Rust reference implementation.
This library implements the AI-Protocol specification as a runtime, where all logic is operators and all configuration is protocol. It provides a unified interface for interacting with AI models across different providers without hardcoding provider-specific logic.
Re-exports§
pub use client::CallStats;pub use client::CancelHandle;pub use client::ChatBatchRequest;pub use client::EndpointExt;pub use client::AiClient;pub use client::AiClientBuilder;pub use telemetry::FeedbackEvent;pub use telemetry::FeedbackSink;pub use types::events::StreamingEvent;pub use types::message::Message;pub use types::message::MessageRole;pub use types::tool::ToolCall;pub use error::Error;pub use error::ErrorContext;
Modules§
- client
- Unified client interface for AI-Protocol runtime.
- error
- Error type for the library
- pipeline
- Pipeline interpreter layer - the core operator execution engine
- protocol
- Protocol specification layer
- resilience
- Resilience primitives (minimal, opt-in).
- telemetry
- Telemetry and feedback (optional, application-controlled).
- transport
- types
- Standard type system based on AI-Protocol standard_schema
- utils
- Utility modules
Type Aliases§
- BoxStream
- A unified pinned, boxed stream that emits PipeResult
- Pipe
Result - A specialized Result for pipeline operations
- Result
- Result type alias for the library