pub struct RuntimeConfig {
pub channel_capacity: usize,
pub shutdown_timeout: Duration,
pub inter_agent_delay: Duration,
pub backend_log_level: BackendLogLevel,
pub max_consecutive_model_errors: Option<u32>,
pub max_consecutive_empty_steps: Option<u32>,
pub streaming_channel_buffer: Option<usize>,
}Expand description
Configuration for the bridge runtime.
Fields§
§channel_capacity: usizeChannel buffer size for the command channel.
shutdown_timeout: DurationTimeout for joining the Python thread on shutdown.
inter_agent_delay: DurationDelay injected between successive chat commands to prevent burst requests.
backend_log_level: BackendLogLevelBackend runtime log verbosity.
Defaults to Warn, matching the upstream SDK’s default behavior.
Set to Info or Debug for verbose protocol-level diagnostics.
max_consecutive_model_errors: Option<u32>Maximum number of consecutive model-quality error steps before the
bridge aborts the stream. None uses the built-in default (3).
Set to 0 to disable the limit entirely (pure SDK pass-through).
max_consecutive_empty_steps: Option<u32>Maximum number of consecutive thinking-only/empty steps before the
bridge aborts the stream. None uses the built-in default (500).
Set to 0 to disable the limit entirely (pure SDK pass-through).
streaming_channel_buffer: Option<usize>Buffer size for streaming response channels.
None uses the built-in default (256). Each chat call creates
~7 channels of this size.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more