MCPcopy Index your code
hub / github.com/geekcomputers/Python / choose_best_candidate

Function choose_best_candidate

JARVIS/cli.py:41–47  ·  view source on GitHub ↗
(candidates)

Source from the content-addressed store, hash-verified

39
40
41def choose_best_candidate(candidates):
42 if not candidates:
43 return ""
44 for candidate in candidates:
45 if rule_based_action(candidate):
46 return candidate
47 return candidates[0]
48
49
50def help_text():

Callers 1

listen_onceFunction · 0.85

Calls 1

rule_based_actionFunction · 0.85

Tested by

no test coverage detected