A message carries a content part the provider cannot send: an image or a document its API does not take, from a source it cannot read, in a role it cannot carry it in, or a file uploaded to another provider. The request fails before anything is sent, rather than have the part dropped or sent as text. It is not retryable: the conversation must change before a retry.
Value parameters
part
the part's kind, e.g. image (url, image/png) (see ContentPart.kind)
provider
the client's provider id, e.g. ollama
role
the role of the message that carries it, e.g. user or tool
The delay the server asked for before the request is sent again (an HTTP Retry-After header), and only that: None when the server gave none. A delay the library chooses when the server is silent is the retry policy's, never reported here, so "the server said" and "we guessed" stay distinguishable.
The delay the server asked for before the request is sent again (an HTTP Retry-After header), and only that: None when the server gave none. A delay the library chooses when the server is silent is the retry policy's, never reported here, so "the server said" and "we guessed" stay distinguishable.