Skip to content

Add extensible "flags" to the kernel #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rupertsworld opened this issue May 8, 2025 · 0 comments
Open

Add extensible "flags" to the kernel #260

rupertsworld opened this issue May 8, 2025 · 0 comments
Labels
enhancement Improvement to existing functionality. to discuss More discussion is needed.

Comments

@rupertsworld
Copy link
Contributor

rupertsworld commented May 8, 2025

Right now, we have the concept of "display" modes. Each action has a display property, and if that property is missing or auto the model can choose its own display mode (e.g. snippet or inline) to control how the action's output displays.

However, different applications might have different display modes – for example, voice or watchface. And developers might want to extend the kernel with their own "flags" that describe other types of choices they want the model to make in its action decisions.

This issue proposes we extend the kernel with the idea of "flags" that can be added to the Interpreter. This also fits our ethos of allowing extensibility & control over any configuration and prompts (right now the display mode prompts are not possible to alter).

For example:

const flags = {};

flags.display = {
  description: 'The display mode for the action.'
  options: {
    voice: `The action is spoken to the user (useful when on handsfree mode)`,
    hud: `The action is shown in the user's heads-up display`,
  }
};

const interpreter = new Interpreter({ ..., flags });

Now, when we get an action response, these flags are present in the response.

const response = interpreter.generateActionResponse({ ... });
console.log(response.display) // 'voice'

Questions:

  • Should we put response flags in response.[flagname] or response.flags.[flagname]?
  • Like display modes, should we assume that actions can be defined in resources to set their own flags?
  • Can/should flags also appear in messages?
  • Does the ProcessRuntime need to know about them?
@rupertsworld rupertsworld added the enhancement Improvement to existing functionality. label May 8, 2025
@rupertsworld rupertsworld moved this to Planned in Unternet Work Board May 8, 2025
@rupertsworld rupertsworld added the to discuss More discussion is needed. label May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing functionality. to discuss More discussion is needed.
Projects
Status: Planned
Development

No branches or pull requests

1 participant