MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _dispatch_confidence

Function _dispatch_confidence

graphify/interface_dispatch.py:54–60  ·  view source on GitHub ↗

INFERRED confidence for a dispatch edge, given how many implementers exist. One implementer is forced — "strong inference". Three or more floors at "weak inference" instead of continuing to fall per extra implementer.

(implementer_count: int)

Source from the content-addressed store, hash-verified

52
53
54def _dispatch_confidence(implementer_count: int) -> float:
55 """INFERRED confidence for a dispatch edge, given how many implementers exist.
56
57 One implementer is forced — "strong inference". Three or more floors at
58 "weak inference" instead of continuing to fall per extra implementer.
59 """
60 return _DISPATCH_CONFIDENCE_BY_IMPLEMENTER_COUNT.get(implementer_count, _DISPATCH_CONFIDENCE_FLOOR)
61
62
63def declared_in(node: dict | None, suffixes: tuple[str, ...]) -> bool:

Callers 1

Calls 1

getMethod · 0.45

Tested by

no test coverage detected