minca

Function: callAction()

function callAction(
   node, 
   name, 
   input?
): Promise<{
  isError: boolean;
  text: string;
  value?: unknown;
}>;

Defined in: packages/actions/src/index.ts:1175

Runs an action for a model: its result as JSON text, after PEER_CONTENT_NOTE when others wrote it, and followed by the names of the people it mentions. A failure is text for the model to read and correct.

Parameters

ParameterType
nodeP2PNode
namestring
input?unknown

Returns

Promise<{ isError: boolean; text: string; value?: unknown; }>

On this page