mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-26 21:26:39 +00:00
* fix(runtime): stop Goal continuations after loop hard stops * chore: remove redundant SVG sources from Goal fix * test(goal): remove PR-only screenshot generation --------- Co-authored-by: Totoro-qaq <279883115+Totoro-qaq@users.noreply.github.com>
26 lines
802 B
Python
26 lines
802 B
Python
"""Run from backend: python -m scripts.benchmark.goal_loop_stop --output result.json."""
|
|
|
|
import argparse
|
|
import asyncio
|
|
import json
|
|
from pathlib import Path
|
|
|
|
from . import run_case
|
|
|
|
|
|
def main() -> None:
|
|
parser = argparse.ArgumentParser(description="Reproduce Goal continuation after a native loop hard stop, without provider calls.")
|
|
parser.add_argument("--output", type=Path, help="Write the synthetic result JSON here; otherwise print it.")
|
|
args = parser.parse_args()
|
|
result = asyncio.run(run_case())
|
|
text = json.dumps(result, ensure_ascii=False, indent=2) + "\n"
|
|
if args.output:
|
|
args.output.parent.mkdir(parents=True, exist_ok=True)
|
|
args.output.write_text(text, encoding="utf-8")
|
|
else:
|
|
print(text, end="")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|