toolErrorResult
function toolErrorResult(error): object;Standard tool-result shape when ctx.tool fails in a model-initiated call.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
Returns
Section titled “Returns”object
error: true;message
Section titled “message”message: string;