pub fn intersect_allowed_tools(
skill_tools: &[String],
agent_tools: &[String],
) -> Vec<String>Expand description
Compute the effective tool list as the intersection of a skill’s
allowed_tools and an agent’s allowed_tools.
If the skill’s tool list is empty, the agent’s list is returned (the skill does not restrict tools). If the agent’s list is empty, all tools are allowed and the skill’s list is returned as-is. If both are non-empty, only tools in both lists are returned.