MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / extract_token_hints

Function extract_token_hints

eval/run_real_model.py:483–499  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

481
482
483def extract_token_hints(output):
484 hints = []
485 for line in output.splitlines():
486 if "token" not in line.lower():
487 continue
488 for pattern in TOKEN_PATTERNS:
489 if pattern.search(line):
490 hints.append(line.strip())
491 break
492 # Deduplicate while preserving order; cap so the report stays readable.
493 seen = set()
494 unique = []
495 for hint in hints:
496 if hint not in seen:
497 seen.add(hint)
498 unique.append(hint)
499 return unique[:10]
500
501
502def assertion_applies_to_real_model(assertion):

Callers 2

drive_hermesFunction · 0.85
drive_cursor_agentFunction · 0.85

Calls 3

setFunction · 0.85
searchMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected