( content: string, level: SystemMessageLevel, toolUseID?: string, preventContinuation?: boolean, )
| 4372 | } |
| 4373 | |
| 4374 | export function createSystemMessage( |
| 4375 | content: string, |
| 4376 | level: SystemMessageLevel, |
| 4377 | toolUseID?: string, |
| 4378 | preventContinuation?: boolean, |
| 4379 | ): SystemInformationalMessage { |
| 4380 | return { |
| 4381 | type: 'system', |
| 4382 | subtype: 'informational', |
| 4383 | content, |
| 4384 | isMeta: false, |
| 4385 | timestamp: new Date().toISOString(), |
| 4386 | uuid: randomUUID(), |
| 4387 | toolUseID, |
| 4388 | level, |
| 4389 | ...(preventContinuation && { preventContinuation }), |
| 4390 | } |
| 4391 | } |
| 4392 | |
| 4393 | export function createPermissionRetryMessage( |
| 4394 | commands: string[], |
no outgoing calls
no test coverage detected