- Remove deprecated UNKNOWN.egg-info and user_context.py - Refactor crud_ops, db_tables, and init modules - Update settings UI and save handlers (appearance, general, security) - Update services list, remove, and test DSPY files - Update sessions list DSPY file - Add multi-user test script - Update pyproject.toml dependencies
15 lines
455 B
Plaintext
15 lines
455 B
Plaintext
# Test service connection by ID
|
|
# This .dspy file uses functions provided by load_hermes_web_cli()
|
|
|
|
try:
|
|
service_id = params_kw.get('id')
|
|
if not service_id:
|
|
return {"error": "Service ID is required"}
|
|
|
|
# Call the function provided by the hermes-web-cli module
|
|
is_connected, status_msg = await test_service_connection(service_id)
|
|
|
|
return {"status": status_msg}
|
|
|
|
except Exception as e:
|
|
return {"error": str(e)} |