Package com.tnsai.context
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.
Factory for creating ContextManagerHandle instances.
Discovered via ServiceLoader from tnsai-intelligence.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String agentId, SnapshotStore snapshotStore, DecisionTraceStore decisionTraceStore) Creates a new context manager handle.static ContextManagerHandle.Factorydiscover()Discovers a Factory via ServiceLoader.
-
Method Details
-
create
ContextManagerHandle create(String agentId, SnapshotStore snapshotStore, DecisionTraceStore decisionTraceStore) Creates a new context manager handle.- Parameters:
agentId- agent identifiersnapshotStore- store for context snapshotsdecisionTraceStore- store for decision traces- Returns:
- new handle instance
-
discover
Discovers a Factory via ServiceLoader.- Returns:
- discovered factory, or null if tnsai-intelligence is not on classpath
-