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