You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// An empty call is always a protocol error: a document with nothing to redact
188
+
// is reported in prose instead of through this tool, so reaching here means
189
+
// the arguments failed to serialise rather than that the document is clean.
190
+
if(total===0&&remove.length===0){
191
+
return{
192
+
special: null,
193
+
toolResult: {
194
+
success: false,
195
+
error: 'This call carried no arguments, so nothing was applied. If the document genuinely contains nothing to redact, do not call this tool at all — say so in your reply instead. If you did intend to suggest redactions, repeat the call with "suggestions" (or "textRanges"/"pageRanges") populated; each entry needs documentKey, the exact text copied from the read_documents response, pageIndex, confidence, person and personGroup.',
@@ -84,6 +91,8 @@ export function buildSystemPrompt(opts: {
84
91
'',
85
92
'Use "low" ONLY for genuinely ambiguous individual cases in the document, not as a blanket rating.',
86
93
'',
94
+
'If the document genuinely contains nothing that needs redacting, do NOT call `suggest_redactions` with empty arguments — say so in your reply instead.',
0 commit comments