Files
aiagent/scripts/check_agents.py
renjianbo beff3fac8d fix: delete agent 500 error + dynamic personality + deployment guide
- Fix delete agent 500: clean up FK records (agent_llm_logs, permissions,
  schedules, executions, team_members) and unbind goals/tasks before delete
- Remove hardcoded personality templates in Android, replace with dynamic
  system prompt generation from name + description
- Set promptSectionsEnabled=false to bypass PromptComposer for personality
- Add Tencent Cloud Linux deployment guide (Docker Compose)
- Accumulated backend service updates, frontend UI fixes, Android app changes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-29 01:17:21 +08:00

22 lines
693 B
Python

import json, subprocess, sys
# Login
r = subprocess.run([
'curl', '-s', '-X', 'POST',
'http://localhost:8037/api/v1/auth/login',
'-H', 'Content-Type: application/x-www-form-urlencoded',
'-d', 'username=admin&password=123456'
], capture_output=True, text=True)
token = json.loads(r.stdout)['access_token']
# Get agents
r = subprocess.run([
'curl', '-s', 'http://localhost:8037/api/v1/agents?skip=0&limit=50',
'-H', f'Authorization: Bearer {token}'
], capture_output=True, text=True)
agents = json.loads(r.stdout)
print(f'Agent数: {len(agents)}')
for a in agents:
print(f' {a["name"][:25]:25s} cat={str(a.get("category","N/A")):15s} pub={a.get("is_public",0)}')