decideIntent

suspend fun decideIntent(generate: suspend (String, String) -> String?, query: String, index: AppIndex): Plan(source)

Model-driven decision: given a text generator, ask the model to pick one or more actions. The prompt is generated from the capability CAPABILITIES catalog and grounded with the actual installed apps that look relevant, so the model selects a real app instead of guessing a name. The model decides; we only parse + execute.