langchain.js
    Preparing search index...

    Type Alias Branch<RunInput, RunOutput>

    Type for a branch in the RunnableBranch. It consists of a condition runnable and a branch runnable. The condition runnable is used to determine whether the branch should be executed, and the branch runnable is executed if the condition is true.

    Type Parameters

    • RunInput
    • RunOutput