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.

@FunctionalInterface public static interface ReasoningStrategyHandle.Factory
Factory for creating ReasoningStrategyHandle instances by name. Discovered via ServiceLoader from tnsai-intelligence.
  • Method Details

    • create

      ReasoningStrategyHandle create(String strategyName)
      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