wip: 2026-08-11 工作树快照(docs/memory/h5.py/scripts 等 447 项未评审改动,安全提交到 feat 分支)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import sys, json
|
||||
|
||||
d = json.load(sys.stdin)
|
||||
nodes = d.get('graph', {}).get('nodes', [])
|
||||
llms = [n for n in nodes if n.get('data', {}).get('type') == 'llm']
|
||||
print(f'Total LLM nodes: {len(llms)}')
|
||||
for n in llms:
|
||||
title = n['data']['title']
|
||||
sys_prompt = [p for p in n['data'].get('prompt_template', []) if p.get('role') == 'system']
|
||||
if sys_prompt:
|
||||
text = sys_prompt[0].get('text', '')
|
||||
print(f' {title}: sys_prompt_len={len(text)}, contains_json={"JSON" in text or "json" in text}')
|
||||
else:
|
||||
print(f' {title}: NO system prompt')
|
||||
Reference in New Issue
Block a user