MCPcopy Create free account
hub / github.com/google/adk-samples / normalize_string

Function normalize_string

python/agents/invoice-processing/eval/eval.py:133–137  ·  view source on GitHub ↗

Normalize a string for comparison (lowercase, strip, collapse whitespace).

(val: str | None)

Source from the content-addressed store, hash-verified

131
132
133def normalize_string(val: str | None) -> str:
134 """Normalize a string for comparison (lowercase, strip, collapse whitespace)."""
135 if val is None:
136 return ""
137 return " ".join(str(val).strip().lower().split())
138
139
140def status_to_decision(

Callers 7

status_to_decisionFunction · 0.85
compare_financialsFunction · 0.85
compare_vendorFunction · 0.85
compare_headerFunction · 0.85
compare_field_groupFunction · 0.85
_compare_per_line_fieldsFunction · 0.85
compare_line_itemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected