minca
ApiCoreFunctions

Function: callAction()

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

Defined in: packages/core/src/node/actions.ts:1080

Runs an action for a model: its result as JSON text, after PEER_CONTENT_NOTE when others wrote it. 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