liveBook · Manning

Refusal behavior

As explained in Build an AI Agent (From Scratch)

A model refusal is a model response that declines to answer or perform a requested task instead of attempting it.

Refusal behavior occurs when a model declines a requested task instead of attempting it. It matters because refusals can reflect safety policies rather than inability, and different models may respond differently to the same request. section 2.4.3

Handle refusals as an operational behavior:

  • Test the exact production use case across every target model; documentation describes general policy but may not reveal edge-case triggers. section 2.4.3
  • Prepare fallback strategies so an agent can respond safely when one model refuses a request. section 2.4.3
  • Define behavioral boundaries in system prompts, including permitted actions, prohibited actions, and limits on legal or financial advice. section 2.3.1

Obfuscated text mistaken for a safety bypass

A GAIA problem presents reversed text that asks for the opposite of “left.” Some models interpret the obfuscation as an attempt to bypass safety filters and refuse instead of answering. section 2.4.3

How Build an AI Agent (From Scratch) covers it

How deep it goes
Defines refusals, illustrates obfuscation-triggered behavior, and recommends empirical testing, but does not specify undocumented trigger rules.
Examples
Uses reversed text asking for the opposite of “left,” plus refund, account-deletion, and financial-advice boundaries.
What it assumes
Assumes an agent-development context and teaches that provider policies differ and training knowledge cannot guarantee current, precise answers.
What you can do after
Operate/configure production agents by testing target models, checking use policies, and preparing fallback strategies for refusals.
How it connects
Connects refusals to system prompts, safety policies, autonomous agents, fallback strategies, and external-information requirements.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build an AI Agent (From Scratch). The section links point to the parts of the book it draws on.