export function toolEnabledByPolicy(entry, policy) {
    if (entry.openAIToolName === undefined) {
        return false;
    }
    if (entry.support === "supported") {
        return true;
    }
    if (entry.support === "policy-gated") {
        return policy === "all";
    }
    return false;
}
