ch3njust1n / generative-api

Generative APIs with Large Language Models for a Language User Interface for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better fallback when unknown commands come back

Rahkeen opened this issue · comments

Right now the app crashes a lot with output it doesn't know how to handle. We should try and log a bit more and try and have a graceful response when it doesn't know what to do.

Returns the following structure in this case:

{
  "actions": [
    {
      "component": "unknown",
      "subcomponent": "unknown",
      "action": "unknown",
      "parameters": "unknown"
    }]
}

Should prompt the user with clarifying questions before proceeding.