MCPcopy Create free account
hub / github.com/AI45Lab/Code / make_skill_unload_event

Function make_skill_unload_event

core/src/hooks/engine.rs:702–708  ·  view source on GitHub ↗
(skill_name: &str, tools: Vec<&str>)

Source from the content-addressed store, hash-verified

700 }
701
702 fn make_skill_unload_event(skill_name: &str, tools: Vec<&str>) -> HookEvent {
703 HookEvent::SkillUnload(crate::hooks::events::SkillUnloadEvent {
704 skill_name: skill_name.to_string(),
705 tool_names: tools.iter().map(|s| s.to_string()).collect(),
706 duration_ms: 60000,
707 })
708 }
709
710 #[tokio::test]
711 async fn test_engine_fire_skill_load() {

Callers 1

Calls

no outgoing calls

Tested by 1