(options?: {
isNonInteractive: boolean
hasAppendSystemPrompt: boolean
})
| 28 | ) |
| 29 | |
| 30 | export function getCLISyspromptPrefix(options?: { |
| 31 | isNonInteractive: boolean |
| 32 | hasAppendSystemPrompt: boolean |
| 33 | }): CLISyspromptPrefix { |
| 34 | const apiProvider = getAPIProvider() |
| 35 | if (apiProvider === 'vertex') { |
| 36 | return DEFAULT_PREFIX |
| 37 | } |
| 38 | |
| 39 | if (options?.isNonInteractive) { |
| 40 | if (options.hasAppendSystemPrompt) { |
| 41 | return AGENT_SDK_CLAUDE_CODE_PRESET_PREFIX |
| 42 | } |
| 43 | return AGENT_SDK_PREFIX |
| 44 | } |
| 45 | return DEFAULT_PREFIX |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Check if attribution header is enabled. |
no test coverage detected