Skip to content

RefusalInfo

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/refusal.ts:23

One detected refusal, normalized across providers.

explanation: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/refusal.ts:29

Any model-provided explanation text (empty string when the refusal carried none).


provider: "unknown" | "anthropic" | "openai" | "bedrock"

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/refusal.ts:25

Best-effort provider family the signal came from (for logging / the surfaced message).


reason: string

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/refusal.ts:27

The raw stop/finish reason token that flagged the refusal (e.g. content_filter).