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

Function status_to_decision

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

Map Invoice Status to decision class using master data or fallback.

(
    status: str, mapping: dict[str, str] | None = None
)

Source from the content-addressed store, hash-verified

138
139
140def status_to_decision(
141 status: str, mapping: dict[str, str] | None = None
142) -> str:
143 """Map Invoice Status to decision class using master data or fallback."""
144 if mapping is None:
145 mapping = _FALLBACK_STATUS_TO_DECISION
146 return mapping.get(normalize_string(status), "UNKNOWN")
147
148
149def parse_line_items(line_items_field: Any) -> list[dict]:

Callers 1

compare_decisionFunction · 0.85

Calls 2

normalize_stringFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected