//#region src/agent/transcript/strip-tool-messages.ts
/**
* Strip tool / toolResult rows from wire-format history.
* Use for display, summaries, or tools that need "last assistant text" without tool spans.
*/
function stripToolMessages(messages) {
	return messages.filter((msg) => {
		if (!msg || typeof msg !== "object") return true;
		const role = msg.role;
		return role !== "toolResult" && role !== "tool";
	});
}
//#endregion
export { stripToolMessages };

//# sourceMappingURL=strip-tool-messages.js.map