|
@@ -34,6 +34,7 @@ from examples.auto_put_ad_mini.config import (
|
|
|
# 导入自定义工具(触发 @tool 注册)
|
|
# 导入自定义工具(触发 @tool 注册)
|
|
|
from examples.auto_put_ad_mini.tools.data_query import fetch_creative_data, merge_creative_data
|
|
from examples.auto_put_ad_mini.tools.data_query import fetch_creative_data, merge_creative_data
|
|
|
from examples.auto_put_ad_mini.tools.roi_calculator import calculate_roi_metrics
|
|
from examples.auto_put_ad_mini.tools.roi_calculator import calculate_roi_metrics
|
|
|
|
|
+from examples.auto_put_ad_mini.tools.portfolio_metrics import calculate_portfolio_summary
|
|
|
from examples.auto_put_ad_mini.tools.ad_decision import (
|
|
from examples.auto_put_ad_mini.tools.ad_decision import (
|
|
|
get_ads_for_review, apply_decisions,
|
|
get_ads_for_review, apply_decisions,
|
|
|
query_ad_detail, modify_decisions,
|
|
query_ad_detail, modify_decisions,
|
|
@@ -135,7 +136,7 @@ async def main():
|
|
|
|
|
|
|
|
print(f"\n🚀 执行: {user_input}")
|
|
print(f"\n🚀 执行: {user_input}")
|
|
|
print("=" * 70)
|
|
print("=" * 70)
|
|
|
- print(" 流程:数据拉取 → ROI计算 → 分类(A/B/C) → AI推理 → 保存决策 → 护栏验证 → 生成报告")
|
|
|
|
|
|
|
+ print(" 流程:数据拉取 → ROI计算 → 人群包基线 → 候选筛选 → AI推理 → 保存决策 → 护栏验证 → 生成报告")
|
|
|
print("=" * 70)
|
|
print("=" * 70)
|
|
|
print()
|
|
print()
|
|
|
|
|
|
|
@@ -177,10 +178,16 @@ async def main():
|
|
|
print(f"📌 步骤 {step_count}: ROI 计算")
|
|
print(f"📌 步骤 {step_count}: ROI 计算")
|
|
|
print(f"{'='*70}")
|
|
print(f"{'='*70}")
|
|
|
|
|
|
|
|
|
|
+ elif tool_name == "calculate_portfolio_summary":
|
|
|
|
|
+ step_count += 1
|
|
|
|
|
+ print(f"\n{'='*70}")
|
|
|
|
|
+ print(f"📌 步骤 {step_count}: 人群包基线计算")
|
|
|
|
|
+ print(f"{'='*70}")
|
|
|
|
|
+
|
|
|
elif tool_name == "get_ads_for_review":
|
|
elif tool_name == "get_ads_for_review":
|
|
|
step_count += 1
|
|
step_count += 1
|
|
|
print(f"\n{'='*70}")
|
|
print(f"\n{'='*70}")
|
|
|
- print(f"📌 步骤 {step_count}: 广告分类(A/B/C)")
|
|
|
|
|
|
|
+ print(f"📌 步骤 {step_count}: 候选筛选(零消耗/待评估/正常运行)")
|
|
|
print(f"{'='*70}")
|
|
print(f"{'='*70}")
|
|
|
|
|
|
|
|
elif tool_name == "query_ad_detail":
|
|
elif tool_name == "query_ad_detail":
|