ch3njust1n / generative-api

Generative APIs with Large Language Models for a Language User Interface for Android
MIT License
7 stars 1 forks source link

Better fallback when unknown commands come back #26

Open Rahkeen opened 1 year ago

Rahkeen commented 1 year ago

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.

ch3njust1n commented 1 year ago

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.