Skip to content

buildRejectionMessage

buildRejectionMessage(options): string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/shell/rejection.ts:75

Build the §7 rejection message handed back to the model as the refused call’s tool result.

Shape (each part omitted when it does not apply):

  1. who refused what;
  2. the rater’s explanation, when a rating exists;
  3. the three moves — always;
  4. the granted alternative plus the no-approval-needed clause, when the rater named one.

RejectionMessageOptions

string