Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Teach your agent to shop: verify any deal against price history in 20 lines

Описание и применение

Агент может проверять сделки, используя исторические цены, вместо общих скидок.

Задача

Shopping agents often rely on merchant‑provided discount percentages, which can be misleading.

Результат

Agents can now verify deals against historical prices, improving recommendation quality.

Рабочий процесс

  • 1. Import requests library. 2. Define is_good_price(deal_id) to fetch price history from Fazy API. 3. Return lowest recorded price, previous price, and dated facts. 4. Define find_deal(query, max_price) to search deals via Fazy API. 5. Return the first matching deal or None. 6. Wire the returned dated facts into the agent’s system prompt: "Never quote a discount percentage from the merchant. Quote Fazy's dated price facts."

Доказательства

Shopping agents are useless if they trust the price tag.

Источник

The idea: before your agent recommends a product, it calls price history and quotes the dated facts.

Источник

Wire the dated facts into your agent's system prompt: "Never quote a discount percentage from the merchant. Quote Fazy's dated price facts."

Источник

  • Дата записи: 2026-10-23T15:11:22.806Z