Class EnvironmentFilter

java.lang.Object
io.agentscope.harness.agent.skill.curator.EnvironmentFilter
All Implemented Interfaces:
SkillVisibilityFilter

public class EnvironmentFilter extends Object implements 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 Details

  • 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: SkillVisibilityFilter
      Filter the skill list down to those visible for the current runtime context.
      Specified by:
      filter in interface SkillVisibilityFilter