pub struct A2aLimits {
pub connect_timeout: Duration,
pub request_timeout: Duration,
pub max_response_bytes: usize,
pub max_wait: Duration,
pub poll_interval: Duration,
pub max_output_bytes: usize,
pub stream_idle_timeout: Duration,
pub max_event_bytes: usize,
}Expand description
Timeouts and size limits for one remote agent.
Separated from the operator-facing fields of A2aAgentConfig because
they are tuning knobs for the host rather than something an operator
writes in a configuration file.
Fields§
§connect_timeout: DurationBound on establishing the connection.
request_timeout: DurationBound on one HTTP exchange, request and whole reply.
max_response_bytes: usizeBound on the bytes read for one reply.
max_wait: DurationBound on how long one tool call waits for a task to settle.
poll_interval: DurationInterval between GetTask polls while a task is working.
max_output_bytes: usizeBound on the bytes of text one tool call returns.
stream_idle_timeout: DurationBound on how long an event stream may send nothing, keep-alive comments included.
max_event_bytes: usizeBound on the bytes of one event in a stream.
Trait Implementations§
impl Eq for A2aLimits
impl StructuralPartialEq for A2aLimits
Auto Trait Implementations§
impl Freeze for A2aLimits
impl RefUnwindSafe for A2aLimits
impl Send for A2aLimits
impl Sync for A2aLimits
impl Unpin for A2aLimits
impl UnsafeUnpin for A2aLimits
impl UnwindSafe for A2aLimits
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