const match = await runSiftingPattern({
patternName: "rags-to-riches",
precastBindings: { protagonist: ["cid-alice"] },
searchDomain: "cid-alice"
});
if (!match) {
console.log("No match found");
}
VivNotInitializedError If Viv has not been initialized.
VivInterpreterError If the Viv interpreter encounters an issue in the course of sifting.
VivValidationError If the supplied args do not conform to the expected schema.
VivValidationError If there is no defined sifting pattern with the given patternName.
VivValidationError If searchDomain is provided, but is not the entity ID for a character.
Runs the specified sifting pattern over the specified search domain, and returns a single match, if one can be found, else
null.