# Get hermes_services list for code dropdown # This .dspy file uses functions released by load_hermes_web_cli() try: # Use the function provided by hermes-web-cli module userid = await get_user() services = await get_all_services(userid) # Format for code component (value, text pairs) result = [] for service in services: result.append({ "value": str(service.get('id')), "text": service.get('name', f"Service {service.get('id')}") }) # Return array directly for code component return result except Exception as e: # On error or no data, return empty array return []