dropshop / test_content_agent.py
github-actions[bot]
Automated deployment from GitHub Actions: a9d5a91de63ad7224bafe6039fb2b7479388fbf4
0a8c81b
Raw History Blame Contribute Delete
469 Bytes
import json
from src.agents.content_agent import generate_marketing_content
idea_data = {
"id": "idea_test123",
"source_url": "https://detail.1688.com/offer/715610237937.html",
"sales_volume": 500,
"est_total_cost_cny": 25.0,
"recommended_retail_price_usd": 49.99,
"roi_score": 305.04,
"status": "SELECTED"
}
try:
result = generate_marketing_content(idea_data)
print(json.dumps(result, indent=2))
except Exception as e:
print(f"Error: {e}")