Annotation Interface DecisionService
Registers a LangChain4j decision service: an interface whose methods are answered by a
DecisionModel, created with
DecisionServices.
The return type of a method determines the question: a boolean or
described enum, a
Choice, a Scale or an object of
those, set with Decide.
The service uses the DecisionModel and ThresholdProvider beans
named after the service, otherwise the default ones.
- Since:
- 2.4.0
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
-
named
The name of the service, which selects theDecisionModelbean of that name.- Returns:
- The service name
- Default:
""
-