Interface Chain<Input,Output>

Type Parameters:
Input - the input type
Output - the output type
All Known Implementing Classes:
ConversationalChain, ConversationalRetrievalChain
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Chain<Input,Output>
Represents a chain step that takes an input and produces an output.
Chains are not going to be developed further, it is recommended to use AiServices instead.
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(Input input)
    Execute the chain step.
  • Method Details

    • execute

      Output execute(Input input)
      Execute the chain step.
      Parameters:
      input - the input
      Returns:
      the output