Skip to main content

DEFAULT_SEND_TIMEOUT

Constant DEFAULT_SEND_TIMEOUT 

Source
pub const DEFAULT_SEND_TIMEOUT: Duration;
Expand description

How long a blocking SendMessage waits for the agent’s turn to end, by default: ten minutes.

A blocking send (return_immediately unset) is answered only when the agent’s turn ends, and an agent that calls a model takes as long as the model does. Under the 30 s request timeout every other call has, the first slow turn failed with request timed out while the task went on running, and the caller never learned its id (audit D-01, run live against a model on 2026-10-29). A load balancer in front may still cut a response that takes longer than its own idle timeout (often 60 s): for long turns, stream (send_streaming_message) or send with return_immediately and follow the task.