Skip to content

buildRejectionMessage

buildRejectionMessage(options): string

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

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

§7 shape, each part omitted when it does not apply:

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

RejectionMessageOptions

string