Spaces:
3SCError404
/
Paused

nexus / scratch /verify_changes.py
dushyantsingh0
backend stabilization
4405ca9
Raw History Blame Contribute Delete
791 Bytes
import asyncio
import uuid
from core.database import async_session_factory
from agents.utils import get_available_agents
async def verify():
ansell_ws_id = uuid.UUID("00078389-5ae6-449f-baf4-72a17ed03fa7")
admin_a_id = uuid.UUID("313ec2c5-03ed-424d-bca0-df461624d986")
async with async_session_factory() as db:
agents = await get_available_agents(db, ansell_ws_id)
agent_ids = [a.id for a in agents]
agent_names = [a.full_name for a in agents]
print(f"Agents in Ansell Workspace: {agent_names}")
if admin_a_id in agent_ids:
print("FAIL: Admin A is still in the pool!")
else:
print("SUCCESS: Admin A is excluded from the pool.")
if __name__ == "__main__":
asyncio.run(verify())