接口 Chain<Input,Output>

类型参数:
Input - the input type
Output - the output type
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface Chain<Input,Output>
Represents a chain step that takes an input and produces an output. It is recommended to use AiServices from dev.langchain4j:langchain4j module instead, as it is more powerful.
  • 方法概要

    修饰符和类型
    方法
    说明
    execute(Input input)
    Execute the chain step.
  • 方法详细资料

    • execute

      Output execute(Input input)
      Execute the chain step.
      参数:
      input - the input
      返回:
      the output