Test connectivity for a tool category.
(
agent_id: uuid.UUID,
category: str,
current_user: User = Depends(get_current_user),
db: AsyncSession = Depends(get_db),
)
| 1009 | |
| 1010 | @router.post("/agents/{agent_id}/category-config/{category}/test") |
| 1011 | async def test_category_config( |
| 1012 | agent_id: uuid.UUID, |
| 1013 | category: str, |
| 1014 | current_user: User = Depends(get_current_user), |
| 1015 | db: AsyncSession = Depends(get_db), |
| 1016 | ): |
| 1017 | """Test connectivity for a tool category.""" |
| 1018 | if category == "atlassian": |
| 1019 | from app.api.atlassian import test_atlassian_channel |
| 1020 | return await test_atlassian_channel(agent_id, current_user, db) |
| 1021 | elif category == "agentbay": |
| 1022 | from app.services.agentbay_client import test_agentbay_channel |
| 1023 | return await test_agentbay_channel(agent_id, current_user, db) |
| 1024 | |
| 1025 | return {"ok": True, "message": f"Settings for {category} saved."} |
nothing calls this directly
no test coverage detected