Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/skills / registry / parseActivationTrigger

Function: parseActivationTrigger()

ts
function parseActivationTrigger(raw): ParsedActivationTrigger;

Defined in: packages/skills/src/registry/index.ts:356

Parse a single activation trigger. Slash-command bodies (/skill:<name>) are routed through the slash parser; bare names are treated as auto-activation requests emitted by the model.

Throws SlashCommandParseError when the body looks like a slash command but does not match the grammar (so the caller can surface the error to the user).

Parameters

ParameterType
rawstring

Returns

ParsedActivationTrigger

Stable