Package com.tnsai.spi
Interface FeatureFlag
- All Known Implementing Classes:
EnvFeatureFlag
public interface FeatureFlag
SPI for gradual feature rollout (TAN-3392).
Embedders back this with env, a file, or their own store. The
bundled default is EnvFeatureFlag. There is
no SaaS flag vendor.
New flags default off when unset. Document the
default next to the flag name. First consumer: GOAP.
- See Also:
-
Field Summary
Fields -
Method Summary
-
Field Details
-
GOAP
Planner auto-discovery / GOAP selection. Default off for new selection. Existing classpath auto-discover stays on until this env var is set —TNSAI_FLAG_GOAP=offturns it off.- See Also:
-
-
Method Details
-
isEnabled
- Parameters:
flag- flag name; compared case-insensitivelycontext- tenant/agent identity; nevernull(useFlagContext.empty())- Returns:
trueif the flag is on for this context
-