struct

Smith::LLM::Timeouts

Inherits Struct < Value < Object

How long a provider will wait before giving up on a request.

Note that an elapsed read timeout is not retried (see Retry.retryable?), so read is genuinely the longest smith will sit on a single call.

Constructors

default

Mirrors the [http] defaults in Smith::Config so there is only ever one source of truth for these numbers.

Source
from_seconds(connect_seconds : Int32, read_seconds : Int32) : Timeouts

What the [http] config section yields, which is whole seconds.

Source
new(connect : Time::Span, read : Time::Span)
Source

Instance methods

connect
Source
read
Source