Name of key for JSON store or filename for file store.
DeleteOptions
.
Retrieve data based on type
and scope
in options.
Defaults to DataType.Json
and DataScope.Skill
.
Name of key for JSON store or filename for file store.
GetOptions
.
Returns an array of DataItem
based on type
and scope
in options.
Defaults to DataType.Json
and DataScope.Skill
.
ListOptions
.
Search data based on type
and scope
in options.
Filename.
SearchOptions
.
Sets data based on type
and scope
in options.
Defaults to DataType.Json
and DataScope.Skill
.
Name of key for JSON store or filename for file store.
SaveOptions
.
Generated using TypeDoc
Delete data based on
type
andscope
in options.{TypeError} when
keyOrFilename
is missing.Deleting Skill or Organization scope file or JSON store data from within a skill code
// Ensure you import DataPowers import { DataPowers, DataScope, DataTypes } from "@andi/powers"; await DataPowers.delete("keyName", { type: DataType.File }); await DataPowers.delete("keyName", { scope: DataScope.Organization });