rs-genai
Raw wire protocol and transport for the Gemini Multimodal Live API. This is the L0 (foundation) crate in the gemini-rs workspace — it handles WebSocket connections, authentication, wire-format types, and audio buffering with no agent abstractions.
Features
- Protocol types mapping 1:1 to the Gemini Live API wire format
- WebSocket transport with Vertex AI and Google AI authentication
- Lock-free audio buffers (SPSC ring buffer, adaptive jitter buffer)
- Voice activity detection with adaptive noise floor
- Feature-gated REST APIs (generate, embed, files, models, tokens, caches, tunings, batches)
- Pluggable architecture via
Transport,Codec, andAuthProvidertraits
Quick Start
use *;
let config = google_ai;
let = connect.await?;
handle.send_text.await?;
while let Some = events.recv.await
Documentation
License
Apache-2.0