Categories and Subcategories
The category and subcategory specify the category and subcategory of the widget in the OpenBB Workspace. This is important to organize the widgets in the search for OpenBB Workspace and also for AI agents to find the best widgets to utilize for a given task.

@register_widget({
"name": "Markdown Widget with Category and Subcategory",
"description": "A markdown widget with category and subcategory",
"type": "markdown",
"category": "Widgets",
"subcategory": "Markdown Widgets",
"endpoint": "markdown_widget_with_category_and_subcategory",
"gridData": {"w": 12, "h": 4},
})
@app.get("/markdown_widget_with_category_and_subcategory")
def markdown_widget_with_category_and_subcategory():
"""Returns a markdown widget with category and subcategory"""
return f"# Markdown Widget with Category and Subcategory"