Yasminaai Ruby Library
Table of Contents
Reference
A full reference for this library is available here.Usage
Instantiate and use the client with the following:Environments
This SDK allows you to configure different environments or custom URLs for API requests. You can either use the predefined environments or specify your own custom URL.Environments
Custom URL
Errors
Failed API calls will raise errors that can be rescued from granularly.Advanced
Retries
The SDK is instrumented with automatic retries. A request will be retried as long as the request is deemed retryable and the number of retry attempts has not grown larger than the configured retry limit (default: 2). A request is deemed retryable when any of the following HTTP status codes is returned: TheretryStatusCodes configuration controls which 5XX status codes are retried:
legacy(default): Retries408,429,500,502,503,504,521,522,524recommended: Retries408,429,502,503,504only (excludes500 Internal Server Errorto avoid retrying non-idempotent failures)
max_retries option to configure this behavior.
Timeouts
The SDK defaults to a 60 second timeout. Use thetimeout option to configure this behavior.
Additional Headers
If you would like to send additional headers as part of the request, use theadditional_headers request option.
Additional Query Parameters
If you would like to send additional query parameters as part of the request, use theadditional_query_parameters request option.

