Skip to main content

Interface: VideoFallbackEvent

Defined in: packages/agentos/src/io/media/video/FallbackVideoProxy.ts:60

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

Example​

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

Properties​

from​

from: string

Defined in: packages/agentos/src/io/media/video/FallbackVideoProxy.ts:64

Identifier of the provider that failed.


reason​

reason: string

Defined in: packages/agentos/src/io/media/video/FallbackVideoProxy.ts:68

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


to​

to: string

Defined in: packages/agentos/src/io/media/video/FallbackVideoProxy.ts:66

Identifier of the provider that will be tried next.


type​

type: "video:generate:fallback"

Defined in: packages/agentos/src/io/media/video/FallbackVideoProxy.ts:62

The event discriminator. Always 'video:generate:fallback'.