-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest_discover.py
More file actions
29 lines (22 loc) · 881 Bytes
/
test_discover.py
File metadata and controls
29 lines (22 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python3
"""Minimal script to test discover_react agent"""
from agent.discover_react import run_discover_react
import json
import os
if __name__ == "__main__":
# Set up repo root environment variable for tools
target_repo = r"D:\0APython\setupLab2\Real-Time-Voice-Cloning"
os.environ["REPO_ROOT"] = target_repo
goal = f"理解当前项目的 Python 环境配置,广泛收集事实,为安装与运行方案做准备"
seed_facts = {"repo_root": target_repo}
print(f"Goal: {goal}")
print(f"Repo Root: {target_repo}\n")
print("Running discover agent...\n")
result = run_discover_react(goal, seed_facts)
print("\n" + "=" * 80)
print("SUMMARY:")
print("=" * 80)
print(result["summary"])
print("\n" + "=" * 80)
print(f"Transcript: {len(result['transcript'])} turns")
print("=" * 80)