RefusalReplay#

Build extensions, choose hooks, and manage request-scoped state. See the guide.

class zett_agent.extensions.refusal_replay.RefusalReplay(*values)[源代码]#

What later requests do with an assistant message that was refused.

KEEP = 'keep'#

whatever text came before the refusal, and the refusal text itself. This is what happens without the extension.

Type:

Send it again as it was stored

DROP = 'drop'#

Leave it out of the request. It stays in storage and on screen; the model just no longer reads its own refused output on the next turn.