WithFeatureChecker sets the feature flag checker function. The checker receives a context (for actor extraction) and feature flag name, and returns (enabled, error). Errors are logged and treated as "not enabled". When the checker is non-nil, Build() installs a feature-flag ToolFilter at the head o
(checker FeatureFlagChecker)
| 143 | // |
| 144 | // Returns self for chaining. |
| 145 | func (b *Builder) WithFeatureChecker(checker FeatureFlagChecker) *Builder { |
| 146 | b.featureChecker = checker |
| 147 | return b |
| 148 | } |
| 149 | |
| 150 | // WithFilter adds a filter function that will be applied to all tools. |
| 151 | // Multiple filters can be added and are evaluated in order. |
no outgoing calls