Skip to content

Function: computeMetaTags()

Makaio Framework


Makaio Framework / contracts / 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_REQUEST receives neither ToolMetaTag).
  • 'read-only' and 'destructive' cannot both be returned in the current taxonomy because the read-only and destructive capability sets are disjoint.

readonly ToolCapability[]

The capability values declared by the tool.

ToolMetaTag[]

An array of ToolMetaTag values that apply to the tool.