UNPKG

@mastra/core

Version:

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

15 lines 805 B
import type { Processor, ProcessAPIErrorArgs, ProcessAPIErrorResult } from './index.js'; export type StreamErrorRetryMatcher = (error: unknown) => boolean; export type StreamErrorRetryProcessorOptions = { maxRetries?: number; matchers?: StreamErrorRetryMatcher[]; }; export declare function isRetryableOpenAIResponsesStreamError(error: unknown): boolean; export declare class StreamErrorRetryProcessor implements Processor<'stream-error-retry-processor'> { #private; readonly id: "stream-error-retry-processor"; readonly name = "Stream Error Retry Processor"; constructor(options?: StreamErrorRetryProcessorOptions); processAPIError({ error, retryCount }: ProcessAPIErrorArgs): Promise<ProcessAPIErrorResult | void>; } //# sourceMappingURL=stream-error-retry-processor.d.ts.map