Skip to main content

Interface: ImageFallbackEvent

Defined in: packages/agentos/src/core/images/FallbackImageProxy.ts:76

Payload emitted on the image:fallback event when a provider in the chain fails and the proxy advances to the next candidate.

Example

emitter.on('image:fallback', (evt: ImageFallbackEvent) => {
console.warn(`${evt.from} -> ${evt.to}: ${evt.reason}`);
});

Properties

from

from: string

Defined in: packages/agentos/src/core/images/FallbackImageProxy.ts:80

Identifier of the provider that failed.


reason

reason: string

Defined in: packages/agentos/src/core/images/FallbackImageProxy.ts:84

Human-readable reason for the fallback (error message or "not supported").


to

to: string

Defined in: packages/agentos/src/core/images/FallbackImageProxy.ts:82

Identifier of the provider that will be tried next.


type

type: "image:fallback"

Defined in: packages/agentos/src/core/images/FallbackImageProxy.ts:78

The event discriminator. Always 'image:fallback'.