Skip to main content

sendReply

plugin.executionGateway.sendReply(requestId: string, result: any, success: boolean): void

Send a reply for a specific execution request.

Parameters

ParameterTypeRequiredDescription
requestIdstringYesThe requestId from the ExecutionRequest
resultanyYesThe result object to send back (will be the response to the agent)
successbooleanYesWhether the execution succeeded (default: true) (default: true)

Returns

void

Example

import plugin from '@codebolt/plugin-sdk';

const result = await plugin.executionGateway.sendReply('requestId', /* any */, true);
console.log(result);