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<StructuredToolCallInput<SchemaT, SchemaInputT>, ToolMessage<MessageStructure<MessageToolSet>> | ToolOutputT, RunnableConfig<Record<string, any>>>[]
): RunnableWithFallbacks<StructuredToolCallInput<SchemaT, SchemaInputT>, ToolMessage<MessageStructure<MessageToolSet>> | ToolOutputT>| Name | Type | Description |
|---|---|---|
fields* | __type | Runnable<StructuredToolCallInput<SchemaT, SchemaInputT>, ToolMessage<MessageStructure<MessageToolSet>> | ToolOutputT, RunnableConfig<Record<string, any>>>[] |