Class AllowListFilter

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

public class AllowListFilter extends AbstractAgentCreatedFilter
Visible only when the agent-created skill's name is in the allow-list. Useful for letting SRE pin a small set of agent-authored skills for an internal beta channel without generally exposing every promoted skill.
  • Constructor Details

  • Method Details

    • shouldPassForAgentCreated

      protected boolean shouldPassForAgentCreated(io.agentscope.core.skill.AgentSkill skill, SkillUsageRecord rec, io.agentscope.core.agent.RuntimeContext ctx)
      Description copied from class: AbstractAgentCreatedFilter
      Return true to keep an agent-authored skill visible for this context, false to filter it out. rec is guaranteed non-null with createdBy == "agent".
      Specified by:
      shouldPassForAgentCreated in class AbstractAgentCreatedFilter