pub struct ChannelConfig {
pub input_capacity: usize,
pub ops_capacity: usize,
pub ops_backpressure: BackpressurePolicy,
}Expand description
Configuration for bounded channel capacities used by [AgentSession].
All capacities have sensible defaults (64) and can be overridden via the
builder pattern on AgentLoopBuilder.
Fields§
§input_capacity: usizeCapacity of the user-input channel (messages sent via AgentSession::send).
ops_capacity: usizeCapacity of the per-turn operations channel (ops like Interrupt, InjectHint).
ops_backpressure: BackpressurePolicyBackpressure policy applied when the ops channel is full.
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelConfig
impl Debug for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnsafeUnpin for ChannelConfig
impl UnwindSafe for ChannelConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more