Whisper

The Whisper Aptitude provides the ability to display pieces of information (Whispers) in the Olive Helps sidebar.

create

Displays a new Whisper in Olive Helps based on the configuration provided in the method signature.

import { whisper } from '@oliveai/ldk';

const whisperConfig = {
    label: 'The Label of the Whisper',
    onClose: () => {
        // Called when the 'X' button is clicked to close this whisper
    },
    components: [
        // Components supplied here are rendered in the whisper in the
        // order that they are provided
    ],
};

whisper.create(whisperConfig);

Last updated