Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
component - Skill - OpenSmartRoute
Skillv1.0.0
component
Use when creating or modifying reusable UI components in the ui/component/ directory. Covers the reusable components from design spec and their contracts.
@Composablefun DonutChart( data: List<ChartEntry>, // 分类数据 modifier: Modifier = Modifier, centerContent: @Composable () -> Unit = {} // 中心内容(可选))data class ChartEntry( val label: String, val value: Float, val color: Color)
禁止做法
不在 ui/component/ 外定义这些组件
组件中不可包含导航逻辑(navController.navigate())
组件中不可访问 ViewModel 或 Repository
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.