Interface ContextManagerHandle.Factory

Enclosing interface:
ContextManagerHandle
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 ContextManagerHandle.Factory
Factory for creating ContextManagerHandle instances. Discovered via ServiceLoader from tnsai-intelligence.
  • Method Details

    • create

      ContextManagerHandle create(String agentId, SnapshotStore snapshotStore, DecisionTraceStore decisionTraceStore)
      Creates a new context manager handle.
      Parameters:
      agentId - agent identifier
      snapshotStore - store for context snapshots
      decisionTraceStore - store for decision traces
      Returns:
      new handle instance
    • discover

      static ContextManagerHandle.Factory discover()
      Discovers a Factory via ServiceLoader.
      Returns:
      discovered factory, or null if tnsai-intelligence is not on classpath