Class EnvironmentFilter
java.lang.Object
io.agentscope.harness.agent.skill.curator.EnvironmentFilter
- All Implemented Interfaces:
SkillVisibilityFilter
Filter that admits a skill only when its sidecar's
environments list contains the
configured environment (prod, staging, …). Unlike the canary / allow-list
filters, this one applies to every skill — including pre-existing ones — so the
deployment-environment story is consistent across both agent-authored and hand-crafted
skills.
For hand-crafted skills that have no sidecar entry, this filter passes them through
unconditionally. The expectation is that authoritative ops will set
environments: [prod] on the sidecar entry by hand once they've been audited.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnvironmentFilter
-
-
Method Details
-
filter
public List<io.agentscope.core.skill.AgentSkill> filter(List<io.agentscope.core.skill.AgentSkill> all, io.agentscope.core.agent.RuntimeContext ctx) Description copied from interface:SkillVisibilityFilterFilter the skill list down to those visible for the current runtime context.- Specified by:
filterin interfaceSkillVisibilityFilter
-