27 lines
730 B
Python
27 lines
730 B
Python
#!/usr/bin/env python3
|
|
"""Quick test for the project monitor agent."""
|
|
import sys, json
|
|
sys.path.insert(0, "/app/agents")
|
|
|
|
config = {
|
|
"project_name": "AI Agents",
|
|
"wiki_collection_id": "9d9e471c-84cd-4ba7-bae5-c70f61805228",
|
|
"wiki_doc_ids": "",
|
|
"gitea_repo": "eric/ai-agents",
|
|
"custom_urls": "",
|
|
"custom_notes": "",
|
|
"report_collection_id": "",
|
|
"include_in_briefing": "true",
|
|
}
|
|
|
|
print("Starting project monitor test...")
|
|
try:
|
|
from project_monitor import run
|
|
section, summary = run(config, user_id=2, instance_id=5)
|
|
print("SUCCESS")
|
|
print(f"Summary: {summary[:200]}")
|
|
except Exception as e:
|
|
print(f"FAILED: {type(e).__name__}: {e}")
|
|
import traceback
|
|
traceback.print_exc()
|