Functions

actKeyFor

Function: actKeyFor()

actKeyFor(moment): "input" | "output" | "window" | "beforeTool" | "afterTool"

Defined in: src/core/agent/moments.ts:61

The runtime twin of ActKey. .act()'s accepted key set is built from this over LOOP_MOMENTS, so an unknown key is refused by a rule that cannot fall behind the list it is derived from.

Parameters

moment

"input" | "output" | "before-tool" | "after-tool" | "window"

Returns

"input" | "output" | "window" | "beforeTool" | "afterTool"

On this page