export { normalizeRequiredToolConstraint, resolveUnresolvedToolConstraint, } from "./tool-requirement-algebra.js";
export { isProviderToolSelectableByConstraint, resolveProviderTurnActionPolicy, resolveProviderToolVisibility, resolveProviderVisibleTools, } from "./tool-visibility-policy.js";
export function findLatestUserMessage(messages) {
    for (let index = messages.length - 1; index >= 0; index -= 1) {
        const message = messages[index];
        if (message?.role === "user") {
            return message.content;
        }
    }
    return undefined;
}
//# sourceMappingURL=tool-constraint.js.map