Interface SkillHttpRetryOptions

Hierarchy

  • SkillHttpRetryOptions

Index

Properties

retries

retries: number

The number of times to retry an HTTP call. Max allowed retries is 5.

Optional retryCondition

retryCondition: (error: SkillHttpError) => boolean

A callback to customize when a retry should occur. By default, retry occurs when there is an HttpError, 429 status code, or response status >= 500.

Type declaration

Optional retryDelayMs

retryDelayMs: number

The delay between retries in milliseconds. Defaults to 250 milliseconds. Max allowed retry time (retries * retryDelayMs) is 30 seconds.

Optional shouldResetTimeout

shouldResetTimeout: boolean

Determines if the timeout be reset between each retry, default is false.

Generated using TypeDoc