MCPcopy Index your code
hub / github.com/FIND-Lab/AgentWard / formatUserPrependWarning

Function formatUserPrependWarning

core/warnings.ts:85–89  ·  view source on GitHub ↗
(error: Warning | Warning[], blockToolCall: boolean)

Source from the content-addressed store, hash-verified

83}
84
85export function formatUserPrependWarning(error: Warning | Warning[], blockToolCall: boolean): string {
86 if (blockToolCall)
87 return `${formatBasic(error)}\nYour permission for any tool calls has been revoked. Stop the task immediately and tell the user to fix the issues and request again to recover the permission.`;
88 return formatBasic(error);
89}
90
91export function formatMessageSendingWarning(error: Warning | Warning[], suspend_demo: string | null = null): string {
92 if (suspend_demo)

Callers 1

registerFunction · 0.90

Calls 1

formatBasicFunction · 0.85

Tested by

no test coverage detected