Skip to main content

observe_provider_turn

Function observe_provider_turn 

Source
pub fn observe_provider_turn(
    provider: &str,
    failure: Option<&AgentFailure>,
    configured: Option<&str>,
)
Expand description

What a finished turn of provider says about its model API: a clean turn, or a failure the API itself returned (limit, auth, overload), reached it; a network failure did not. Any other failure says nothing.