feat: add cached homepage information and manual AI interpretations
This commit is contained in:
@@ -113,7 +113,17 @@ def fake_structured(messages, info):
|
||||
},
|
||||
}
|
||||
properties = tool.parameters_json_schema.get("properties", {})
|
||||
if "summary" in properties:
|
||||
if "items" in properties and "sources" in context:
|
||||
source = context["sources"][0]
|
||||
if context.get("module") == "competition":
|
||||
items = [{"title": title, "text": "未知", "evidence": []} for title in
|
||||
("地区", "Universe", "Delay", "Alpha 类型", "资格", "提交要求")]
|
||||
items[0].update(text="GLOBAL", evidence=[{"source_id": source["id"], "quote": "GLOBAL region"}])
|
||||
else:
|
||||
items = [{"title": "信息摘要", "text": "请根据平台信息核对近期安排。",
|
||||
"evidence": [{"source_id": source["id"], "quote": source["text"][:80]}]}]
|
||||
data = {"items": items, "suggestions": ["建议提前核对截止日期并阅读完整协议。"]}
|
||||
elif "summary" in properties:
|
||||
data = {"summary": "合成评估建议", "risks": ["仅供验收"], "suggestions": ["继续核实缺失证据"]}
|
||||
elif "input_ids" in properties:
|
||||
data = {
|
||||
|
||||
Reference in New Issue
Block a user