MCPcopy Index your code
hub / github.com/AI45Lab/Code / fire_pre_context_perception

Method fire_pre_context_perception

core/src/agent/turn_context.rs:271–278  ·  view source on GitHub ↗

Fire PreContextPerception hook and wait for harness decision.

(&self, event: &PreContextPerceptionEvent)

Source from the content-addressed store, hash-verified

269
270 /// Fire PreContextPerception hook and wait for harness decision.
271 async fn fire_pre_context_perception(&self, event: &PreContextPerceptionEvent) -> HookResult {
272 if let Some(he) = &self.config.hook_engine {
273 let hook_event = HookEvent::PreContextPerception(event.clone());
274 he.fire(&hook_event).await
275 } else {
276 HookResult::continue_()
277 }
278 }
279
280 /// Fire IntentDetection hook and wait for harness decision.
281 ///

Callers 1

Calls 2

cloneMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected