pub struct RealtimeSessionOpenConfig {
pub turning_mode: RealtimeTurningMode,
pub llm_identity: SessionLlmIdentity,
pub visible_tools: Vec<ToolDef>,
pub seed_messages: Vec<Message>,
pub runtime_system_context: Vec<PendingSystemContextAppend>,
pub response_nudge_timeout_ms: Option<u64>,
pub response_nudge_max_attempts: Option<u8>,
}Expand description
Canonical live session projection used to open a provider-backed realtime session.
This is the product-session equivalent of a build seam: the provider session must be opened from the currently-owned Meerkat session identity, visible tools, and committed transcript instead of inventing a parallel provider-only conversation.
Fields§
§turning_mode: RealtimeTurningMode§llm_identity: SessionLlmIdentity§visible_tools: Vec<ToolDef>§seed_messages: Vec<Message>§runtime_system_context: Vec<PendingSystemContextAppend>Runtime-authored system context carried as typed provenance.
Provider adapters must treat this as the only authoritative realtime reconstruction source for runtime context. Rendered transcript markers are projections only and must not be parsed back into authority.
response_nudge_timeout_ms: Option<u64>Per-channel override for the “nudge the provider” timeout the OpenAI
adapter uses while waiting for the first real delta after a turn is
admitted. None inherits the adapter’s compile-time default.
response_nudge_max_attempts: Option<u8>Per-channel override for the maximum number of nudge attempts before
the adapter gives up. None inherits the adapter default.
Implementations§
Source§impl RealtimeSessionOpenConfig
impl RealtimeSessionOpenConfig
pub fn new( turning_mode: RealtimeTurningMode, llm_identity: SessionLlmIdentity, visible_tools: Vec<ToolDef>, seed_messages: Vec<Message>, ) -> RealtimeSessionOpenConfig
Sourcepub fn with_runtime_system_context(
self,
runtime_system_context: Vec<PendingSystemContextAppend>,
) -> RealtimeSessionOpenConfig
pub fn with_runtime_system_context( self, runtime_system_context: Vec<PendingSystemContextAppend>, ) -> RealtimeSessionOpenConfig
Builder-style typed runtime context for provider reconstruction.
Sourcepub fn with_response_nudge_timeout_ms(
self,
timeout_ms: Option<u64>,
) -> RealtimeSessionOpenConfig
pub fn with_response_nudge_timeout_ms( self, timeout_ms: Option<u64>, ) -> RealtimeSessionOpenConfig
Builder-style override for the per-channel nudge timeout.
Sourcepub fn with_response_nudge_max_attempts(
self,
max_attempts: Option<u8>,
) -> RealtimeSessionOpenConfig
pub fn with_response_nudge_max_attempts( self, max_attempts: Option<u8>, ) -> RealtimeSessionOpenConfig
Builder-style override for the per-channel nudge max attempts.
Trait Implementations§
Source§impl Clone for RealtimeSessionOpenConfig
impl Clone for RealtimeSessionOpenConfig
Source§fn clone(&self) -> RealtimeSessionOpenConfig
fn clone(&self) -> RealtimeSessionOpenConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more