Returns whether the current event is the result of a user's request for additional data.
Sends a dialogue response with tags (optional) to the application.
DialogueResponse options
Returns a dialogue response skill activity to the browser.
Sends multiple dialogue responses back to the application.
DialogueResponse options for each dialogue response to be sent.
Returns a dialogue responses skill activity to the browser.
Generated using TypeDoc
Returns whether the current event is the result of a user's request for additional data.
Run the skill if a user requests additional data.
import { ISkillContext, ShouldIRunResponseType } from "andiskills"; import { DialogueResponsePowers } from "@andi/powers"; // shouldIRun is used by the andi skills platform to determine if the given // skill's current context needs to be executed. export async function shouldIRun(skillContext: ISkillContext): Promise<ShouldIRunResponseType> { // Run skill if user requests additional data if (DialogueResponsePowers.isGetAdditionalTagDataEvent()) { return skillContext.powers.andi.shouldIRun.shouldIRunTrue(); } return skillContext.powers.andi.shouldIRun.shouldIRunFalse(); }