import { extractTextContent } from "../context/workspace.js";
import { readAgentMessageContent } from "./agent-message-access.js";
//#region src/agent/memory/user-message-text.ts
/** Plain text from a user-role agent message (string or parts array). */
function extractAgentUserPlainText(message) {
	const c = readAgentMessageContent(message);
	if (typeof c === "string") return c;
	if (Array.isArray(c)) return extractTextContent(c);
	return "";
}
//#endregion
export { extractAgentUserPlainText };

//# sourceMappingURL=user-message-text.js.map