fix: ljqCtrl Press list bug, update SOPs (must call working_mem), agentmain round-end marker

This commit is contained in:
Jiaqing Liang
2026-02-24 16:43:05 +08:00
parent 860d305c44
commit 07a53889fb
6 changed files with 63 additions and 20 deletions

View File

@@ -130,9 +130,9 @@ if __name__ == '__main__':
while True:
dq = agent.put_task(raw, source='task')
while 'done' not in (item := dq.get(timeout=120)):
if 'next' in item and random.random() < 0.01: # 1/100的概率写一次中间结果
if 'next' in item and random.random() < 0.05: # 1/20的概率写一次中间结果
with open(f'{d}/output{nround}.txt', 'w', encoding='utf-8') as f: f.write(item.get('next', ''))
with open(f'{d}/output{nround}.txt', 'w', encoding='utf-8') as f: f.write(item['done'])
with open(f'{d}/output{nround}.txt', 'w', encoding='utf-8') as f: f.write(item['done'] + '\n[ROUND END]\n')
for _ in range(150): # 等reply.txt5分钟超时
time.sleep(2)
if os.path.exists(rp):