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
| Parameter | Type |
|---|---|
node | P2PNode |
name | string |
input? | unknown |
Returns
Promise<{
isError: boolean;
text: string;
value?: unknown;
}>