//#region src/agent/embedded/system-prompt-override.ts
function applySystemPromptOverrideToSession(session, override) {
	const prompt = override.trim();
	session.agent.state.systemPrompt = prompt;
	const mutableSession = session;
	mutableSession._baseSystemPrompt = prompt;
	mutableSession._rebuildSystemPrompt = () => prompt;
}
//#endregion
export { applySystemPromptOverrideToSession };

//# sourceMappingURL=system-prompt-override.js.map