Skip to main content

retry_class_for_stream_error

Function retry_class_for_stream_error 

Source
pub fn retry_class_for_stream_error(error_type: Option<&str>) -> RetryClass
Expand description

Map an in-stream Anthropic error type (already vetted upstream) to a coarse retry class. None means the stream died at transport level.