ai.stream._token_timeout_error

(internal) The error for an elapsed token deadline. `timeout_type` is the `LlmTimeoutOptions` field that set it.

Reference version

Signature

function ai.stream._token_timeout_error(
limit: baml.time.Duration,
timeout_type: string
) -> baml.errors.Timeout throws never

(internal) The error for an elapsed token deadline. timeout_type is the LlmTimeoutOptions field that set it.

Source:<builtin>/ai/ns_stream/stream.bamlbytes 29292–29761