Package dev.langchain4j.chain
Interface Chain<Input,Output>
- Type Parameters:
Input
- the input typeOutput
- the output type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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.-
Method Summary
-
Method Details
-
execute
Execute the chain step.- Parameters:
input
- the input- Returns:
- the output
-