gemini_genai_rs/session/
mod.rs

1//! Session orchestration — the central coordination layer.
2//!
3//! Provides [`SessionHandle`] (the public API surface), [`SessionEvent`] (events from the server),
4//! [`SessionCommand`] (commands to the server), and turn tracking.
5
6pub mod errors;
7pub mod events;
8pub mod handle;
9pub mod state;
10pub mod traits;
11
12// Re-export all public types at the `session::` level for backward compatibility.
13pub use errors::{AuthError, SessionError, SetupError, WebSocketError};
14pub use events::{recv_event, ResumeInfo, SessionCommand, SessionEvent, Turn};
15pub use handle::SessionHandle;
16pub use state::{SessionPhase, SessionState};
17pub use traits::{SessionReader, SessionWriter};