RefusalInfo
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/refusal.ts:23
One detected refusal, normalized across providers.
Properties
Section titled “Properties”explanation
Section titled “explanation”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
Section titled “provider”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
Section titled “reason”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).