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

Method map_decision

core/src/ahp/executor.rs:796–802  ·  view source on GitHub ↗

Map AHP decision to hook result based on event type.

(
        &self,
        event_type: EventType,
        decision_payload: serde_json::Value,
    )

Source from the content-addressed store, hash-verified

794
795 /// Map AHP decision to hook result based on event type.
796 fn map_decision(
797 &self,
798 event_type: EventType,
799 decision_payload: serde_json::Value,
800 ) -> HookResult {
801 super::decision::map_decision(event_type, decision_payload)
802 }
803
804 /// Check if event type requires blocking (synchronous) response
805 fn is_blocking_event(&self, event_type: HookEventType) -> bool {

Callers 3

fireMethod · 0.80
test_map_decision_allowFunction · 0.80
test_map_decision_blockFunction · 0.80

Calls 1

map_decisionFunction · 0.85

Tested by 2

test_map_decision_allowFunction · 0.64
test_map_decision_blockFunction · 0.64