dropshop / test_agent.py
github-actions[bot]
Automated deployment from GitHub Actions: a9d5a91de63ad7224bafe6039fb2b7479388fbf4
0a8c81b
Raw History Blame Contribute Delete
481 Bytes
import json
from src.agents.selector_agent import process_sourcing_event
data = {
"productIdeaId": "idea_test123",
"sourceUrl": "https://detail.1688.com/offer/715610237937.html",
"priceCny": 25.00,
"retailPriceUsd": 49.99,
"lengthCm": 20,
"widthCm": 15,
"heightCm": 10,
"actualWeightKg": 0.3,
"salesVolume": 500
}
try:
result = process_sourcing_event(data)
print(json.dumps(result))
except Exception as e:
import traceback
traceback.print_exc()