pub struct RequestBuildDetail {
pub records_ms: u64,
pub system_ms: u64,
pub headers_ms: u64,
pub cache_break_record_ms: u64,
pub plans_ms: u64,
pub retry_setup_ms: u64,
pub sent_build_ms: u64,
pub record_attempt_ms: u64,
pub other_ms: u64,
pub sent_build_safety_context_ms: Option<u64>,
pub sent_build_cache_breakpoints_ms: Option<u64>,
pub sent_build_surrogate_scan_ms: Option<u64>,
}Expand description
ResultMessage::request_build_detail — how the request_build phase
was spent (CLI 2.1.317+). The nine values from records_ms to
other_ms add up to the phase exactly; the three sent_build_* members
lie within sent_build_ms and are not part of
the sum.
Fields§
§records_ms: u64Recording what this request sends and setting up the shared retry handlers.
system_ms: u64The fallback-block check, attribution header, cache lifetime and the system prompt’s blocks.
headers_ms: u64Tool/system-prompt change detection, effort, fast mode, permission context waits and beta headers.
cache_break_record_ms: u64Recording the prompt’s state so a later prompt-cache break can be explained.
plans_ms: u64Defining the first retry handlers, planning tool-result clearing and opening the request’s tracing span.
retry_setup_ms: u64Defining the rest of the retry and fallback handlers.
sent_build_ms: u64Building the parameters that are sent, for every attempt before the first dispatch.
record_attempt_ms: u64From there to the moment the request is recorded as sent.
other_ms: u64§sent_build_safety_context_ms: Option<u64>Assembling the context for the server-side safety check.
sent_build_cache_breakpoints_ms: Option<u64>The last clean-up of the messages before sending, placing the prompt-cache breakpoints.
sent_build_surrogate_scan_ms: Option<u64>Scanning the body for lone UTF-16 surrogates, and the scrub where one is found.