Register a skill without validation. If this replaces a built-in skill with the same name, it is treated as an external skill for global tool-restriction purposes.
(&self, skill: Arc<Skill>)
| 81 | /// If this replaces a built-in skill with the same name, it is treated as an |
| 82 | /// external skill for global tool-restriction purposes. |
| 83 | pub fn register_unchecked(&self, skill: Arc<Skill>) { |
| 84 | self.builtin_names.write().unwrap().remove(&skill.name); |
| 85 | let mut skills = self.skills.write().unwrap(); |
| 86 | skills.insert(skill.name.clone(), skill); |
| 87 | } |
| 88 | |
| 89 | fn register_builtin(&self, skill: Arc<Skill>) { |
| 90 | let name = skill.name.clone(); |