MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _contains_any

Function _contains_any

uncommon_route/router/quality.py:39–40  ·  view source on GitHub ↗
(text: str, needles: tuple[str, ...])

Source from the content-addressed store, hash-verified

37
38
39def _contains_any(text: str, needles: tuple[str, ...]) -> bool:
40 return any(token in text for token in needles)
41
42
43def quality_rank(value: ServedQuality | str | None) -> int:

Callers 1

model_served_qualityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected