a2a-source-edit: write agent.py
This commit is contained in:
2
agent.py
2
agent.py
@@ -344,7 +344,7 @@ def _build_comparison_result(comparison_id: str, quotes: list[QuoteInput], weigh
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
rows.sort(key=lambda row: (-row["scores"]["weighted_total"], row["total_price"], row["delivery_days"], row["vendor"].lower()))
|
rows.sort(key=_quote_sort_key)
|
||||||
winner = rows[0]
|
winner = rows[0]
|
||||||
recommendation = {
|
recommendation = {
|
||||||
"vendor": winner["vendor"],
|
"vendor": winner["vendor"],
|
||||||
|
|||||||
Reference in New Issue
Block a user