Function: computeMetaTags()
Makaio Framework / contracts / computeMetaTags
Function: computeMetaTags()
Section titled “Function: computeMetaTags()”computeMetaTags(
capabilities):ToolMetaTag[]
Defined in: ../../../packages/contracts/src/tool-capability/capabilities.ts:100
Derives semantic meta-tags from a tool’s declared capabilities.
- Returns
'read-only'when all capabilities are in the read-only capability set (the tool observes only). - Returns
'destructive'when any capability is in the destructive capability set (the tool can mutate/destroy). - No tags may be returned (e.g. a tool with only
NETWORK_REQUESTreceives neither ToolMetaTag). 'read-only'and'destructive'cannot both be returned in the current taxonomy because the read-only and destructive capability sets are disjoint.
Parameters
Section titled “Parameters”capabilities
Section titled “capabilities”readonly ToolCapability[]
The capability values declared by the tool.
Returns
Section titled “Returns”An array of ToolMetaTag values that apply to the tool.