Package com.tnsai.reasoning
Interface ReasoningStrategyHandle.Factory
- Enclosing interface:
ReasoningStrategyHandle
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Factory for creating ReasoningStrategyHandle instances by name.
Discovered via ServiceLoader from tnsai-intelligence.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a reasoning strategy handle for the given strategy name.discover()Discovers a Factory via ServiceLoader.
-
Method Details
-
create
Creates a reasoning strategy handle for the given strategy name.- Parameters:
strategyName- strategy identifier (e.g., "react", "tot")- Returns:
- new handle instance
- Throws:
IllegalArgumentException- if the strategy name is unknown
-
discover
Discovers a Factory via ServiceLoader.- Returns:
- discovered factory, or null if tnsai-intelligence is not on classpath
-