Create a new runnable from the current one that will try invoking other passed fallback runnables if the initial invocation fails.
withFallbacks(
fields: __type | Runnable<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[], RunnableConfig<Record<string, any>>>[]
): RunnableWithFallbacks<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[]>| Name | Type | Description |
|---|---|---|
fields* | __type | Runnable<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[], RunnableConfig<Record<string, any>>>[] |