Package dev.langchain4j.chain
Interface Chain<Input,Output>
- Type Parameters:
Input
- the input typeOutput
- 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.
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
Chains are not going to be developed further, it is recommended to use
AiServices
instead.-
Method Summary
-
Method Details
-
execute
Execute the chain step.- Parameters:
input
- the input- Returns:
- the output
-