Class AllowListFilter
java.lang.Object
io.agentscope.harness.agent.skill.curator.AbstractAgentCreatedFilter
io.agentscope.harness.agent.skill.curator.AllowListFilter
- All Implemented Interfaces:
SkillVisibilityFilter
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.
-
Field Summary
Fields inherited from class io.agentscope.harness.agent.skill.curator.AbstractAgentCreatedFilter
usageStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanshouldPassForAgentCreated(io.agentscope.core.skill.AgentSkill skill, SkillUsageRecord rec, io.agentscope.core.agent.RuntimeContext ctx) Returntrueto keep an agent-authored skill visible for this context,falseto filter it out.Methods inherited from class io.agentscope.harness.agent.skill.curator.AbstractAgentCreatedFilter
filter
-
Constructor Details
-
AllowListFilter
-
-
Method Details
-
shouldPassForAgentCreated
protected boolean shouldPassForAgentCreated(io.agentscope.core.skill.AgentSkill skill, SkillUsageRecord rec, io.agentscope.core.agent.RuntimeContext ctx) Description copied from class:AbstractAgentCreatedFilterReturntrueto keep an agent-authored skill visible for this context,falseto filter it out.recis guaranteed non-null withcreatedBy == "agent".- Specified by:
shouldPassForAgentCreatedin classAbstractAgentCreatedFilter
-