You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Uh oh!
There was an error while loading. Please reload this page.
Right now, we have the concept of "display" modes. Each action has a
display
property, and if that property is missing orauto
the model can choose its own display mode (e.g.snippet
orinline
) to control how the action's output displays.However, different applications might have different display modes – for example,
voice
orwatchface
. 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:
Now, when we get an action response, these flags are present in the response.
Questions:
response.[flagname]
orresponse.flags.[flagname]
?The text was updated successfully, but these errors were encountered: