Skip to main content
The Voyage dashboard is being retired from general use. Existing Voyage API integrations continue to work, and this reference remains available by direct link.
Voyage and inference exceptions derive from sail.SailError, the base for every SDK error. flush() raises these on delivery failure. complete() and fail() warn instead of raising (the terminal event is kept in the buffer for retry). event() never raises network errors.
All SDK network calls are bounded: inference requests default to a 600s timeout, voyage lifecycle calls to 10s, and flush() bounds each batch send (60s) even when called without a timeout. A wedged connection results in one of the errors below instead of blocking forever. Most agents should use with sail.voyage.run(...):. It emits voyage.completed on a clean exit, emits voyage.failed and re-raises on an exception, and performs the same bounded best-effort terminal delivery as the manual helpers. Use create() / complete() / fail() only when your controller starts and ends the Voyage in different places, or when you need strict raise-on-failure confirmation of the terminal lifecycle event. Call flush() after the terminal helper so voyage.completed or voyage.failed is already in the delivery buffer:

VoyageError

Base class for Voyage SDK delivery errors, such as a flush that times out or cannot deliver a required terminal event. Subclass of SailError.

VoyageHTTPError

Raised when the Voyage API returns an HTTP error. Subclass of VoyageError.

VoyageNotFoundError

Raised when a Voyage cannot be found for the current API key (HTTP 404). Subclass of VoyageHTTPError, so it has the status_code and response attributes.

InferenceError

Base class for inference wrapper errors. Raised, for example, when an unsupported wrapper option such as stream=True is passed, or when no API key is configured. Subclass of SailError.

InferenceHTTPError

Raised when a Sail inference endpoint returns a non-2xx response. Subclass of InferenceError.